Cloud Resource Manager API . effectiveTags

Instance Methods

close()

Close httplib2 connections.

list(pageSize=None, pageToken=None, parent=None, x__xgafv=None)

Return a list of effective tags for the given Google Cloud resource, as specified in `parent`.

list_next()

Retrieves the next page of results.

Method Details

close()
Close httplib2 connections.
list(pageSize=None, pageToken=None, parent=None, x__xgafv=None)
Return a list of effective tags for the given Google Cloud resource, as specified in `parent`.

Args:
  pageSize: integer, Optional. The maximum number of effective tags to return in the response. The server allows a maximum of 300 effective tags to return in a single page. If unspecified, the server will use 100 as the default.
  pageToken: string, Optional. A pagination token returned from a previous call to `ListEffectiveTags` that indicates from where this listing should continue.
  parent: string, Required. The full resource name of a resource for which you want to list the effective tags. E.g. "//cloudresourcemanager.googleapis.com/projects/123"
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # The response of ListEffectiveTags.
  "effectiveTags": [ # A possibly paginated list of effective tags for the specified resource.
    { # An EffectiveTag represents a tag that applies to a resource during policy evaluation. Tags can be either directly bound to a resource or inherited from its ancestor. EffectiveTag contains the name and namespaced_name of the tag value and tag key, with additional fields of `inherited` to indicate the inheritance status of the effective tag.
      "inherited": True or False, # Indicates the inheritance status of a tag value attached to the given resource. If the tag value is inherited from one of the resource's ancestors, inherited will be true. If false, then the tag value is directly attached to the resource, inherited will be false.
      "namespacedTagKey": "A String", # The namespaced name of the TagKey. Can be in the form `{organization_id}/{tag_key_short_name}` or `{project_id}/{tag_key_short_name}` or `{project_number}/{tag_key_short_name}`.
      "namespacedTagValue": "A String", # The namespaced name of the TagValue. Can be in the form `{organization_id}/{tag_key_short_name}/{tag_value_short_name}` or `{project_id}/{tag_key_short_name}/{tag_value_short_name}` or `{project_number}/{tag_key_short_name}/{tag_value_short_name}`.
      "tagKey": "A String", # The name of the TagKey, in the format `tagKeys/{id}`, such as `tagKeys/123`.
      "tagKeyParentName": "A String", # The parent name of the tag key. Must be in the format `organizations/{organization_id}` or `projects/{project_number}`
      "tagValue": "A String", # Resource name for TagValue in the format `tagValues/456`.
    },
  ],
  "nextPageToken": "A String", # Pagination token. If the result set is too large to fit in a single response, this token is returned. It encodes the position of the current result cursor. Feeding this value into a new list request with the `page_token` parameter gives the next page of the results. When `next_page_token` is not filled in, there is no next page and the list returned is the last page in the result set. Pagination tokens have a limited lifetime.
}
list_next()
Retrieves the next page of results.

        Args:
          previous_request: The request for the previous page. (required)
          previous_response: The response from the request for the previous page. (required)

        Returns:
          A request object that you can call 'execute()' on to request the next
          page. Returns None if there are no more items in the collection.