Skip to content

Conversation

waprin
Copy link
Contributor

@waprin waprin commented Jan 18, 2017

Fixes #2940 by including parent field in the update.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jan 18, 2017
PROJECT_NUMBER = 12345678
PROJECT_LABELS = {'env': 'prod'}
PROJECT_LIFECYCLE_STATE = 'ACTIVE'
PARENT = {'type': 'organization', 'id': 433637338579}

This comment was marked as spam.

This comment was marked as spam.

@daspecster daspecster added the api: cloudresourcemanager Issues related to the Resource Manager API. label Jan 18, 2017
client = self._require_client(client)

data = {'name': self.name, 'labels': self.labels}
data = {}

This comment was marked as spam.

This comment was marked as spam.

Copy link
Contributor

@dhermes dhermes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

data = {
'name': self.name,
'labels': self.labels,
'parent': self.parent

This comment was marked as spam.

This comment was marked as spam.

self.labels = resource.get('labels', {})
self.status = resource['lifecycleState']
if 'parent' in resource:
self.parent = resource['parent']

This comment was marked as spam.

This comment was marked as spam.

'lifecycleState': 'DELETE_REQUESTED',
'parent': {
'type': 'organization',
'id': '433637338579'

This comment was marked as spam.

This comment was marked as spam.

'parent': {
'type': 'organization',
'id': '433637338579'
}

This comment was marked as spam.

This comment was marked as spam.

@dhermes
Copy link
Contributor

dhermes commented Jan 18, 2017

@waprin Don't merge until CI is green

@waprin waprin merged commit e9b503a into googleapis:master Jan 18, 2017
richkadel pushed a commit to richkadel/google-cloud-python that referenced this pull request May 6, 2017
* Add Parent Field to Resource Manager
parthea pushed a commit that referenced this pull request Jun 4, 2023
* Add Parent Field to Resource Manager
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: cloudresourcemanager Issues related to the Resource Manager API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants