1<html><body> 2<style> 3 4body, h1, h2, h3, div, span, p, pre, a { 5 margin: 0; 6 padding: 0; 7 border: 0; 8 font-weight: inherit; 9 font-style: inherit; 10 font-size: 100%; 11 font-family: inherit; 12 vertical-align: baseline; 13} 14 15body { 16 font-size: 13px; 17 padding: 1em; 18} 19 20h1 { 21 font-size: 26px; 22 margin-bottom: 1em; 23} 24 25h2 { 26 font-size: 24px; 27 margin-bottom: 1em; 28} 29 30h3 { 31 font-size: 20px; 32 margin-bottom: 1em; 33 margin-top: 1em; 34} 35 36pre, code { 37 line-height: 1.5; 38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; 39} 40 41pre { 42 margin-top: 0.5em; 43} 44 45h1, h2, h3, p { 46 font-family: Arial, sans serif; 47} 48 49h1, h2, h3 { 50 border-bottom: solid #CCC 1px; 51} 52 53.toc_element { 54 margin-top: 0.5em; 55} 56 57.firstline { 58 margin-left: 2 em; 59} 60 61.method { 62 margin-top: 1em; 63 border: solid 1px #CCC; 64 padding: 1em; 65 background: #EEE; 66} 67 68.details { 69 font-weight: bold; 70 font-size: 14px; 71} 72 73</style> 74 75<h1><a href="dns_v1beta2.html">Cloud DNS API</a> . <a href="dns_v1beta2.responsePolicies.html">responsePolicies</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="#close">close()</a></code></p> 79<p class="firstline">Close httplib2 connections.</p> 80<p class="toc_element"> 81 <code><a href="#create">create(project, body=None, clientOperationId=None, x__xgafv=None)</a></code></p> 82<p class="firstline">Creates a new Response Policy</p> 83<p class="toc_element"> 84 <code><a href="#delete">delete(project, responsePolicy, clientOperationId=None, x__xgafv=None)</a></code></p> 85<p class="firstline">Deletes a previously created Response Policy. Fails if the response policy is non-empty or still being referenced by a network.</p> 86<p class="toc_element"> 87 <code><a href="#get">get(project, responsePolicy, clientOperationId=None, x__xgafv=None)</a></code></p> 88<p class="firstline">Fetches the representation of an existing Response Policy.</p> 89<p class="toc_element"> 90 <code><a href="#list">list(project, maxResults=None, pageToken=None, x__xgafv=None)</a></code></p> 91<p class="firstline">Enumerates all Response Policies associated with a project.</p> 92<p class="toc_element"> 93 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> 94<p class="firstline">Retrieves the next page of results.</p> 95<p class="toc_element"> 96 <code><a href="#patch">patch(project, responsePolicy, body=None, clientOperationId=None, x__xgafv=None)</a></code></p> 97<p class="firstline">Applies a partial update to an existing Response Policy.</p> 98<p class="toc_element"> 99 <code><a href="#update">update(project, responsePolicy, body=None, clientOperationId=None, x__xgafv=None)</a></code></p> 100<p class="firstline">Updates an existing Response Policy.</p> 101<h3>Method Details</h3> 102<div class="method"> 103 <code class="details" id="close">close()</code> 104 <pre>Close httplib2 connections.</pre> 105</div> 106 107<div class="method"> 108 <code class="details" id="create">create(project, body=None, clientOperationId=None, x__xgafv=None)</code> 109 <pre>Creates a new Response Policy 110 111Args: 112 project: string, Identifies the project addressed by this request. (required) 113 body: object, The request body. 114 The object takes the form of: 115 116{ # A Response Policy is a collection of selectors that apply to queries made against one or more Virtual Private Cloud networks. 117 "description": "A String", # User-provided description for this Response Policy. 118 "gkeClusters": [ # The list of Google Kubernetes Engine clusters to which this response policy is applied. 119 { 120 "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 121 "kind": "dns#responsePolicyGKECluster", 122 }, 123 ], 124 "id": "A String", # Unique identifier for the resource; defined by the server (output only). 125 "kind": "dns#responsePolicy", 126 "networks": [ # List of network names specifying networks to which this policy is applied. 127 { 128 "kind": "dns#responsePolicyNetwork", 129 "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} 130 }, 131 ], 132 "responsePolicyName": "A String", # User assigned name for this Response Policy. 133} 134 135 clientOperationId: string, For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection. 136 x__xgafv: string, V1 error format. 137 Allowed values 138 1 - v1 error format 139 2 - v2 error format 140 141Returns: 142 An object of the form: 143 144 { # A Response Policy is a collection of selectors that apply to queries made against one or more Virtual Private Cloud networks. 145 "description": "A String", # User-provided description for this Response Policy. 146 "gkeClusters": [ # The list of Google Kubernetes Engine clusters to which this response policy is applied. 147 { 148 "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 149 "kind": "dns#responsePolicyGKECluster", 150 }, 151 ], 152 "id": "A String", # Unique identifier for the resource; defined by the server (output only). 153 "kind": "dns#responsePolicy", 154 "networks": [ # List of network names specifying networks to which this policy is applied. 155 { 156 "kind": "dns#responsePolicyNetwork", 157 "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} 158 }, 159 ], 160 "responsePolicyName": "A String", # User assigned name for this Response Policy. 161}</pre> 162</div> 163 164<div class="method"> 165 <code class="details" id="delete">delete(project, responsePolicy, clientOperationId=None, x__xgafv=None)</code> 166 <pre>Deletes a previously created Response Policy. Fails if the response policy is non-empty or still being referenced by a network. 167 168Args: 169 project: string, Identifies the project addressed by this request. (required) 170 responsePolicy: string, User assigned name of the Response Policy addressed by this request. (required) 171 clientOperationId: string, For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection. 172 x__xgafv: string, V1 error format. 173 Allowed values 174 1 - v1 error format 175 2 - v2 error format 176</pre> 177</div> 178 179<div class="method"> 180 <code class="details" id="get">get(project, responsePolicy, clientOperationId=None, x__xgafv=None)</code> 181 <pre>Fetches the representation of an existing Response Policy. 182 183Args: 184 project: string, Identifies the project addressed by this request. (required) 185 responsePolicy: string, User assigned name of the Response Policy addressed by this request. (required) 186 clientOperationId: string, For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection. 187 x__xgafv: string, V1 error format. 188 Allowed values 189 1 - v1 error format 190 2 - v2 error format 191 192Returns: 193 An object of the form: 194 195 { # A Response Policy is a collection of selectors that apply to queries made against one or more Virtual Private Cloud networks. 196 "description": "A String", # User-provided description for this Response Policy. 197 "gkeClusters": [ # The list of Google Kubernetes Engine clusters to which this response policy is applied. 198 { 199 "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 200 "kind": "dns#responsePolicyGKECluster", 201 }, 202 ], 203 "id": "A String", # Unique identifier for the resource; defined by the server (output only). 204 "kind": "dns#responsePolicy", 205 "networks": [ # List of network names specifying networks to which this policy is applied. 206 { 207 "kind": "dns#responsePolicyNetwork", 208 "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} 209 }, 210 ], 211 "responsePolicyName": "A String", # User assigned name for this Response Policy. 212}</pre> 213</div> 214 215<div class="method"> 216 <code class="details" id="list">list(project, maxResults=None, pageToken=None, x__xgafv=None)</code> 217 <pre>Enumerates all Response Policies associated with a project. 218 219Args: 220 project: string, Identifies the project addressed by this request. (required) 221 maxResults: integer, Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return. 222 pageToken: string, Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request. 223 x__xgafv: string, V1 error format. 224 Allowed values 225 1 - v1 error format 226 2 - v2 error format 227 228Returns: 229 An object of the form: 230 231 { 232 "header": { # Elements common to every response. 233 "operationId": "A String", # For mutating operation requests that completed successfully. This is the client_operation_id if the client specified it, otherwise it is generated by the server (output only). 234 }, 235 "nextPageToken": "A String", # The presence of this field indicates that there exist more results following your last page of results in pagination order. To fetch them, make another list request using this value as your page token. This lets you the complete contents of even very large collections 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 cannot retrieve a consistent snapshot of a collection larger than the maximum page size. 236 "responsePolicies": [ # The Response Policy resources. 237 { # A Response Policy is a collection of selectors that apply to queries made against one or more Virtual Private Cloud networks. 238 "description": "A String", # User-provided description for this Response Policy. 239 "gkeClusters": [ # The list of Google Kubernetes Engine clusters to which this response policy is applied. 240 { 241 "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 242 "kind": "dns#responsePolicyGKECluster", 243 }, 244 ], 245 "id": "A String", # Unique identifier for the resource; defined by the server (output only). 246 "kind": "dns#responsePolicy", 247 "networks": [ # List of network names specifying networks to which this policy is applied. 248 { 249 "kind": "dns#responsePolicyNetwork", 250 "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} 251 }, 252 ], 253 "responsePolicyName": "A String", # User assigned name for this Response Policy. 254 }, 255 ], 256}</pre> 257</div> 258 259<div class="method"> 260 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 261 <pre>Retrieves the next page of results. 262 263Args: 264 previous_request: The request for the previous page. (required) 265 previous_response: The response from the request for the previous page. (required) 266 267Returns: 268 A request object that you can call 'execute()' on to request the next 269 page. Returns None if there are no more items in the collection. 270 </pre> 271</div> 272 273<div class="method"> 274 <code class="details" id="patch">patch(project, responsePolicy, body=None, clientOperationId=None, x__xgafv=None)</code> 275 <pre>Applies a partial update to an existing Response Policy. 276 277Args: 278 project: string, Identifies the project addressed by this request. (required) 279 responsePolicy: string, User assigned name of the Respones Policy addressed by this request. (required) 280 body: object, The request body. 281 The object takes the form of: 282 283{ # A Response Policy is a collection of selectors that apply to queries made against one or more Virtual Private Cloud networks. 284 "description": "A String", # User-provided description for this Response Policy. 285 "gkeClusters": [ # The list of Google Kubernetes Engine clusters to which this response policy is applied. 286 { 287 "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 288 "kind": "dns#responsePolicyGKECluster", 289 }, 290 ], 291 "id": "A String", # Unique identifier for the resource; defined by the server (output only). 292 "kind": "dns#responsePolicy", 293 "networks": [ # List of network names specifying networks to which this policy is applied. 294 { 295 "kind": "dns#responsePolicyNetwork", 296 "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} 297 }, 298 ], 299 "responsePolicyName": "A String", # User assigned name for this Response Policy. 300} 301 302 clientOperationId: string, For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection. 303 x__xgafv: string, V1 error format. 304 Allowed values 305 1 - v1 error format 306 2 - v2 error format 307 308Returns: 309 An object of the form: 310 311 { 312 "header": { # Elements common to every response. 313 "operationId": "A String", # For mutating operation requests that completed successfully. This is the client_operation_id if the client specified it, otherwise it is generated by the server (output only). 314 }, 315 "responsePolicy": { # A Response Policy is a collection of selectors that apply to queries made against one or more Virtual Private Cloud networks. 316 "description": "A String", # User-provided description for this Response Policy. 317 "gkeClusters": [ # The list of Google Kubernetes Engine clusters to which this response policy is applied. 318 { 319 "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 320 "kind": "dns#responsePolicyGKECluster", 321 }, 322 ], 323 "id": "A String", # Unique identifier for the resource; defined by the server (output only). 324 "kind": "dns#responsePolicy", 325 "networks": [ # List of network names specifying networks to which this policy is applied. 326 { 327 "kind": "dns#responsePolicyNetwork", 328 "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} 329 }, 330 ], 331 "responsePolicyName": "A String", # User assigned name for this Response Policy. 332 }, 333}</pre> 334</div> 335 336<div class="method"> 337 <code class="details" id="update">update(project, responsePolicy, body=None, clientOperationId=None, x__xgafv=None)</code> 338 <pre>Updates an existing Response Policy. 339 340Args: 341 project: string, Identifies the project addressed by this request. (required) 342 responsePolicy: string, User assigned name of the Response Policy addressed by this request. (required) 343 body: object, The request body. 344 The object takes the form of: 345 346{ # A Response Policy is a collection of selectors that apply to queries made against one or more Virtual Private Cloud networks. 347 "description": "A String", # User-provided description for this Response Policy. 348 "gkeClusters": [ # The list of Google Kubernetes Engine clusters to which this response policy is applied. 349 { 350 "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 351 "kind": "dns#responsePolicyGKECluster", 352 }, 353 ], 354 "id": "A String", # Unique identifier for the resource; defined by the server (output only). 355 "kind": "dns#responsePolicy", 356 "networks": [ # List of network names specifying networks to which this policy is applied. 357 { 358 "kind": "dns#responsePolicyNetwork", 359 "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} 360 }, 361 ], 362 "responsePolicyName": "A String", # User assigned name for this Response Policy. 363} 364 365 clientOperationId: string, For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection. 366 x__xgafv: string, V1 error format. 367 Allowed values 368 1 - v1 error format 369 2 - v2 error format 370 371Returns: 372 An object of the form: 373 374 { 375 "header": { # Elements common to every response. 376 "operationId": "A String", # For mutating operation requests that completed successfully. This is the client_operation_id if the client specified it, otherwise it is generated by the server (output only). 377 }, 378 "responsePolicy": { # A Response Policy is a collection of selectors that apply to queries made against one or more Virtual Private Cloud networks. 379 "description": "A String", # User-provided description for this Response Policy. 380 "gkeClusters": [ # The list of Google Kubernetes Engine clusters to which this response policy is applied. 381 { 382 "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 383 "kind": "dns#responsePolicyGKECluster", 384 }, 385 ], 386 "id": "A String", # Unique identifier for the resource; defined by the server (output only). 387 "kind": "dns#responsePolicy", 388 "networks": [ # List of network names specifying networks to which this policy is applied. 389 { 390 "kind": "dns#responsePolicyNetwork", 391 "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} 392 }, 393 ], 394 "responsePolicyName": "A String", # User assigned name for this Response Policy. 395 }, 396}</pre> 397</div> 398 399</body></html>