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="compute_alpha.html">Compute Engine API</a> . <a href="compute_alpha.vpnGateways.html">vpnGateways</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="#aggregatedList">aggregatedList(project, orderBy=None, maxResults=None, pageToken=None, filter=None)</a></code></p> 79<p class="firstline">Retrieves an aggregated list of VPN gateways.</p> 80<p class="toc_element"> 81 <code><a href="#aggregatedList_next">aggregatedList_next(previous_request, previous_response)</a></code></p> 82<p class="firstline">Retrieves the next page of results.</p> 83<p class="toc_element"> 84 <code><a href="#delete">delete(project, region, vpnGateway, requestId=None)</a></code></p> 85<p class="firstline">Deletes the specified VPN gateway.</p> 86<p class="toc_element"> 87 <code><a href="#get">get(project, region, vpnGateway)</a></code></p> 88<p class="firstline">Returns the specified VPN gateway. Gets a list of available VPN gateways by making a list() request.</p> 89<p class="toc_element"> 90 <code><a href="#getStatus">getStatus(project, region, vpnGateway)</a></code></p> 91<p class="firstline">Returns the status for the specified VPN gateway.</p> 92<p class="toc_element"> 93 <code><a href="#insert">insert(project, region, body, requestId=None)</a></code></p> 94<p class="firstline">Creates a VPN gateway in the specified project and region using the data included in the request.</p> 95<p class="toc_element"> 96 <code><a href="#list">list(project, region, orderBy=None, maxResults=None, pageToken=None, filter=None)</a></code></p> 97<p class="firstline">Retrieves a list of VPN gateways available to the specified project and region.</p> 98<p class="toc_element"> 99 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> 100<p class="firstline">Retrieves the next page of results.</p> 101<p class="toc_element"> 102 <code><a href="#setLabels">setLabels(project, region, resource, body, requestId=None)</a></code></p> 103<p class="firstline">Sets the labels on a VpnGateway. To learn more about labels, read the Labeling Resources documentation.</p> 104<p class="toc_element"> 105 <code><a href="#testIamPermissions">testIamPermissions(project, region, resource, body)</a></code></p> 106<p class="firstline">Returns permissions that a caller has on the specified resource.</p> 107<h3>Method Details</h3> 108<div class="method"> 109 <code class="details" id="aggregatedList">aggregatedList(project, orderBy=None, maxResults=None, pageToken=None, filter=None)</code> 110 <pre>Retrieves an aggregated list of VPN gateways. 111 112Args: 113 project: string, Project ID for this request. (required) 114 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. 115 116You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. 117 118Currently, only sorting by name or creationTimestamp desc is supported. 119 maxResults: integer, The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) 120 pageToken: string, Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. 121 filter: string, A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. 122 123For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. 124 125You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. 126 127To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). 128 129Returns: 130 An object of the form: 131 132 { 133 "nextPageToken": "A String", # [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. 134 "kind": "compute#vpnGatewayAggregatedList", # [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. 135 "items": { # A list of VpnGateway resources. 136 "a_key": { # [Output Only] Name of the scope containing this set of VPN gateways. 137 "warning": { # [Output Only] Informational warning which replaces the list of addresses when the list is empty. 138 "message": "A String", # [Output Only] A human-readable description of the warning code. 139 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 140 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 141 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 142 { 143 "value": "A String", # [Output Only] A warning data value corresponding to the key. 144 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). 145 }, 146 ], 147 }, 148 "vpnGateways": [ # [Output Only] A list of VPN gateways contained in this scope. 149 { # Represents a VPN gateway resource. 150 "kind": "compute#vpnGateway", # [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. 151 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 152 "labelFingerprint": "A String", # A fingerprint for the labels being applied to this VpnGateway, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. 153 # 154 # To see the latest fingerprint, make a get() request to retrieve an VpnGateway. 155 "labels": { # Labels to apply to this VpnGateway resource. These can be later modified by the setLabels method. Each label key/value must comply with RFC1035. Label values may be empty. 156 "a_key": "A String", 157 }, 158 "network": "A String", # URL of the network to which this VPN gateway is attached. Provided by the client when the VPN gateway is created. 159 "vpnInterfaces": [ # [Output Only] A list of interfaces on this VPN gateway. 160 { # A VPN gateway interface. 161 "ipAddress": "A String", # The external IP address for this VPN gateway interface. 162 "id": 42, # The numeric ID of this VPN gateway interface. 163 }, 164 ], 165 "region": "A String", # [Output Only] URL of the region where the VPN gateway resides. 166 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 167 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 168 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 169 "name": "A String", # Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 170 }, 171 ], 172 }, 173 }, 174 "warning": { # [Output Only] Informational warning message. 175 "message": "A String", # [Output Only] A human-readable description of the warning code. 176 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 177 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 178 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 179 { 180 "value": "A String", # [Output Only] A warning data value corresponding to the key. 181 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). 182 }, 183 ], 184 }, 185 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server. 186 "selfLink": "A String", # [Output Only] Server-defined URL for this resource. 187 }</pre> 188</div> 189 190<div class="method"> 191 <code class="details" id="aggregatedList_next">aggregatedList_next(previous_request, previous_response)</code> 192 <pre>Retrieves the next page of results. 193 194Args: 195 previous_request: The request for the previous page. (required) 196 previous_response: The response from the request for the previous page. (required) 197 198Returns: 199 A request object that you can call 'execute()' on to request the next 200 page. Returns None if there are no more items in the collection. 201 </pre> 202</div> 203 204<div class="method"> 205 <code class="details" id="delete">delete(project, region, vpnGateway, requestId=None)</code> 206 <pre>Deletes the specified VPN gateway. 207 208Args: 209 project: string, Project ID for this request. (required) 210 region: string, Name of the region for this request. (required) 211 vpnGateway: string, Name of the VPN gateway to delete. (required) 212 requestId: string, 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. 213 214For 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. 215 216The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). 217 218Returns: 219 An object of the form: 220 221 { # Represents an Operation resource. 222 # 223 # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. 224 # 225 # Operations can be global, regional or zonal. 226 # - For global operations, use the globalOperations resource. 227 # - For regional operations, use the regionOperations resource. 228 # - For zonal operations, use the zonalOperations resource. 229 # 230 # For more information, read Global, Regional, and Zonal Resources. (== resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) (== resource_for v1.regionOperations ==) (== resource_for beta.regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for beta.zoneOperations ==) 231 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 232 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 233 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 234 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 235 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 236 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 237 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on. 238 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. 239 "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. 240 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. 241 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 242 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE. 243 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 244 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 245 { 246 "message": "A String", # [Output Only] A human-readable description of the warning code. 247 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 248 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 249 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 250 { 251 "value": "A String", # [Output Only] A warning data value corresponding to the key. 252 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). 253 }, 254 ], 255 }, 256 ], 257 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 258 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com. 259 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 260 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources. 261 "name": "A String", # [Output Only] Name of the resource. 262 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 263 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 264 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 265 { 266 "message": "A String", # [Output Only] An optional, human-readable error message. 267 "code": "A String", # [Output Only] The error type identifier for this error. 268 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 269 }, 270 ], 271 }, 272 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 273 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 274 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. 275 }</pre> 276</div> 277 278<div class="method"> 279 <code class="details" id="get">get(project, region, vpnGateway)</code> 280 <pre>Returns the specified VPN gateway. Gets a list of available VPN gateways by making a list() request. 281 282Args: 283 project: string, Project ID for this request. (required) 284 region: string, Name of the region for this request. (required) 285 vpnGateway: string, Name of the VPN gateway to return. (required) 286 287Returns: 288 An object of the form: 289 290 { # Represents a VPN gateway resource. 291 "kind": "compute#vpnGateway", # [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. 292 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 293 "labelFingerprint": "A String", # A fingerprint for the labels being applied to this VpnGateway, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. 294 # 295 # To see the latest fingerprint, make a get() request to retrieve an VpnGateway. 296 "labels": { # Labels to apply to this VpnGateway resource. These can be later modified by the setLabels method. Each label key/value must comply with RFC1035. Label values may be empty. 297 "a_key": "A String", 298 }, 299 "network": "A String", # URL of the network to which this VPN gateway is attached. Provided by the client when the VPN gateway is created. 300 "vpnInterfaces": [ # [Output Only] A list of interfaces on this VPN gateway. 301 { # A VPN gateway interface. 302 "ipAddress": "A String", # The external IP address for this VPN gateway interface. 303 "id": 42, # The numeric ID of this VPN gateway interface. 304 }, 305 ], 306 "region": "A String", # [Output Only] URL of the region where the VPN gateway resides. 307 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 308 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 309 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 310 "name": "A String", # Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 311 }</pre> 312</div> 313 314<div class="method"> 315 <code class="details" id="getStatus">getStatus(project, region, vpnGateway)</code> 316 <pre>Returns the status for the specified VPN gateway. 317 318Args: 319 project: string, Project ID for this request. (required) 320 region: string, Name of the region for this request. (required) 321 vpnGateway: string, Name of the VPN gateway to return. (required) 322 323Returns: 324 An object of the form: 325 326 { 327 "result": { 328 "vpnConnections": [ # List of VPN connection for this VpnGateway. 329 { # A VPN connection contains all VPN tunnels connected from this VpnGateway to the same peer gateway. The peer gateway could either be a external VPN gateway or GCP VPN gateway. 330 "peerExternalGateway": "A String", # URL reference to the peer external VPN gateways to which the VPN tunnels in this VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway. 331 "peerGcpGateway": "A String", # URL reference to the peer side VPN gateways to which the VPN tunnels in this VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway. 332 "tunnels": [ # List of VPN tunnels that are in this VPN connection. 333 { # Contains some information about a VPN tunnel. 334 "tunnelUrl": "A String", # URL reference to the VPN tunnel. 335 "localGatewayInterface": 42, # The VPN gateway interface this VPN tunnel is associated with. 336 "peerGatewayInterface": 42, # The peer gateway interface this VPN tunnel is connected to, the peer gateway could either be an external VPN gateway or GCP VPN gateway. 337 }, 338 ], 339 "state": { # Describes the high availability requirement state for the VPN connection between this Cloud VPN gateway and a peer gateway. # HighAvailabilityRequirementState for the VPN connection. 340 "state": "A String", # Indicates the high availability requirement state for the VPN connection. Valid values are CONNECTION_REDUNDANCY_MET, CONNECTION_REDUNDANCY_NOT_MET. 341 "unsatisfiedReason": "A String", # Indicates the reason why the VPN connection does not meet the high availability redundancy criteria/requirement. Valid values is INCOMPLETE_TUNNELS_COVERAGE. 342 }, 343 }, 344 ], 345 }, 346 }</pre> 347</div> 348 349<div class="method"> 350 <code class="details" id="insert">insert(project, region, body, requestId=None)</code> 351 <pre>Creates a VPN gateway in the specified project and region using the data included in the request. 352 353Args: 354 project: string, Project ID for this request. (required) 355 region: string, Name of the region for this request. (required) 356 body: object, The request body. (required) 357 The object takes the form of: 358 359{ # Represents a VPN gateway resource. 360 "kind": "compute#vpnGateway", # [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. 361 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 362 "labelFingerprint": "A String", # A fingerprint for the labels being applied to this VpnGateway, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. 363 # 364 # To see the latest fingerprint, make a get() request to retrieve an VpnGateway. 365 "labels": { # Labels to apply to this VpnGateway resource. These can be later modified by the setLabels method. Each label key/value must comply with RFC1035. Label values may be empty. 366 "a_key": "A String", 367 }, 368 "network": "A String", # URL of the network to which this VPN gateway is attached. Provided by the client when the VPN gateway is created. 369 "vpnInterfaces": [ # [Output Only] A list of interfaces on this VPN gateway. 370 { # A VPN gateway interface. 371 "ipAddress": "A String", # The external IP address for this VPN gateway interface. 372 "id": 42, # The numeric ID of this VPN gateway interface. 373 }, 374 ], 375 "region": "A String", # [Output Only] URL of the region where the VPN gateway resides. 376 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 377 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 378 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 379 "name": "A String", # Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 380 } 381 382 requestId: string, 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. 383 384For 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. 385 386The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). 387 388Returns: 389 An object of the form: 390 391 { # Represents an Operation resource. 392 # 393 # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. 394 # 395 # Operations can be global, regional or zonal. 396 # - For global operations, use the globalOperations resource. 397 # - For regional operations, use the regionOperations resource. 398 # - For zonal operations, use the zonalOperations resource. 399 # 400 # For more information, read Global, Regional, and Zonal Resources. (== resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) (== resource_for v1.regionOperations ==) (== resource_for beta.regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for beta.zoneOperations ==) 401 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 402 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 403 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 404 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 405 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 406 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 407 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on. 408 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. 409 "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. 410 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. 411 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 412 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE. 413 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 414 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 415 { 416 "message": "A String", # [Output Only] A human-readable description of the warning code. 417 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 418 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 419 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 420 { 421 "value": "A String", # [Output Only] A warning data value corresponding to the key. 422 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). 423 }, 424 ], 425 }, 426 ], 427 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 428 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com. 429 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 430 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources. 431 "name": "A String", # [Output Only] Name of the resource. 432 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 433 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 434 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 435 { 436 "message": "A String", # [Output Only] An optional, human-readable error message. 437 "code": "A String", # [Output Only] The error type identifier for this error. 438 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 439 }, 440 ], 441 }, 442 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 443 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 444 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. 445 }</pre> 446</div> 447 448<div class="method"> 449 <code class="details" id="list">list(project, region, orderBy=None, maxResults=None, pageToken=None, filter=None)</code> 450 <pre>Retrieves a list of VPN gateways available to the specified project and region. 451 452Args: 453 project: string, Project ID for this request. (required) 454 region: string, Name of the region for this request. (required) 455 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. 456 457You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. 458 459Currently, only sorting by name or creationTimestamp desc is supported. 460 maxResults: integer, The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) 461 pageToken: string, Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. 462 filter: string, A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. 463 464For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. 465 466You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. 467 468To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). 469 470Returns: 471 An object of the form: 472 473 { # Contains a list of VpnGateway resources. 474 "nextPageToken": "A String", # [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. 475 "kind": "compute#vpnGatewayList", # [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. 476 "items": [ # A list of VpnGateway resources. 477 { # Represents a VPN gateway resource. 478 "kind": "compute#vpnGateway", # [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. 479 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 480 "labelFingerprint": "A String", # A fingerprint for the labels being applied to this VpnGateway, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. 481 # 482 # To see the latest fingerprint, make a get() request to retrieve an VpnGateway. 483 "labels": { # Labels to apply to this VpnGateway resource. These can be later modified by the setLabels method. Each label key/value must comply with RFC1035. Label values may be empty. 484 "a_key": "A String", 485 }, 486 "network": "A String", # URL of the network to which this VPN gateway is attached. Provided by the client when the VPN gateway is created. 487 "vpnInterfaces": [ # [Output Only] A list of interfaces on this VPN gateway. 488 { # A VPN gateway interface. 489 "ipAddress": "A String", # The external IP address for this VPN gateway interface. 490 "id": 42, # The numeric ID of this VPN gateway interface. 491 }, 492 ], 493 "region": "A String", # [Output Only] URL of the region where the VPN gateway resides. 494 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 495 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 496 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 497 "name": "A String", # Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 498 }, 499 ], 500 "warning": { # [Output Only] Informational warning message. 501 "message": "A String", # [Output Only] A human-readable description of the warning code. 502 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 503 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 504 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 505 { 506 "value": "A String", # [Output Only] A warning data value corresponding to the key. 507 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). 508 }, 509 ], 510 }, 511 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server. 512 "selfLink": "A String", # [Output Only] Server-defined URL for this resource. 513 }</pre> 514</div> 515 516<div class="method"> 517 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 518 <pre>Retrieves the next page of results. 519 520Args: 521 previous_request: The request for the previous page. (required) 522 previous_response: The response from the request for the previous page. (required) 523 524Returns: 525 A request object that you can call 'execute()' on to request the next 526 page. Returns None if there are no more items in the collection. 527 </pre> 528</div> 529 530<div class="method"> 531 <code class="details" id="setLabels">setLabels(project, region, resource, body, requestId=None)</code> 532 <pre>Sets the labels on a VpnGateway. To learn more about labels, read the Labeling Resources documentation. 533 534Args: 535 project: string, Project ID for this request. (required) 536 region: string, The region for this request. (required) 537 resource: string, Name or id of the resource for this request. (required) 538 body: object, The request body. (required) 539 The object takes the form of: 540 541{ 542 "labelFingerprint": "A String", # The fingerprint of the previous set of labels for this resource, used to detect conflicts. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels. Make a get() request to the resource to get the latest fingerprint. 543 "labels": { # The labels to set for this resource. 544 "a_key": "A String", 545 }, 546 } 547 548 requestId: string, 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. 549 550For 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. 551 552The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). 553 554Returns: 555 An object of the form: 556 557 { # Represents an Operation resource. 558 # 559 # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. 560 # 561 # Operations can be global, regional or zonal. 562 # - For global operations, use the globalOperations resource. 563 # - For regional operations, use the regionOperations resource. 564 # - For zonal operations, use the zonalOperations resource. 565 # 566 # For more information, read Global, Regional, and Zonal Resources. (== resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) (== resource_for v1.regionOperations ==) (== resource_for beta.regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for beta.zoneOperations ==) 567 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 568 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 569 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 570 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 571 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 572 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 573 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on. 574 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. 575 "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. 576 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. 577 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 578 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE. 579 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 580 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 581 { 582 "message": "A String", # [Output Only] A human-readable description of the warning code. 583 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 584 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 585 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 586 { 587 "value": "A String", # [Output Only] A warning data value corresponding to the key. 588 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). 589 }, 590 ], 591 }, 592 ], 593 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 594 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com. 595 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 596 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources. 597 "name": "A String", # [Output Only] Name of the resource. 598 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 599 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 600 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 601 { 602 "message": "A String", # [Output Only] An optional, human-readable error message. 603 "code": "A String", # [Output Only] The error type identifier for this error. 604 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 605 }, 606 ], 607 }, 608 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 609 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 610 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. 611 }</pre> 612</div> 613 614<div class="method"> 615 <code class="details" id="testIamPermissions">testIamPermissions(project, region, resource, body)</code> 616 <pre>Returns permissions that a caller has on the specified resource. 617 618Args: 619 project: string, Project ID for this request. (required) 620 region: string, The name of the region for this request. (required) 621 resource: string, Name or id of the resource for this request. (required) 622 body: object, The request body. (required) 623 The object takes the form of: 624 625{ 626 "permissions": [ # The set of permissions to check for the 'resource'. Permissions with wildcards (such as '*' or 'storage.*') are not allowed. 627 "A String", 628 ], 629 } 630 631 632Returns: 633 An object of the form: 634 635 { 636 "permissions": [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed. 637 "A String", 638 ], 639 }</pre> 640</div> 641 642</body></html>