google-cloud-compute-v1 2.9.0 → 2.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (128) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +3 -3
  3. data/lib/google/cloud/compute/v1/addresses/rest/client.rb +3 -3
  4. data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +3 -3
  5. data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +1 -1
  6. data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +4 -4
  7. data/lib/google/cloud/compute/v1/compute_pb.rb +82 -1
  8. data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +3 -3
  9. data/lib/google/cloud/compute/v1/disks/rest/client.rb +3 -3
  10. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +1 -1
  11. data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +1 -1
  12. data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +1 -1
  13. data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +3 -3
  14. data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +1 -1
  15. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +1 -1
  16. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +2 -2
  17. data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +3 -3
  18. data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +1 -1
  19. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +1 -1
  20. data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +3 -3
  21. data/lib/google/cloud/compute/v1/images/rest/client.rb +1 -1
  22. data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/credentials.rb +52 -0
  23. data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest/client.rb +829 -0
  24. data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest/service_stub.rb +378 -0
  25. data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest.rb +51 -0
  26. data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests.rb +47 -0
  27. data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +6 -6
  28. data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +4 -4
  29. data/lib/google/cloud/compute/v1/instance_settings_service/credentials.rb +52 -0
  30. data/lib/google/cloud/compute/v1/instance_settings_service/rest/client.rb +512 -0
  31. data/lib/google/cloud/compute/v1/instance_settings_service/rest/service_stub.rb +190 -0
  32. data/lib/google/cloud/compute/v1/instance_settings_service/rest.rb +51 -0
  33. data/lib/google/cloud/compute/v1/instance_settings_service.rb +47 -0
  34. data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +3 -3
  35. data/lib/google/cloud/compute/v1/instances/rest/client.rb +4 -4
  36. data/lib/google/cloud/compute/v1/instant_snapshots/credentials.rb +52 -0
  37. data/lib/google/cloud/compute/v1/instant_snapshots/rest/client.rb +1208 -0
  38. data/lib/google/cloud/compute/v1/instant_snapshots/rest/service_stub.rb +618 -0
  39. data/lib/google/cloud/compute/v1/instant_snapshots/rest.rb +51 -0
  40. data/lib/google/cloud/compute/v1/instant_snapshots.rb +47 -0
  41. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +3 -3
  42. data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +1 -1
  43. data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/client.rb +1 -1
  44. data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +1 -1
  45. data/lib/google/cloud/compute/v1/licenses/rest/client.rb +1 -1
  46. data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +1 -1
  47. data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +3 -3
  48. data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +3 -3
  49. data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +2 -2
  50. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +4 -4
  51. data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +1 -1
  52. data/lib/google/cloud/compute/v1/networks/rest/client.rb +2 -2
  53. data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +108 -4
  54. data/lib/google/cloud/compute/v1/node_groups/rest/service_stub.rb +62 -0
  55. data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +3 -3
  56. data/lib/google/cloud/compute/v1/node_types/rest/client.rb +3 -3
  57. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +3 -3
  58. data/lib/google/cloud/compute/v1/projects/rest/client.rb +101 -2
  59. data/lib/google/cloud/compute/v1/projects/rest/service_stub.rb +60 -0
  60. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +1 -1
  61. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +3 -3
  62. data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +1 -1
  63. data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +2 -2
  64. data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +3 -3
  65. data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +1 -1
  66. data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +1 -1
  67. data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +1 -1
  68. data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +1 -1
  69. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +4 -4
  70. data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +2 -2
  71. data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +1 -1
  72. data/lib/google/cloud/compute/v1/region_instant_snapshots/credentials.rb +52 -0
  73. data/lib/google/cloud/compute/v1/region_instant_snapshots/rest/client.rb +1103 -0
  74. data/lib/google/cloud/compute/v1/region_instant_snapshots/rest/service_stub.rb +559 -0
  75. data/lib/google/cloud/compute/v1/region_instant_snapshots/rest.rb +51 -0
  76. data/lib/google/cloud/compute/v1/region_instant_snapshots.rb +47 -0
  77. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +2 -2
  78. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +1 -1
  79. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +1 -1
  80. data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +1 -1
  81. data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +1 -1
  82. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +1 -1
  83. data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +2 -2
  84. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +1 -1
  85. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +1 -1
  86. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +1 -1
  87. data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +1 -1
  88. data/lib/google/cloud/compute/v1/region_zones/rest/client.rb +1 -1
  89. data/lib/google/cloud/compute/v1/regions/rest/client.rb +1 -1
  90. data/lib/google/cloud/compute/v1/reservations/rest/client.rb +3 -3
  91. data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +3 -3
  92. data/lib/google/cloud/compute/v1/rest.rb +6 -0
  93. data/lib/google/cloud/compute/v1/routers/rest/client.rb +4 -4
  94. data/lib/google/cloud/compute/v1/routes/rest/client.rb +1 -1
  95. data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +4 -4
  96. data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +3 -3
  97. data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +1 -1
  98. data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +3 -3
  99. data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +4 -4
  100. data/lib/google/cloud/compute/v1/storage_pool_types/credentials.rb +53 -0
  101. data/lib/google/cloud/compute/v1/storage_pool_types/rest/client.rb +603 -0
  102. data/lib/google/cloud/compute/v1/storage_pool_types/rest/service_stub.rb +249 -0
  103. data/lib/google/cloud/compute/v1/storage_pool_types/rest.rb +51 -0
  104. data/lib/google/cloud/compute/v1/storage_pool_types.rb +47 -0
  105. data/lib/google/cloud/compute/v1/storage_pools/credentials.rb +52 -0
  106. data/lib/google/cloud/compute/v1/storage_pools/rest/client.rb +1313 -0
  107. data/lib/google/cloud/compute/v1/storage_pools/rest/service_stub.rb +679 -0
  108. data/lib/google/cloud/compute/v1/storage_pools/rest.rb +51 -0
  109. data/lib/google/cloud/compute/v1/storage_pools.rb +47 -0
  110. data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +4 -4
  111. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +1 -1
  112. data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +3 -3
  113. data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +3 -3
  114. data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +3 -3
  115. data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +3 -3
  116. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +1 -1
  117. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +3 -3
  118. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +3 -3
  119. data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +3 -3
  120. data/lib/google/cloud/compute/v1/version.rb +1 -1
  121. data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +3 -3
  122. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +3 -3
  123. data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +1 -1
  124. data/lib/google/cloud/compute/v1/zones/rest/client.rb +1 -1
  125. data/lib/google/cloud/compute/v1.rb +6 -0
  126. data/proto_docs/google/api/client.rb +4 -0
  127. data/proto_docs/google/cloud/compute/v1/compute.rb +2128 -182
  128. metadata +32 -2
@@ -97,6 +97,8 @@ module Google
97
97
 
98
98
  default_config.rpcs.move_instance.timeout = 600.0
99
99
 
100
+ default_config.rpcs.set_cloud_armor_tier.timeout = 600.0
101
+
100
102
  default_config.rpcs.set_common_instance_metadata.timeout = 600.0
101
103
 
102
104
  default_config.rpcs.set_default_network_tier.timeout = 600.0
@@ -742,7 +744,7 @@ module Google
742
744
  # @param project [::String]
743
745
  # Project ID for this request.
744
746
  # @param return_partial_success [::Boolean]
745
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
747
+ # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
746
748
  # @yield [result, operation] Access the result along with the TransportOperation object
747
749
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::XpnResourceId>]
748
750
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -833,7 +835,7 @@ module Google
833
835
  # @param projects_list_xpn_hosts_request_resource [::Google::Cloud::Compute::V1::ProjectsListXpnHostsRequest, ::Hash]
834
836
  # The body resource for this request
835
837
  # @param return_partial_success [::Boolean]
836
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
838
+ # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
837
839
  # @yield [result, operation] Access the result along with the TransportOperation object
838
840
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Project>]
839
841
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -1073,6 +1075,96 @@ module Google
1073
1075
  raise ::Google::Cloud::Error.from_error(e)
1074
1076
  end
1075
1077
 
1078
+ ##
1079
+ # Sets the Cloud Armor tier of the project. To set ENTERPRISE or above the billing account of the project must be subscribed to Cloud Armor Enterprise. See Subscribing to Cloud Armor Enterprise for more information.
1080
+ #
1081
+ # @overload set_cloud_armor_tier(request, options = nil)
1082
+ # Pass arguments to `set_cloud_armor_tier` via a request object, either of type
1083
+ # {::Google::Cloud::Compute::V1::SetCloudArmorTierProjectRequest} or an equivalent Hash.
1084
+ #
1085
+ # @param request [::Google::Cloud::Compute::V1::SetCloudArmorTierProjectRequest, ::Hash]
1086
+ # A request object representing the call parameters. Required. To specify no
1087
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1088
+ # @param options [::Gapic::CallOptions, ::Hash]
1089
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1090
+ #
1091
+ # @overload set_cloud_armor_tier(project: nil, projects_set_cloud_armor_tier_request_resource: nil, request_id: nil)
1092
+ # Pass arguments to `set_cloud_armor_tier` via keyword arguments. Note that at
1093
+ # least one keyword argument is required. To specify no parameters, or to keep all
1094
+ # the default parameter values, pass an empty Hash as a request object (see above).
1095
+ #
1096
+ # @param project [::String]
1097
+ # Project ID for this request.
1098
+ # @param projects_set_cloud_armor_tier_request_resource [::Google::Cloud::Compute::V1::ProjectsSetCloudArmorTierRequest, ::Hash]
1099
+ # The body resource for this request
1100
+ # @param request_id [::String]
1101
+ # 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).
1102
+ # @yield [result, operation] Access the result along with the TransportOperation object
1103
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
1104
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1105
+ #
1106
+ # @return [::Gapic::GenericLRO::Operation]
1107
+ #
1108
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1109
+ #
1110
+ # @example Basic example
1111
+ # require "google/cloud/compute/v1"
1112
+ #
1113
+ # # Create a client object. The client can be reused for multiple calls.
1114
+ # client = Google::Cloud::Compute::V1::Projects::Rest::Client.new
1115
+ #
1116
+ # # Create a request. To set request fields, pass in keyword arguments.
1117
+ # request = Google::Cloud::Compute::V1::SetCloudArmorTierProjectRequest.new
1118
+ #
1119
+ # # Call the set_cloud_armor_tier method.
1120
+ # result = client.set_cloud_armor_tier request
1121
+ #
1122
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1123
+ # p result
1124
+ #
1125
+ def set_cloud_armor_tier request, options = nil
1126
+ raise ::ArgumentError, "request must be provided" if request.nil?
1127
+
1128
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::SetCloudArmorTierProjectRequest
1129
+
1130
+ # Converts hash and nil to an options object
1131
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1132
+
1133
+ # Customize the options with defaults
1134
+ call_metadata = @config.rpcs.set_cloud_armor_tier.metadata.to_h
1135
+
1136
+ # Set x-goog-api-client and x-goog-user-project headers
1137
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1138
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1139
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1140
+ transports_version_send: [:rest]
1141
+
1142
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1143
+
1144
+ options.apply_defaults timeout: @config.rpcs.set_cloud_armor_tier.timeout,
1145
+ metadata: call_metadata,
1146
+ retry_policy: @config.rpcs.set_cloud_armor_tier.retry_policy
1147
+
1148
+ options.apply_defaults timeout: @config.timeout,
1149
+ metadata: @config.metadata,
1150
+ retry_policy: @config.retry_policy
1151
+
1152
+ @projects_stub.set_cloud_armor_tier request, options do |result, response|
1153
+ result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
1154
+ operation: result,
1155
+ client: global_operations,
1156
+ request_values: {
1157
+ "project" => request.project
1158
+ },
1159
+ options: options
1160
+ )
1161
+ yield result, response if block_given?
1162
+ return result
1163
+ end
1164
+ rescue ::Gapic::Rest::Error => e
1165
+ raise ::Google::Cloud::Error.from_error(e)
1166
+ end
1167
+
1076
1168
  ##
1077
1169
  # Sets metadata common to all instances within the specified project using the data included in the request.
1078
1170
  #
@@ -1527,6 +1619,11 @@ module Google
1527
1619
  #
1528
1620
  attr_reader :move_instance
1529
1621
  ##
1622
+ # RPC-specific configuration for `set_cloud_armor_tier`
1623
+ # @return [::Gapic::Config::Method]
1624
+ #
1625
+ attr_reader :set_cloud_armor_tier
1626
+ ##
1530
1627
  # RPC-specific configuration for `set_common_instance_metadata`
1531
1628
  # @return [::Gapic::Config::Method]
1532
1629
  #
@@ -1564,6 +1661,8 @@ module Google
1564
1661
  @move_disk = ::Gapic::Config::Method.new move_disk_config
1565
1662
  move_instance_config = parent_rpcs.move_instance if parent_rpcs.respond_to? :move_instance
1566
1663
  @move_instance = ::Gapic::Config::Method.new move_instance_config
1664
+ set_cloud_armor_tier_config = parent_rpcs.set_cloud_armor_tier if parent_rpcs.respond_to? :set_cloud_armor_tier
1665
+ @set_cloud_armor_tier = ::Gapic::Config::Method.new set_cloud_armor_tier_config
1567
1666
  set_common_instance_metadata_config = parent_rpcs.set_common_instance_metadata if parent_rpcs.respond_to? :set_common_instance_metadata
1568
1667
  @set_common_instance_metadata = ::Gapic::Config::Method.new set_common_instance_metadata_config
1569
1668
  set_default_network_tier_config = parent_rpcs.set_default_network_tier if parent_rpcs.respond_to? :set_default_network_tier
@@ -441,6 +441,44 @@ module Google
441
441
  result
442
442
  end
443
443
 
444
+ ##
445
+ # Baseline implementation for the set_cloud_armor_tier REST call
446
+ #
447
+ # @param request_pb [::Google::Cloud::Compute::V1::SetCloudArmorTierProjectRequest]
448
+ # A request object representing the call parameters. Required.
449
+ # @param options [::Gapic::CallOptions]
450
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
451
+ #
452
+ # @yield [result, operation] Access the result along with the TransportOperation object
453
+ # @yieldparam result [::Google::Cloud::Compute::V1::Operation]
454
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
455
+ #
456
+ # @return [::Google::Cloud::Compute::V1::Operation]
457
+ # A result object deserialized from the server's reply
458
+ def set_cloud_armor_tier request_pb, options = nil
459
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
460
+
461
+ verb, uri, query_string_params, body = ServiceStub.transcode_set_cloud_armor_tier_request request_pb
462
+ query_string_params = if query_string_params.any?
463
+ query_string_params.to_h { |p| p.split "=", 2 }
464
+ else
465
+ {}
466
+ end
467
+
468
+ response = @client_stub.make_http_request(
469
+ verb,
470
+ uri: uri,
471
+ body: body || "",
472
+ params: query_string_params,
473
+ options: options
474
+ )
475
+ operation = ::Gapic::Rest::TransportOperation.new response
476
+ result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
477
+
478
+ yield result, operation if block_given?
479
+ result
480
+ end
481
+
444
482
  ##
445
483
  # Baseline implementation for the set_common_instance_metadata REST call
446
484
  #
@@ -770,6 +808,28 @@ module Google
770
808
  transcoder.transcode request_pb
771
809
  end
772
810
 
811
+ ##
812
+ # @private
813
+ #
814
+ # GRPC transcoding helper method for the set_cloud_armor_tier REST call
815
+ #
816
+ # @param request_pb [::Google::Cloud::Compute::V1::SetCloudArmorTierProjectRequest]
817
+ # A request object representing the call parameters. Required.
818
+ # @return [Array(String, [String, nil], Hash{String => String})]
819
+ # Uri, Body, Query string parameters
820
+ def self.transcode_set_cloud_armor_tier_request request_pb
821
+ transcoder = Gapic::Rest::GrpcTranscoder.new
822
+ .with_bindings(
823
+ uri_method: :post,
824
+ uri_template: "/compute/v1/projects/{project}/setCloudArmorTier",
825
+ body: "projects_set_cloud_armor_tier_request_resource",
826
+ matches: [
827
+ ["project", %r{^[^/]+/?$}, false]
828
+ ]
829
+ )
830
+ transcoder.transcode request_pb
831
+ end
832
+
773
833
  ##
774
834
  # @private
775
835
  #
@@ -565,7 +565,7 @@ module Google
565
565
  # @param project [::String]
566
566
  # Project ID for this request.
567
567
  # @param return_partial_success [::Boolean]
568
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
568
+ # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
569
569
  # @yield [result, operation] Access the result along with the TransportOperation object
570
570
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::PublicAdvertisedPrefix>]
571
571
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -192,7 +192,7 @@ module Google
192
192
  # Service calls
193
193
 
194
194
  ##
195
- # Lists all PublicDelegatedPrefix resources owned by the specific project across all scopes.
195
+ # Lists all PublicDelegatedPrefix resources owned by the specific project across all scopes. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
196
196
  #
197
197
  # @overload aggregated_list(request, options = nil)
198
198
  # Pass arguments to `aggregated_list` via a request object, either of type
@@ -222,7 +222,7 @@ module Google
222
222
  # @param project [::String]
223
223
  # Name of the project scoping this request.
224
224
  # @param return_partial_success [::Boolean]
225
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
225
+ # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
226
226
  # @param service_project_number [::Integer]
227
227
  # The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
228
228
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -676,7 +676,7 @@ module Google
676
676
  # @param region [::String]
677
677
  # Name of the region of this request.
678
678
  # @param return_partial_success [::Boolean]
679
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
679
+ # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
680
680
  # @yield [result, operation] Access the result along with the TransportOperation object
681
681
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::PublicDelegatedPrefix>]
682
682
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -483,7 +483,7 @@ module Google
483
483
  # @param region [::String]
484
484
  # Name of the region scoping this request.
485
485
  # @param return_partial_success [::Boolean]
486
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
486
+ # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
487
487
  # @yield [result, operation] Access the result along with the TransportOperation object
488
488
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Autoscaler>]
489
489
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -668,7 +668,7 @@ module Google
668
668
  # @param region [::String]
669
669
  # Name of the region scoping this request.
670
670
  # @param return_partial_success [::Boolean]
671
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
671
+ # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
672
672
  # @yield [result, operation] Access the result along with the TransportOperation object
673
673
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::BackendService>]
674
674
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -759,7 +759,7 @@ module Google
759
759
  # @param region [::String]
760
760
  # Name of the region scoping this request. It must be a string that meets the requirements in RFC1035.
761
761
  # @param return_partial_success [::Boolean]
762
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
762
+ # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
763
763
  # @yield [result, operation] Access the result along with the TransportOperation object
764
764
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::BackendService>]
765
765
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -186,7 +186,7 @@ module Google
186
186
  # Service calls
187
187
 
188
188
  ##
189
- # Retrieves an aggregated list of commitments by region.
189
+ # Retrieves an aggregated list of commitments by region. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
190
190
  #
191
191
  # @overload aggregated_list(request, options = nil)
192
192
  # Pass arguments to `aggregated_list` via a request object, either of type
@@ -216,7 +216,7 @@ module Google
216
216
  # @param project [::String]
217
217
  # Project ID for this request.
218
218
  # @param return_partial_success [::Boolean]
219
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
219
+ # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
220
220
  # @param service_project_number [::Integer]
221
221
  # The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
222
222
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -484,7 +484,7 @@ module Google
484
484
  # @param region [::String]
485
485
  # Name of the region for this request.
486
486
  # @param return_partial_success [::Boolean]
487
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
487
+ # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
488
488
  # @yield [result, operation] Access the result along with the TransportOperation object
489
489
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Commitment>]
490
490
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -274,7 +274,7 @@ module Google
274
274
  # @param region [::String]
275
275
  # The name of the region for this request.
276
276
  # @param return_partial_success [::Boolean]
277
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
277
+ # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
278
278
  # @yield [result, operation] Access the result along with the TransportOperation object
279
279
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::DiskType>]
280
280
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -877,7 +877,7 @@ module Google
877
877
  # @param region [::String]
878
878
  # Name of the region for this request.
879
879
  # @param return_partial_success [::Boolean]
880
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
880
+ # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
881
881
  # @yield [result, operation] Access the result along with the TransportOperation object
882
882
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Disk>]
883
883
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -481,7 +481,7 @@ module Google
481
481
  # @param region [::String]
482
482
  # Name of the region scoping this request.
483
483
  # @param return_partial_success [::Boolean]
484
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
484
+ # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
485
485
  # @yield [result, operation] Access the result along with the TransportOperation object
486
486
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::HealthCheckService>]
487
487
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -483,7 +483,7 @@ module Google
483
483
  # @param region [::String]
484
484
  # Name of the region scoping this request.
485
485
  # @param return_partial_success [::Boolean]
486
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
486
+ # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
487
487
  # @yield [result, operation] Access the result along with the TransportOperation object
488
488
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::HealthCheck>]
489
489
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -983,7 +983,7 @@ module Google
983
983
  # @param region [::String]
984
984
  # Name of the region scoping this request.
985
985
  # @param return_partial_success [::Boolean]
986
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
986
+ # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
987
987
  # @yield [result, operation] Access the result along with the TransportOperation object
988
988
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::InstanceGroupManager>]
989
989
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -1076,7 +1076,7 @@ module Google
1076
1076
  # @param region [::String]
1077
1077
  # Name of the region scoping this request. This should conform to RFC1035.
1078
1078
  # @param return_partial_success [::Boolean]
1079
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
1079
+ # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
1080
1080
  # @yield [result, operation] Access the result along with the TransportOperation object
1081
1081
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::InstanceManagedByIgmError>]
1082
1082
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -1169,7 +1169,7 @@ module Google
1169
1169
  # @param region [::String]
1170
1170
  # Name of the region scoping this request.
1171
1171
  # @param return_partial_success [::Boolean]
1172
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
1172
+ # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
1173
1173
  # @yield [result, operation] Access the result along with the TransportOperation object
1174
1174
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::ManagedInstance>]
1175
1175
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -1262,7 +1262,7 @@ module Google
1262
1262
  # @param region [::String]
1263
1263
  # Name of the region scoping this request, should conform to RFC1035.
1264
1264
  # @param return_partial_success [::Boolean]
1265
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
1265
+ # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
1266
1266
  # @yield [result, operation] Access the result along with the TransportOperation object
1267
1267
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::PerInstanceConfig>]
1268
1268
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -293,7 +293,7 @@ module Google
293
293
  # @param region [::String]
294
294
  # Name of the region scoping this request.
295
295
  # @param return_partial_success [::Boolean]
296
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
296
+ # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
297
297
  # @yield [result, operation] Access the result along with the TransportOperation object
298
298
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::InstanceGroup>]
299
299
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -388,7 +388,7 @@ module Google
388
388
  # @param region_instance_groups_list_instances_request_resource [::Google::Cloud::Compute::V1::RegionInstanceGroupsListInstancesRequest, ::Hash]
389
389
  # The body resource for this request
390
390
  # @param return_partial_success [::Boolean]
391
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
391
+ # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
392
392
  # @yield [result, operation] Access the result along with the TransportOperation object
393
393
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::InstanceWithNamedPorts>]
394
394
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -479,7 +479,7 @@ module Google
479
479
  # @param region [::String]
480
480
  # The name of the regions for this request.
481
481
  # @param return_partial_success [::Boolean]
482
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
482
+ # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
483
483
  # @yield [result, operation] Access the result along with the TransportOperation object
484
484
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::InstanceTemplate>]
485
485
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -0,0 +1,52 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 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 RegionInstantSnapshots
26
+ # Credentials for the RegionInstantSnapshots 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