# Copyright 2017 The Forseti Security Authors. All rights reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""A Project Resource.
from google.cloud.forseti.common.gcp_type import resource
"""Project lifecycle state."""
DELETE_REQUESTED = 'DELETE_REQUESTED'
RESOURCE_NAME_FMT = 'projects/%s'
project_id (str): The project "named" id.
full_name (str): The full resource name and ancestory.
data (str): Resource representation of the project.
project_number (int): The project number.
name (str): The full unique GCP name, with the format
display_name (str): The display name.
parent (Resource): The parent Resource.
lifecycle_state (LifecycleState): The project's lifecycle state.
self.project_number = project_number
self.full_name = full_name
self.data = data
[docs] def get_project_number(self):
"""Returns the project number.
int: The project number.