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.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| 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.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| 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.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| 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.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| 'lifecycleState': 'DELETE_REQUESTED', | ||
| 'parent': { | ||
| 'type': 'organization', | ||
| 'id': '433637338579' |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| 'parent': { | ||
| 'type': 'organization', | ||
| 'id': '433637338579' | ||
| } |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
@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.