Uh oh!
There was an error while loading. Please reload this page.
Add Parent Field to Resource Manager - #2941
Conversation
| 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.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| 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.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| data = { | ||
| 'name': self.name, | ||
| 'labels': self.labels, | ||
| 'parent': self.parent |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| 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.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| 'lifecycleState': 'DELETE_REQUESTED', | ||
| 'parent': { | ||
| 'type': 'organization', | ||
| 'id': '433637338579' |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| 'parent': { | ||
| 'type': 'organization', | ||
| 'id': '433637338579' | ||
| } |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
dhermes
commented
Jan 18, 2017
@waprin Don't merge until CI is green |
* Add Parent Field to Resource Manager
* Add Parent Field to Resource Manager
Fixes#2940 by including parent field in the update.