google-cloud-compute-v1 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +4 -24
  3. data/lib/google/cloud/compute/v1/addresses/rest/client.rb +6 -34
  4. data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +8 -44
  5. data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +8 -42
  6. data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +14 -66
  7. data/lib/google/cloud/compute/v1/compute_pb.rb +8137 -7777
  8. data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +4 -24
  9. data/lib/google/cloud/compute/v1/disks/rest/client.rb +11 -59
  10. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +4 -22
  11. data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +13 -63
  12. data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +6 -32
  13. data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +9 -49
  14. data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +4 -22
  15. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +7 -33
  16. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +8 -44
  17. data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +6 -30
  18. data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +2 -12
  19. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +5 -27
  20. data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +8 -44
  21. data/lib/google/cloud/compute/v1/image_family_views/credentials.rb +53 -0
  22. data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +313 -0
  23. data/lib/google/cloud/compute/v1/image_family_views/rest/service_stub.rb +89 -0
  24. data/lib/google/cloud/compute/v1/image_family_views/rest.rb +33 -0
  25. data/lib/google/cloud/compute/v1/image_family_views.rb +44 -0
  26. data/lib/google/cloud/compute/v1/images/rest/client.rb +7 -35
  27. data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +30 -150
  28. data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +16 -72
  29. data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +4 -22
  30. data/lib/google/cloud/compute/v1/instances/rest/client.rb +111 -194
  31. data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +43 -0
  32. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +7 -39
  33. data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +2 -12
  34. data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +5 -27
  35. data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +2 -2
  36. data/lib/google/cloud/compute/v1/licenses/rest/client.rb +11 -29
  37. data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +4 -24
  38. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +10 -56
  39. data/lib/google/cloud/compute/v1/networks/rest/client.rb +12 -60
  40. data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +12 -66
  41. data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +6 -34
  42. data/lib/google/cloud/compute/v1/node_types/rest/client.rb +4 -24
  43. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +7 -39
  44. data/lib/google/cloud/compute/v1/projects/rest/client.rb +13 -69
  45. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +5 -27
  46. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +7 -39
  47. data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +6 -32
  48. data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +9 -35
  49. data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +6 -30
  50. data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +2 -12
  51. data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +9 -47
  52. data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +5 -27
  53. data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +6 -32
  54. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +27 -133
  55. data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +5 -29
  56. data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +1 -5
  57. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +4 -22
  58. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +4 -22
  59. data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +3 -17
  60. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +4 -22
  61. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +5 -27
  62. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +6 -32
  63. data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +2 -12
  64. data/lib/google/cloud/compute/v1/regions/rest/client.rb +2 -12
  65. data/lib/google/cloud/compute/v1/reservations/rest/client.rb +7 -39
  66. data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +6 -34
  67. data/lib/google/cloud/compute/v1/routers/rest/client.rb +10 -56
  68. data/lib/google/cloud/compute/v1/routes/rest/client.rb +4 -22
  69. data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +7 -39
  70. data/lib/google/cloud/compute/v1/service_attachments/credentials.rb +52 -0
  71. data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +924 -0
  72. data/lib/google/cloud/compute/v1/service_attachments/rest/service_stub.rb +458 -0
  73. data/lib/google/cloud/compute/v1/service_attachments/rest.rb +33 -0
  74. data/lib/google/cloud/compute/v1/service_attachments.rb +44 -0
  75. data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +4 -20
  76. data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +6 -34
  77. data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +7 -39
  78. data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +11 -61
  79. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +5 -27
  80. data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +9 -45
  81. data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +12 -60
  82. data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +6 -34
  83. data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +11 -59
  84. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +8 -42
  85. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +6 -32
  86. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +6 -34
  87. data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +10 -52
  88. data/lib/google/cloud/compute/v1/version.rb +1 -1
  89. data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +7 -39
  90. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +6 -34
  91. data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +3 -17
  92. data/lib/google/cloud/compute/v1/zones/rest/client.rb +2 -12
  93. data/lib/google/cloud/compute/v1.rb +2 -0
  94. data/proto_docs/google/api/field_behavior.rb +6 -0
  95. data/proto_docs/google/cloud/compute/v1/compute.rb +18905 -21502
  96. data/proto_docs/google/cloud/extended_operations.rb +51 -0
  97. metadata +30 -3
@@ -181,23 +181,13 @@ module Google
181
181
  # the default parameter values, pass an empty Hash as a request object (see above).
182
182
  #
183
183
  # @param filter [::String]
184
- # 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 `<`.
185
- #
186
- # For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.
187
- #
188
- # You 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.
189
- #
190
- # To 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) ```
184
+ # 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 `<`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You 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. To 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) ```
191
185
  # @param include_all_scopes [::Boolean]
192
186
  # Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
193
187
  # @param max_results [::Integer]
194
188
  # 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`)
195
189
  # @param order_by [::String]
196
- # Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
197
- #
198
- # You 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.
199
- #
200
- # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
190
+ # Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
201
191
  # @param page_token [::String]
202
192
  # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
203
193
  # @param project [::String]
@@ -269,11 +259,7 @@ module Google
269
259
  # @param region [::String]
270
260
  # Name of the region for this request.
271
261
  # @param request_id [::String]
272
- # 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.
273
- #
274
- # 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.
275
- #
276
- # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
262
+ # 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. 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).
277
263
  # @param router [::String]
278
264
  # Name of the Router resource to delete.
279
265
  # @yield [result, response] Access the result along with the Faraday response object
@@ -402,21 +388,11 @@ module Google
402
388
  # the default parameter values, pass an empty Hash as a request object (see above).
403
389
  #
404
390
  # @param filter [::String]
405
- # 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 `<`.
406
- #
407
- # For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.
408
- #
409
- # You 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.
410
- #
411
- # To 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) ```
391
+ # 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 `<`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You 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. To 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) ```
412
392
  # @param max_results [::Integer]
413
393
  # 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`)
414
394
  # @param order_by [::String]
415
- # Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
416
- #
417
- # You 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.
418
- #
419
- # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
395
+ # Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
420
396
  # @param page_token [::String]
421
397
  # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
422
398
  # @param project [::String]
@@ -557,11 +533,7 @@ module Google
557
533
  # @param region [::String]
558
534
  # Name of the region for this request.
559
535
  # @param request_id [::String]
560
- # 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.
561
- #
562
- # 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.
563
- #
564
- # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
536
+ # 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. 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).
565
537
  # @param router_resource [::Google::Cloud::Compute::V1::Router, ::Hash]
566
538
  # The body resource for this request
567
539
  # @yield [result, response] Access the result along with the Faraday response object
@@ -625,21 +597,11 @@ module Google
625
597
  # the default parameter values, pass an empty Hash as a request object (see above).
626
598
  #
627
599
  # @param filter [::String]
628
- # 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 `<`.
629
- #
630
- # For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.
631
- #
632
- # You 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.
633
- #
634
- # To 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) ```
600
+ # 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 `<`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You 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. To 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) ```
635
601
  # @param max_results [::Integer]
636
602
  # 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`)
637
603
  # @param order_by [::String]
638
- # Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
639
- #
640
- # You 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.
641
- #
642
- # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
604
+ # Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
643
605
  # @param page_token [::String]
644
606
  # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
645
607
  # @param project [::String]
@@ -713,11 +675,7 @@ module Google
713
675
  # @param region [::String]
714
676
  # Name of the region for this request.
715
677
  # @param request_id [::String]
716
- # 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.
717
- #
718
- # 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.
719
- #
720
- # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
678
+ # 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. 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).
721
679
  # @param router [::String]
722
680
  # Name of the Router resource to patch.
723
681
  # @param router_resource [::Google::Cloud::Compute::V1::Router, ::Hash]
@@ -854,11 +812,7 @@ module Google
854
812
  # @param region [::String]
855
813
  # Name of the region for this request.
856
814
  # @param request_id [::String]
857
- # 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.
858
- #
859
- # 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.
860
- #
861
- # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
815
+ # 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. 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).
862
816
  # @param router [::String]
863
817
  # Name of the Router resource to update.
864
818
  # @param router_resource [::Google::Cloud::Compute::V1::Router, ::Hash]
@@ -162,11 +162,7 @@ module Google
162
162
  # @param project [::String]
163
163
  # Project ID for this request.
164
164
  # @param request_id [::String]
165
- # 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.
166
- #
167
- # 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.
168
- #
169
- # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
165
+ # 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. 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).
170
166
  # @param route [::String]
171
167
  # Name of the Route resource to delete.
172
168
  # @yield [result, response] Access the result along with the Faraday response object
@@ -295,11 +291,7 @@ module Google
295
291
  # @param project [::String]
296
292
  # Project ID for this request.
297
293
  # @param request_id [::String]
298
- # 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.
299
- #
300
- # 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.
301
- #
302
- # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
294
+ # 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. 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).
303
295
  # @param route_resource [::Google::Cloud::Compute::V1::Route, ::Hash]
304
296
  # The body resource for this request
305
297
  # @yield [result, response] Access the result along with the Faraday response object
@@ -363,21 +355,11 @@ module Google
363
355
  # the default parameter values, pass an empty Hash as a request object (see above).
364
356
  #
365
357
  # @param filter [::String]
366
- # 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 `<`.
367
- #
368
- # For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.
369
- #
370
- # You 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.
371
- #
372
- # To 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) ```
358
+ # 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 `<`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You 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. To 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) ```
373
359
  # @param max_results [::Integer]
374
360
  # 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`)
375
361
  # @param order_by [::String]
376
- # Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
377
- #
378
- # You 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.
379
- #
380
- # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
362
+ # Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
381
363
  # @param page_token [::String]
382
364
  # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
383
365
  # @param project [::String]
@@ -246,11 +246,7 @@ module Google
246
246
  # @param project [::String]
247
247
  # Project ID for this request.
248
248
  # @param request_id [::String]
249
- # 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.
250
- #
251
- # 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.
252
- #
253
- # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
249
+ # 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. 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).
254
250
  # @param security_policy [::String]
255
251
  # Name of the security policy to delete.
256
252
  # @yield [result, response] Access the result along with the Faraday response object
@@ -444,11 +440,7 @@ module Google
444
440
  # @param project [::String]
445
441
  # Project ID for this request.
446
442
  # @param request_id [::String]
447
- # 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.
448
- #
449
- # 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.
450
- #
451
- # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
443
+ # 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. 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).
452
444
  # @param security_policy_resource [::Google::Cloud::Compute::V1::SecurityPolicy, ::Hash]
453
445
  # The body resource for this request
454
446
  # @yield [result, response] Access the result along with the Faraday response object
@@ -512,21 +504,11 @@ module Google
512
504
  # the default parameter values, pass an empty Hash as a request object (see above).
513
505
  #
514
506
  # @param filter [::String]
515
- # 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 `<`.
516
- #
517
- # For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.
518
- #
519
- # You 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.
520
- #
521
- # To 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) ```
507
+ # 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 `<`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You 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. To 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) ```
522
508
  # @param max_results [::Integer]
523
509
  # 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`)
524
510
  # @param order_by [::String]
525
- # Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
526
- #
527
- # You 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.
528
- #
529
- # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
511
+ # Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
530
512
  # @param page_token [::String]
531
513
  # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
532
514
  # @param project [::String]
@@ -594,21 +576,11 @@ module Google
594
576
  # the default parameter values, pass an empty Hash as a request object (see above).
595
577
  #
596
578
  # @param filter [::String]
597
- # 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 `<`.
598
- #
599
- # For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.
600
- #
601
- # You 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.
602
- #
603
- # To 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) ```
579
+ # 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 `<`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You 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. To 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) ```
604
580
  # @param max_results [::Integer]
605
581
  # 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`)
606
582
  # @param order_by [::String]
607
- # Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
608
- #
609
- # You 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.
610
- #
611
- # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
583
+ # Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
612
584
  # @param page_token [::String]
613
585
  # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
614
586
  # @param project [::String]
@@ -677,11 +649,7 @@ module Google
677
649
  # @param project [::String]
678
650
  # Project ID for this request.
679
651
  # @param request_id [::String]
680
- # 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.
681
- #
682
- # 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.
683
- #
684
- # The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
652
+ # 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. 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).
685
653
  # @param security_policy [::String]
686
654
  # Name of the security policy to update.
687
655
  # @param security_policy_resource [::Google::Cloud::Compute::V1::SecurityPolicy, ::Hash]
@@ -0,0 +1,52 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "googleauth"
20
+
21
+ module Google
22
+ module Cloud
23
+ module Compute
24
+ module V1
25
+ module ServiceAttachments
26
+ # Credentials for the ServiceAttachments API.
27
+ class Credentials < ::Google::Auth::Credentials
28
+ self.scope = [
29
+ "https://www.googleapis.com/auth/compute",
30
+ "https://www.googleapis.com/auth/cloud-platform"
31
+ ]
32
+ self.env_vars = [
33
+ "COMPUTE_CREDENTIALS",
34
+ "COMPUTE_KEYFILE",
35
+ "GOOGLE_CLOUD_CREDENTIALS",
36
+ "GOOGLE_CLOUD_KEYFILE",
37
+ "GCLOUD_KEYFILE",
38
+ "COMPUTE_CREDENTIALS_JSON",
39
+ "COMPUTE_KEYFILE_JSON",
40
+ "GOOGLE_CLOUD_CREDENTIALS_JSON",
41
+ "GOOGLE_CLOUD_KEYFILE_JSON",
42
+ "GCLOUD_KEYFILE_JSON"
43
+ ]
44
+ self.paths = [
45
+ "~/.config/google_cloud/application_default_credentials.json"
46
+ ]
47
+ end
48
+ end
49
+ end
50
+ end
51
+ end
52
+ end