Close httplib2 connections.
create(project, body=None, clientOperationId=None, x__xgafv=None)
Creates a new Response Policy
delete(project, responsePolicy, clientOperationId=None, x__xgafv=None)
Deletes a previously created Response Policy. Fails if the response policy is non-empty or still being referenced by a network.
get(project, responsePolicy, clientOperationId=None, x__xgafv=None)
Fetches the representation of an existing Response Policy.
list(project, maxResults=None, pageToken=None, x__xgafv=None)
Enumerates all Response Policies associated with a project.
Retrieves the next page of results.
patch(project, responsePolicy, body=None, clientOperationId=None, x__xgafv=None)
Applies a partial update to an existing Response Policy.
update(project, responsePolicy, body=None, clientOperationId=None, x__xgafv=None)
Updates an existing Response Policy.
close()
Close httplib2 connections.
create(project, body=None, clientOperationId=None, x__xgafv=None)
Creates a new Response Policy Args: project: string, Identifies the project addressed by this request. (required) body: object, The request body. The object takes the form of: { # A Response Policy is a collection of selectors that apply to queries made against one or more Virtual Private Cloud networks. "description": "A String", # User-provided description for this Response Policy. "gkeClusters": [ # The list of Google Kubernetes Engine clusters to which this response policy is applied. { "gkeClusterName": "A String", # The resource name of the cluster to bind this response policy to. This should be specified in the format like: projects/*/locations/*/clusters/*. This is referenced from GKE projects.locations.clusters.get API: https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/get "kind": "dns#responsePolicyGKECluster", }, ], "id": "A String", # Unique identifier for the resource; defined by the server (output only). "kind": "dns#responsePolicy", "labels": { # User labels. "a_key": "A String", }, "networks": [ # List of network names specifying networks to which this policy is applied. { "kind": "dns#responsePolicyNetwork", "networkUrl": "A String", # The fully qualified URL of the VPC network to bind to. This should be formatted like `https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}` }, ], "responsePolicyName": "A String", # User assigned name for this Response Policy. } clientOperationId: string, For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection. x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # A Response Policy is a collection of selectors that apply to queries made against one or more Virtual Private Cloud networks. "description": "A String", # User-provided description for this Response Policy. "gkeClusters": [ # The list of Google Kubernetes Engine clusters to which this response policy is applied. { "gkeClusterName": "A String", # The resource name of the cluster to bind this response policy to. This should be specified in the format like: projects/*/locations/*/clusters/*. This is referenced from GKE projects.locations.clusters.get API: https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/get "kind": "dns#responsePolicyGKECluster", }, ], "id": "A String", # Unique identifier for the resource; defined by the server (output only). "kind": "dns#responsePolicy", "labels": { # User labels. "a_key": "A String", }, "networks": [ # List of network names specifying networks to which this policy is applied. { "kind": "dns#responsePolicyNetwork", "networkUrl": "A String", # The fully qualified URL of the VPC network to bind to. This should be formatted like `https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}` }, ], "responsePolicyName": "A String", # User assigned name for this Response Policy. }
delete(project, responsePolicy, clientOperationId=None, x__xgafv=None)
Deletes a previously created Response Policy. Fails if the response policy is non-empty or still being referenced by a network. Args: project: string, Identifies the project addressed by this request. (required) responsePolicy: string, User assigned name of the Response Policy addressed by this request. (required) clientOperationId: string, For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection. x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format
get(project, responsePolicy, clientOperationId=None, x__xgafv=None)
Fetches the representation of an existing Response Policy. Args: project: string, Identifies the project addressed by this request. (required) responsePolicy: string, User assigned name of the Response Policy addressed by this request. (required) clientOperationId: string, For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection. x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # A Response Policy is a collection of selectors that apply to queries made against one or more Virtual Private Cloud networks. "description": "A String", # User-provided description for this Response Policy. "gkeClusters": [ # The list of Google Kubernetes Engine clusters to which this response policy is applied. { "gkeClusterName": "A String", # The resource name of the cluster to bind this response policy to. This should be specified in the format like: projects/*/locations/*/clusters/*. This is referenced from GKE projects.locations.clusters.get API: https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/get "kind": "dns#responsePolicyGKECluster", }, ], "id": "A String", # Unique identifier for the resource; defined by the server (output only). "kind": "dns#responsePolicy", "labels": { # User labels. "a_key": "A String", }, "networks": [ # List of network names specifying networks to which this policy is applied. { "kind": "dns#responsePolicyNetwork", "networkUrl": "A String", # The fully qualified URL of the VPC network to bind to. This should be formatted like `https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}` }, ], "responsePolicyName": "A String", # User assigned name for this Response Policy. }
list(project, maxResults=None, pageToken=None, x__xgafv=None)
Enumerates all Response Policies associated with a project. Args: project: string, Identifies the project addressed by this request. (required) maxResults: integer, Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return. pageToken: string, Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request. x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { "nextPageToken": "A String", # This field indicates that more results are available beyond the last page displayed. To fetch the results, make another list request and use this value as your page token. This lets you retrieve the complete contents of a very large collection one page at a time. However, if the contents of the collection change between the first and last paginated list request, the set of all elements returned are an inconsistent view of the collection. You can't retrieve a consistent snapshot of a collection larger than the maximum page size. "responsePolicies": [ # The Response Policy resources. { # A Response Policy is a collection of selectors that apply to queries made against one or more Virtual Private Cloud networks. "description": "A String", # User-provided description for this Response Policy. "gkeClusters": [ # The list of Google Kubernetes Engine clusters to which this response policy is applied. { "gkeClusterName": "A String", # The resource name of the cluster to bind this response policy to. This should be specified in the format like: projects/*/locations/*/clusters/*. This is referenced from GKE projects.locations.clusters.get API: https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/get "kind": "dns#responsePolicyGKECluster", }, ], "id": "A String", # Unique identifier for the resource; defined by the server (output only). "kind": "dns#responsePolicy", "labels": { # User labels. "a_key": "A String", }, "networks": [ # List of network names specifying networks to which this policy is applied. { "kind": "dns#responsePolicyNetwork", "networkUrl": "A String", # The fully qualified URL of the VPC network to bind to. This should be formatted like `https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}` }, ], "responsePolicyName": "A String", # User assigned name for this Response Policy. }, ], }
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.
patch(project, responsePolicy, body=None, clientOperationId=None, x__xgafv=None)
Applies a partial update to an existing Response Policy. Args: project: string, Identifies the project addressed by this request. (required) responsePolicy: string, User assigned name of the response policy addressed by this request. (required) body: object, The request body. The object takes the form of: { # A Response Policy is a collection of selectors that apply to queries made against one or more Virtual Private Cloud networks. "description": "A String", # User-provided description for this Response Policy. "gkeClusters": [ # The list of Google Kubernetes Engine clusters to which this response policy is applied. { "gkeClusterName": "A String", # The resource name of the cluster to bind this response policy to. This should be specified in the format like: projects/*/locations/*/clusters/*. This is referenced from GKE projects.locations.clusters.get API: https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/get "kind": "dns#responsePolicyGKECluster", }, ], "id": "A String", # Unique identifier for the resource; defined by the server (output only). "kind": "dns#responsePolicy", "labels": { # User labels. "a_key": "A String", }, "networks": [ # List of network names specifying networks to which this policy is applied. { "kind": "dns#responsePolicyNetwork", "networkUrl": "A String", # The fully qualified URL of the VPC network to bind to. This should be formatted like `https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}` }, ], "responsePolicyName": "A String", # User assigned name for this Response Policy. } clientOperationId: string, For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection. x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { "responsePolicy": { # A Response Policy is a collection of selectors that apply to queries made against one or more Virtual Private Cloud networks. "description": "A String", # User-provided description for this Response Policy. "gkeClusters": [ # The list of Google Kubernetes Engine clusters to which this response policy is applied. { "gkeClusterName": "A String", # The resource name of the cluster to bind this response policy to. This should be specified in the format like: projects/*/locations/*/clusters/*. This is referenced from GKE projects.locations.clusters.get API: https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/get "kind": "dns#responsePolicyGKECluster", }, ], "id": "A String", # Unique identifier for the resource; defined by the server (output only). "kind": "dns#responsePolicy", "labels": { # User labels. "a_key": "A String", }, "networks": [ # List of network names specifying networks to which this policy is applied. { "kind": "dns#responsePolicyNetwork", "networkUrl": "A String", # The fully qualified URL of the VPC network to bind to. This should be formatted like `https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}` }, ], "responsePolicyName": "A String", # User assigned name for this Response Policy. }, }
update(project, responsePolicy, body=None, clientOperationId=None, x__xgafv=None)
Updates an existing Response Policy. Args: project: string, Identifies the project addressed by this request. (required) responsePolicy: string, User assigned name of the Response Policy addressed by this request. (required) body: object, The request body. The object takes the form of: { # A Response Policy is a collection of selectors that apply to queries made against one or more Virtual Private Cloud networks. "description": "A String", # User-provided description for this Response Policy. "gkeClusters": [ # The list of Google Kubernetes Engine clusters to which this response policy is applied. { "gkeClusterName": "A String", # The resource name of the cluster to bind this response policy to. This should be specified in the format like: projects/*/locations/*/clusters/*. This is referenced from GKE projects.locations.clusters.get API: https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/get "kind": "dns#responsePolicyGKECluster", }, ], "id": "A String", # Unique identifier for the resource; defined by the server (output only). "kind": "dns#responsePolicy", "labels": { # User labels. "a_key": "A String", }, "networks": [ # List of network names specifying networks to which this policy is applied. { "kind": "dns#responsePolicyNetwork", "networkUrl": "A String", # The fully qualified URL of the VPC network to bind to. This should be formatted like `https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}` }, ], "responsePolicyName": "A String", # User assigned name for this Response Policy. } clientOperationId: string, For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection. x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { "responsePolicy": { # A Response Policy is a collection of selectors that apply to queries made against one or more Virtual Private Cloud networks. "description": "A String", # User-provided description for this Response Policy. "gkeClusters": [ # The list of Google Kubernetes Engine clusters to which this response policy is applied. { "gkeClusterName": "A String", # The resource name of the cluster to bind this response policy to. This should be specified in the format like: projects/*/locations/*/clusters/*. This is referenced from GKE projects.locations.clusters.get API: https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/get "kind": "dns#responsePolicyGKECluster", }, ], "id": "A String", # Unique identifier for the resource; defined by the server (output only). "kind": "dns#responsePolicy", "labels": { # User labels. "a_key": "A String", }, "networks": [ # List of network names specifying networks to which this policy is applied. { "kind": "dns#responsePolicyNetwork", "networkUrl": "A String", # The fully qualified URL of the VPC network to bind to. This should be formatted like `https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}` }, ], "responsePolicyName": "A String", # User assigned name for this Response Policy. }, }