Close httplib2 connections.
findFreeIpRanges(name, cidrPrefixLength=None, rangeCount=None, requestId=None, x__xgafv=None)
Finds free IP ranges in a single DiscoveredRange.
Gets details of a single DiscoveredRange.
list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)
Lists DiscoveredRanges in a given project and location.
Retrieves the next page of results.
showUtilization(name, x__xgafv=None)
Gets the details of a single DiscoveredRange and its utilization.
close()
Close httplib2 connections.
findFreeIpRanges(name, cidrPrefixLength=None, rangeCount=None, requestId=None, x__xgafv=None)
Finds free IP ranges in a single DiscoveredRange.
Args:
name: string, Required. Name of the DiscoveredRange. (required)
cidrPrefixLength: integer, Required. The prefix length of the free IP ranges to find.
rangeCount: integer, Optional. The number of free IP ranges to find.
requestId: string, Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # Message for the response to finding free IP ranges.
"freeIpCidrRanges": [ # Output only. Free IP CIDR ranges found in the DiscoveredRange.
"A String",
],
}
get(name, x__xgafv=None)
Gets details of a single DiscoveredRange.
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 describing DiscoveredRange object
"attributes": [ # Optional. The attributes of the DiscoveredRange.
{ # Message describing Attribute object
"key": "A String", # Required. Key of attribute
"value": "A String", # Required. Value of attribute
},
],
"childCidrOverlapAllowed": True or False, # Output only. If true, allow child ranges of this range to overlap with each other.
"createTime": "A String", # Output only. [Output only] Create time stamp
"description": "A String", # Optional. Description of the DiscoveredRange.
"discoveryMetadata": { # Discovery metadata of the discovered resource. # Output only. Owner metadata for this DiscoveredRange. A unique set of metadata is associated with each DiscoveredRange. If an IP range is shared by multiple resources (e.g., an Address resource and an Instance resource, or multiple ForwardingRules),separate DiscoveredRanges are created, each with a distinct owner. This ensures each DiscoveredRange has its own unique set of attributes, labels, create time and update time.
"createTime": "A String", # Output only. The time when the resource was created.
"eventTime": "A String", # Output only. The time when the event happened.
"resource": "A String", # Output only. The resource name of the discovered resource, should be API-agnostic. Example: "projects/{project_number}/networks/{network_id}".
"resourceUri": "A String", # Output only. The resource uri of the discovered resource.
"sourceId": "A String", # Output only. The canonical google.aip.dev/122 name of the source resource.
"sourceSubId": "A String", # Output only. A single source resource can be the source of multiple CNR resources. This sub_id is used to distinguish between the different CNR resources derived from the same upstream resource. For example, a single subnetwork can be the source of multiple ranges, one for each protocol. In this case, the sub_id could be "private-ipv4" or "private-ipv6".
"state": "A String", # Output only. The state of the resource.
"updateTime": "A String", # Output only. The time when the resource was last modified.
},
"ipv4CidrRange": "A String", # Optional. The IPv4 CIDR range of the DiscoveredRange.
"ipv6CidrRange": "A String", # Optional. The IPv6 CIDR range of the DiscoveredRange.
"labels": { # Optional. Labels as key value pairs
"a_key": "A String",
},
"name": "A String", # Required. Identifier. Name of the DiscoveredRange.
"parentRange": "A String", # Optional. The parent range of the DiscoveredRange.
"realm": "A String", # Optional. The realm of the DiscoveredRange.
"registryBook": "A String", # Output only. The registry book of the DiscoveredRange.
"updateTime": "A String", # Output only. [Output only] Update time stamp
}
list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)
Lists DiscoveredRanges in a given project and location.
Args:
parent: string, Required. Parent value for ListDiscoveredRangesRequest (required)
filter: string, Optional. Filtering results.
orderBy: string, Optional. Hint for how to order the results.
pageSize: integer, Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
pageToken: string, Optional. 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:
{ # Message for response to listing DiscoveredRanges
"discoveredRanges": [ # The list of DiscoveredRange
{ # Message describing DiscoveredRange object
"attributes": [ # Optional. The attributes of the DiscoveredRange.
{ # Message describing Attribute object
"key": "A String", # Required. Key of attribute
"value": "A String", # Required. Value of attribute
},
],
"childCidrOverlapAllowed": True or False, # Output only. If true, allow child ranges of this range to overlap with each other.
"createTime": "A String", # Output only. [Output only] Create time stamp
"description": "A String", # Optional. Description of the DiscoveredRange.
"discoveryMetadata": { # Discovery metadata of the discovered resource. # Output only. Owner metadata for this DiscoveredRange. A unique set of metadata is associated with each DiscoveredRange. If an IP range is shared by multiple resources (e.g., an Address resource and an Instance resource, or multiple ForwardingRules),separate DiscoveredRanges are created, each with a distinct owner. This ensures each DiscoveredRange has its own unique set of attributes, labels, create time and update time.
"createTime": "A String", # Output only. The time when the resource was created.
"eventTime": "A String", # Output only. The time when the event happened.
"resource": "A String", # Output only. The resource name of the discovered resource, should be API-agnostic. Example: "projects/{project_number}/networks/{network_id}".
"resourceUri": "A String", # Output only. The resource uri of the discovered resource.
"sourceId": "A String", # Output only. The canonical google.aip.dev/122 name of the source resource.
"sourceSubId": "A String", # Output only. A single source resource can be the source of multiple CNR resources. This sub_id is used to distinguish between the different CNR resources derived from the same upstream resource. For example, a single subnetwork can be the source of multiple ranges, one for each protocol. In this case, the sub_id could be "private-ipv4" or "private-ipv6".
"state": "A String", # Output only. The state of the resource.
"updateTime": "A String", # Output only. The time when the resource was last modified.
},
"ipv4CidrRange": "A String", # Optional. The IPv4 CIDR range of the DiscoveredRange.
"ipv6CidrRange": "A String", # Optional. The IPv6 CIDR range of the DiscoveredRange.
"labels": { # Optional. Labels as key value pairs
"a_key": "A String",
},
"name": "A String", # Required. Identifier. Name of the DiscoveredRange.
"parentRange": "A String", # Optional. The parent range of the DiscoveredRange.
"realm": "A String", # Optional. The realm of the DiscoveredRange.
"registryBook": "A String", # Output only. The registry book of the DiscoveredRange.
"updateTime": "A String", # Output only. [Output only] Update time stamp
},
],
"nextPageToken": "A String", # A token identifying a page of results the server should return.
"unreachable": [ # Locations that could not be reached.
"A String",
],
}
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.
showUtilization(name, x__xgafv=None)
Gets the details of a single DiscoveredRange and its utilization.
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 for the response to getting the utilization of a DiscoveredRange
"discoveredRange": { # Message describing DiscoveredRange object # The DiscoveredRange resource.
"attributes": [ # Optional. The attributes of the DiscoveredRange.
{ # Message describing Attribute object
"key": "A String", # Required. Key of attribute
"value": "A String", # Required. Value of attribute
},
],
"childCidrOverlapAllowed": True or False, # Output only. If true, allow child ranges of this range to overlap with each other.
"createTime": "A String", # Output only. [Output only] Create time stamp
"description": "A String", # Optional. Description of the DiscoveredRange.
"discoveryMetadata": { # Discovery metadata of the discovered resource. # Output only. Owner metadata for this DiscoveredRange. A unique set of metadata is associated with each DiscoveredRange. If an IP range is shared by multiple resources (e.g., an Address resource and an Instance resource, or multiple ForwardingRules),separate DiscoveredRanges are created, each with a distinct owner. This ensures each DiscoveredRange has its own unique set of attributes, labels, create time and update time.
"createTime": "A String", # Output only. The time when the resource was created.
"eventTime": "A String", # Output only. The time when the event happened.
"resource": "A String", # Output only. The resource name of the discovered resource, should be API-agnostic. Example: "projects/{project_number}/networks/{network_id}".
"resourceUri": "A String", # Output only. The resource uri of the discovered resource.
"sourceId": "A String", # Output only. The canonical google.aip.dev/122 name of the source resource.
"sourceSubId": "A String", # Output only. A single source resource can be the source of multiple CNR resources. This sub_id is used to distinguish between the different CNR resources derived from the same upstream resource. For example, a single subnetwork can be the source of multiple ranges, one for each protocol. In this case, the sub_id could be "private-ipv4" or "private-ipv6".
"state": "A String", # Output only. The state of the resource.
"updateTime": "A String", # Output only. The time when the resource was last modified.
},
"ipv4CidrRange": "A String", # Optional. The IPv4 CIDR range of the DiscoveredRange.
"ipv6CidrRange": "A String", # Optional. The IPv6 CIDR range of the DiscoveredRange.
"labels": { # Optional. Labels as key value pairs
"a_key": "A String",
},
"name": "A String", # Required. Identifier. Name of the DiscoveredRange.
"parentRange": "A String", # Optional. The parent range of the DiscoveredRange.
"realm": "A String", # Optional. The realm of the DiscoveredRange.
"registryBook": "A String", # Output only. The registry book of the DiscoveredRange.
"updateTime": "A String", # Output only. [Output only] Update time stamp
},
"rangeUtilization": { # Message for the utilization of an IP range # The utilization of the DiscoveredRange.
"totalConsumed": "A String", # Output only. The total number of IP addresses consumed in the range.
"totalProduced": "A String", # Output only. The total number of IP addresses produced in the range.
"usage": 3.14, # Output only. The usage of the range as a percentage. This is marked as optional so that we have presence tracking and API responses show 0.0 instead of NULL.
},
}