Migration Center API . projects . locations . relations

Instance Methods

close()

Close httplib2 connections.

get(name, x__xgafv=None)

Gets the details of an relation.

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

Lists all the relations in a given project and location.

list_next()

Retrieves the next page of results.

Method Details

close()
Close httplib2 connections.
get(name, x__xgafv=None)
Gets the details of an relation.

Args:
  name: string, Required. Name of the resource. (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Message representing a relation between 2 resource.
  "createTime": "A String", # Output only. The timestamp when the relation was created.
  "dstAsset": "A String", # Output only. The destination asset name in the relation.
  "name": "A String", # Output only. Identifier. The identifier of the relation.
  "srcAsset": "A String", # Output only. The source asset name in the relation.
  "type": "A String", # Optional. The type of the relation.
}
list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)
Lists all the relations in a given project and location.

Args:
  parent: string, Required. Parent value for `ListRelationsRequest`. (required)
  filter: string, Filtering results.
  orderBy: string, Field to sort by. See https://google.aip.dev/132#ordering for more details.
  pageSize: integer, Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
  pageToken: string, A token identifying a page of results the server should return.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response message for listing relations.
  "nextPageToken": "A String", # A token identifying a page of results the server should return.
  "relations": [ # A list of relations.
    { # Message representing a relation between 2 resource.
      "createTime": "A String", # Output only. The timestamp when the relation was created.
      "dstAsset": "A String", # Output only. The destination asset name in the relation.
      "name": "A String", # Output only. Identifier. The identifier of the relation.
      "srcAsset": "A String", # Output only. The source asset name in the relation.
      "type": "A String", # Optional. The type of the relation.
    },
  ],
}
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.