google-cloud-compute-v1 2.7.2 → 2.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +1 -0
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +1 -0
- data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +1 -0
- data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +1 -0
- data/lib/google/cloud/compute/v1/compute_pb.rb +13 -1
- data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +1 -0
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +1 -0
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +1 -0
- data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +1 -0
- data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +1 -0
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +2 -1
- data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +1 -0
- data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +1 -0
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +108 -3
- data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +61 -0
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +1 -0
- data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +1 -0
- data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +1 -0
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +1 -0
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +1 -0
- data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +1 -0
- data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +1 -0
- data/lib/google/cloud/compute/v1/node_types/rest/client.rb +1 -0
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +1 -0
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +1 -0
- data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +1 -0
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_zones/credentials.rb +53 -0
- data/lib/google/cloud/compute/v1/region_zones/rest/client.rb +404 -0
- data/lib/google/cloud/compute/v1/region_zones/rest/service_stub.rb +129 -0
- data/lib/google/cloud/compute/v1/region_zones/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/region_zones.rb +47 -0
- data/lib/google/cloud/compute/v1/reservations/rest/client.rb +1 -0
- data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +1 -0
- data/lib/google/cloud/compute/v1/rest.rb +1 -0
- data/lib/google/cloud/compute/v1/routers/rest/client.rb +1 -0
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +1 -0
- data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +1 -0
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +1 -0
- data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +1 -0
- data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +1 -0
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +1 -0
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +1 -0
- data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +1 -0
- data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +1 -0
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +1 -0
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +1 -0
- data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +1 -0
- data/lib/google/cloud/compute/v1/version.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +1 -0
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +1 -0
- data/lib/google/cloud/compute/v1.rb +1 -0
- data/proto_docs/google/cloud/compute/v1/compute.rb +391 -85
- metadata +7 -2
@@ -199,6 +199,7 @@ module Google
|
|
199
199
|
# @param return_partial_success [::Boolean]
|
200
200
|
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
201
201
|
# @param service_project_number [::Integer]
|
202
|
+
# The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
|
202
203
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
203
204
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::DiskTypesScopedList>]
|
204
205
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -342,6 +342,7 @@ module Google
|
|
342
342
|
# @param return_partial_success [::Boolean]
|
343
343
|
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
344
344
|
# @param service_project_number [::Integer]
|
345
|
+
# The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
|
345
346
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
346
347
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::DisksScopedList>]
|
347
348
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -224,6 +224,7 @@ module Google
|
|
224
224
|
# @param return_partial_success [::Boolean]
|
225
225
|
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
226
226
|
# @param service_project_number [::Integer]
|
227
|
+
# The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
|
227
228
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
228
229
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::ForwardingRulesScopedList>]
|
229
230
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -203,6 +203,7 @@ module Google
|
|
203
203
|
# @param return_partial_success [::Boolean]
|
204
204
|
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
205
205
|
# @param service_project_number [::Integer]
|
206
|
+
# The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
|
206
207
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
207
208
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::OperationsScopedList>]
|
208
209
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -222,6 +222,7 @@ module Google
|
|
222
222
|
# @param return_partial_success [::Boolean]
|
223
223
|
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
224
224
|
# @param service_project_number [::Integer]
|
225
|
+
# The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
|
225
226
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
226
227
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::HealthChecksScopedList>]
|
227
228
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -346,6 +346,7 @@ module Google
|
|
346
346
|
# @param return_partial_success [::Boolean]
|
347
347
|
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
348
348
|
# @param service_project_number [::Integer]
|
349
|
+
# The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
|
349
350
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
350
351
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::InstanceGroupManagersScopedList>]
|
351
352
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -1234,7 +1235,7 @@ module Google
|
|
1234
1235
|
end
|
1235
1236
|
|
1236
1237
|
##
|
1237
|
-
# Lists all of the instances in the managed instance group. Each instance in the list has a currentAction, which indicates the action that the managed instance group is performing on the instance. For example, if the group is still creating an instance, the currentAction is CREATING. If a previous action failed, the list displays the errors for that failed action. The orderBy query parameter is not supported. The `pageToken` query parameter is supported only
|
1238
|
+
# Lists all of the instances in the managed instance group. Each instance in the list has a currentAction, which indicates the action that the managed instance group is performing on the instance. For example, if the group is still creating an instance, the currentAction is CREATING. If a previous action failed, the list displays the errors for that failed action. The orderBy query parameter is not supported. The `pageToken` query parameter is supported only if the group's `listManagedInstancesResults` field is set to `PAGINATED`.
|
1238
1239
|
#
|
1239
1240
|
# @overload list_managed_instances(request, options = nil)
|
1240
1241
|
# Pass arguments to `list_managed_instances` via a request object, either of type
|
@@ -321,6 +321,7 @@ module Google
|
|
321
321
|
# @param return_partial_success [::Boolean]
|
322
322
|
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
323
323
|
# @param service_project_number [::Integer]
|
324
|
+
# The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
|
324
325
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
325
326
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::InstanceGroupsScopedList>]
|
326
327
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -227,6 +227,7 @@ module Google
|
|
227
227
|
# @param return_partial_success [::Boolean]
|
228
228
|
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
229
229
|
# @param service_project_number [::Integer]
|
230
|
+
# The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
|
230
231
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
231
232
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::InstanceTemplatesScopedList>]
|
232
233
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -134,6 +134,8 @@ module Google
|
|
134
134
|
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
135
135
|
}
|
136
136
|
|
137
|
+
default_config.rpcs.perform_maintenance.timeout = 600.0
|
138
|
+
|
137
139
|
default_config.rpcs.remove_resource_policies.timeout = 600.0
|
138
140
|
|
139
141
|
default_config.rpcs.reset.timeout = 600.0
|
@@ -515,6 +517,7 @@ module Google
|
|
515
517
|
# @param return_partial_success [::Boolean]
|
516
518
|
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
517
519
|
# @param service_project_number [::Integer]
|
520
|
+
# The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
|
518
521
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
519
522
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::InstancesScopedList>]
|
520
523
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -1916,6 +1919,99 @@ module Google
|
|
1916
1919
|
raise ::Google::Cloud::Error.from_error(e)
|
1917
1920
|
end
|
1918
1921
|
|
1922
|
+
##
|
1923
|
+
# Perform a manual maintenance on the instance.
|
1924
|
+
#
|
1925
|
+
# @overload perform_maintenance(request, options = nil)
|
1926
|
+
# Pass arguments to `perform_maintenance` via a request object, either of type
|
1927
|
+
# {::Google::Cloud::Compute::V1::PerformMaintenanceInstanceRequest} or an equivalent Hash.
|
1928
|
+
#
|
1929
|
+
# @param request [::Google::Cloud::Compute::V1::PerformMaintenanceInstanceRequest, ::Hash]
|
1930
|
+
# A request object representing the call parameters. Required. To specify no
|
1931
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1932
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1933
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1934
|
+
#
|
1935
|
+
# @overload perform_maintenance(instance: nil, project: nil, request_id: nil, zone: nil)
|
1936
|
+
# Pass arguments to `perform_maintenance` via keyword arguments. Note that at
|
1937
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1938
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1939
|
+
#
|
1940
|
+
# @param instance [::String]
|
1941
|
+
# Name of the instance scoping this request.
|
1942
|
+
# @param project [::String]
|
1943
|
+
# Project ID for this request.
|
1944
|
+
# @param request_id [::String]
|
1945
|
+
# 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).
|
1946
|
+
# @param zone [::String]
|
1947
|
+
# The name of the zone for this request.
|
1948
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1949
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
1950
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1951
|
+
#
|
1952
|
+
# @return [::Gapic::GenericLRO::Operation]
|
1953
|
+
#
|
1954
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1955
|
+
#
|
1956
|
+
# @example Basic example
|
1957
|
+
# require "google/cloud/compute/v1"
|
1958
|
+
#
|
1959
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1960
|
+
# client = Google::Cloud::Compute::V1::Instances::Rest::Client.new
|
1961
|
+
#
|
1962
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1963
|
+
# request = Google::Cloud::Compute::V1::PerformMaintenanceInstanceRequest.new
|
1964
|
+
#
|
1965
|
+
# # Call the perform_maintenance method.
|
1966
|
+
# result = client.perform_maintenance request
|
1967
|
+
#
|
1968
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
1969
|
+
# p result
|
1970
|
+
#
|
1971
|
+
def perform_maintenance request, options = nil
|
1972
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1973
|
+
|
1974
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::PerformMaintenanceInstanceRequest
|
1975
|
+
|
1976
|
+
# Converts hash and nil to an options object
|
1977
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1978
|
+
|
1979
|
+
# Customize the options with defaults
|
1980
|
+
call_metadata = @config.rpcs.perform_maintenance.metadata.to_h
|
1981
|
+
|
1982
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1983
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1984
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1985
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1986
|
+
transports_version_send: [:rest]
|
1987
|
+
|
1988
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1989
|
+
|
1990
|
+
options.apply_defaults timeout: @config.rpcs.perform_maintenance.timeout,
|
1991
|
+
metadata: call_metadata,
|
1992
|
+
retry_policy: @config.rpcs.perform_maintenance.retry_policy
|
1993
|
+
|
1994
|
+
options.apply_defaults timeout: @config.timeout,
|
1995
|
+
metadata: @config.metadata,
|
1996
|
+
retry_policy: @config.retry_policy
|
1997
|
+
|
1998
|
+
@instances_stub.perform_maintenance request, options do |result, response|
|
1999
|
+
result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
|
2000
|
+
operation: result,
|
2001
|
+
client: zone_operations,
|
2002
|
+
request_values: {
|
2003
|
+
"project" => request.project,
|
2004
|
+
"zone" => request.zone
|
2005
|
+
},
|
2006
|
+
options: options
|
2007
|
+
)
|
2008
|
+
yield result, response if block_given?
|
2009
|
+
return result
|
2010
|
+
end
|
2011
|
+
rescue ::Gapic::Rest::Error => e
|
2012
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2013
|
+
end
|
2014
|
+
|
1919
2015
|
##
|
1920
2016
|
# Removes resource policies from an instance.
|
1921
2017
|
#
|
@@ -3613,7 +3709,7 @@ module Google
|
|
3613
3709
|
# @param options [::Gapic::CallOptions, ::Hash]
|
3614
3710
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
3615
3711
|
#
|
3616
|
-
# @overload simulate_maintenance_event(instance: nil, project: nil, request_id: nil, zone: nil)
|
3712
|
+
# @overload simulate_maintenance_event(instance: nil, project: nil, request_id: nil, with_extended_notifications: nil, zone: nil)
|
3617
3713
|
# Pass arguments to `simulate_maintenance_event` via keyword arguments. Note that at
|
3618
3714
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
3619
3715
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -3624,6 +3720,8 @@ module Google
|
|
3624
3720
|
# Project ID for this request.
|
3625
3721
|
# @param request_id [::String]
|
3626
3722
|
# 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).
|
3723
|
+
# @param with_extended_notifications [::Boolean]
|
3724
|
+
# Determines whether the customers receive notifications before migration. Only applicable to SF vms.
|
3627
3725
|
# @param zone [::String]
|
3628
3726
|
# The name of the zone for this request.
|
3629
3727
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
@@ -3900,7 +3998,7 @@ module Google
|
|
3900
3998
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
3901
3999
|
#
|
3902
4000
|
# @param discard_local_ssd [::Boolean]
|
3903
|
-
# If
|
4001
|
+
# This property is required if the instance has any attached Local SSD disks. If false, Local SSD data will be preserved when the instance is suspended. If true, the contents of any attached Local SSD disks will be discarded.
|
3904
4002
|
# @param instance [::String]
|
3905
4003
|
# Name of the instance resource to stop.
|
3906
4004
|
# @param project [::String]
|
@@ -3995,7 +4093,7 @@ module Google
|
|
3995
4093
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
3996
4094
|
#
|
3997
4095
|
# @param discard_local_ssd [::Boolean]
|
3998
|
-
# If
|
4096
|
+
# This property is required if the instance has any attached Local SSD disks. If false, Local SSD data will be preserved when the instance is suspended. If true, the contents of any attached Local SSD disks will be discarded.
|
3999
4097
|
# @param instance [::String]
|
4000
4098
|
# Name of the instance resource to suspend.
|
4001
4099
|
# @param project [::String]
|
@@ -4864,6 +4962,11 @@ module Google
|
|
4864
4962
|
#
|
4865
4963
|
attr_reader :list_referrers
|
4866
4964
|
##
|
4965
|
+
# RPC-specific configuration for `perform_maintenance`
|
4966
|
+
# @return [::Gapic::Config::Method]
|
4967
|
+
#
|
4968
|
+
attr_reader :perform_maintenance
|
4969
|
+
##
|
4867
4970
|
# RPC-specific configuration for `remove_resource_policies`
|
4868
4971
|
# @return [::Gapic::Config::Method]
|
4869
4972
|
#
|
@@ -5047,6 +5150,8 @@ module Google
|
|
5047
5150
|
@list = ::Gapic::Config::Method.new list_config
|
5048
5151
|
list_referrers_config = parent_rpcs.list_referrers if parent_rpcs.respond_to? :list_referrers
|
5049
5152
|
@list_referrers = ::Gapic::Config::Method.new list_referrers_config
|
5153
|
+
perform_maintenance_config = parent_rpcs.perform_maintenance if parent_rpcs.respond_to? :perform_maintenance
|
5154
|
+
@perform_maintenance = ::Gapic::Config::Method.new perform_maintenance_config
|
5050
5155
|
remove_resource_policies_config = parent_rpcs.remove_resource_policies if parent_rpcs.respond_to? :remove_resource_policies
|
5051
5156
|
@remove_resource_policies = ::Gapic::Config::Method.new remove_resource_policies_config
|
5052
5157
|
reset_config = parent_rpcs.reset if parent_rpcs.respond_to? :reset
|
@@ -745,6 +745,44 @@ module Google
|
|
745
745
|
result
|
746
746
|
end
|
747
747
|
|
748
|
+
##
|
749
|
+
# Baseline implementation for the perform_maintenance REST call
|
750
|
+
#
|
751
|
+
# @param request_pb [::Google::Cloud::Compute::V1::PerformMaintenanceInstanceRequest]
|
752
|
+
# A request object representing the call parameters. Required.
|
753
|
+
# @param options [::Gapic::CallOptions]
|
754
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
755
|
+
#
|
756
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
757
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
758
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
759
|
+
#
|
760
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
761
|
+
# A result object deserialized from the server's reply
|
762
|
+
def perform_maintenance request_pb, options = nil
|
763
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
764
|
+
|
765
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_perform_maintenance_request request_pb
|
766
|
+
query_string_params = if query_string_params.any?
|
767
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
768
|
+
else
|
769
|
+
{}
|
770
|
+
end
|
771
|
+
|
772
|
+
response = @client_stub.make_http_request(
|
773
|
+
verb,
|
774
|
+
uri: uri,
|
775
|
+
body: body || "",
|
776
|
+
params: query_string_params,
|
777
|
+
options: options
|
778
|
+
)
|
779
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
780
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
781
|
+
|
782
|
+
yield result, operation if block_given?
|
783
|
+
result
|
784
|
+
end
|
785
|
+
|
748
786
|
##
|
749
787
|
# Baseline implementation for the remove_resource_policies REST call
|
750
788
|
#
|
@@ -2261,6 +2299,29 @@ module Google
|
|
2261
2299
|
transcoder.transcode request_pb
|
2262
2300
|
end
|
2263
2301
|
|
2302
|
+
##
|
2303
|
+
# @private
|
2304
|
+
#
|
2305
|
+
# GRPC transcoding helper method for the perform_maintenance REST call
|
2306
|
+
#
|
2307
|
+
# @param request_pb [::Google::Cloud::Compute::V1::PerformMaintenanceInstanceRequest]
|
2308
|
+
# A request object representing the call parameters. Required.
|
2309
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2310
|
+
# Uri, Body, Query string parameters
|
2311
|
+
def self.transcode_perform_maintenance_request request_pb
|
2312
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2313
|
+
.with_bindings(
|
2314
|
+
uri_method: :post,
|
2315
|
+
uri_template: "/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/performMaintenance",
|
2316
|
+
matches: [
|
2317
|
+
["project", %r{^[^/]+/?$}, false],
|
2318
|
+
["zone", %r{^[^/]+/?$}, false],
|
2319
|
+
["instance", %r{^[^/]+/?$}, false]
|
2320
|
+
]
|
2321
|
+
)
|
2322
|
+
transcoder.transcode request_pb
|
2323
|
+
end
|
2324
|
+
|
2264
2325
|
##
|
2265
2326
|
# @private
|
2266
2327
|
#
|
@@ -222,6 +222,7 @@ module Google
|
|
222
222
|
# @param return_partial_success [::Boolean]
|
223
223
|
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
224
224
|
# @param service_project_number [::Integer]
|
225
|
+
# The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
|
225
226
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
226
227
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::InterconnectAttachmentsScopedList>]
|
227
228
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -199,6 +199,7 @@ module Google
|
|
199
199
|
# @param return_partial_success [::Boolean]
|
200
200
|
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
201
201
|
# @param service_project_number [::Integer]
|
202
|
+
# The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
|
202
203
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
203
204
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::MachineTypesScopedList>]
|
204
205
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -229,6 +229,7 @@ module Google
|
|
229
229
|
# @param return_partial_success [::Boolean]
|
230
230
|
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
231
231
|
# @param service_project_number [::Integer]
|
232
|
+
# The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
|
232
233
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
233
234
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::NetworkAttachmentsScopedList>]
|
234
235
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -215,6 +215,7 @@ module Google
|
|
215
215
|
# @param return_partial_success [::Boolean]
|
216
216
|
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
217
217
|
# @param service_project_number [::Integer]
|
218
|
+
# The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
|
218
219
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
219
220
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::NetworkEdgeSecurityServicesScopedList>]
|
220
221
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -226,6 +226,7 @@ module Google
|
|
226
226
|
# @param return_partial_success [::Boolean]
|
227
227
|
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
228
228
|
# @param service_project_number [::Integer]
|
229
|
+
# The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
|
229
230
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
230
231
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::NetworkEndpointGroupsScopedList>]
|
231
232
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -334,6 +334,7 @@ module Google
|
|
334
334
|
# @param return_partial_success [::Boolean]
|
335
335
|
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
336
336
|
# @param service_project_number [::Integer]
|
337
|
+
# The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
|
337
338
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
338
339
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::NodeGroupsScopedList>]
|
339
340
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -227,6 +227,7 @@ module Google
|
|
227
227
|
# @param return_partial_success [::Boolean]
|
228
228
|
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
229
229
|
# @param service_project_number [::Integer]
|
230
|
+
# The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
|
230
231
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
231
232
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::NodeTemplatesScopedList>]
|
232
233
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -199,6 +199,7 @@ module Google
|
|
199
199
|
# @param return_partial_success [::Boolean]
|
200
200
|
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
201
201
|
# @param service_project_number [::Integer]
|
202
|
+
# The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
|
202
203
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
203
204
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::NodeTypesScopedList>]
|
204
205
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -222,6 +222,7 @@ module Google
|
|
222
222
|
# @param return_partial_success [::Boolean]
|
223
223
|
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
224
224
|
# @param service_project_number [::Integer]
|
225
|
+
# The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
|
225
226
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
226
227
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::PacketMirroringsScopedList>]
|
227
228
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -224,6 +224,7 @@ module Google
|
|
224
224
|
# @param return_partial_success [::Boolean]
|
225
225
|
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
226
226
|
# @param service_project_number [::Integer]
|
227
|
+
# The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
|
227
228
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
228
229
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::PublicDelegatedPrefixesScopedList>]
|
229
230
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -218,6 +218,7 @@ module Google
|
|
218
218
|
# @param return_partial_success [::Boolean]
|
219
219
|
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
220
220
|
# @param service_project_number [::Integer]
|
221
|
+
# The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
|
221
222
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
222
223
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::CommitmentsScopedList>]
|
223
224
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -1137,7 +1137,7 @@ module Google
|
|
1137
1137
|
end
|
1138
1138
|
|
1139
1139
|
##
|
1140
|
-
# Lists the instances in the managed instance group and instances that are scheduled to be created. The list includes any current actions that the group has scheduled for its instances. The orderBy query parameter is not supported. The `pageToken` query parameter is supported only
|
1140
|
+
# Lists the instances in the managed instance group and instances that are scheduled to be created. The list includes any current actions that the group has scheduled for its instances. The orderBy query parameter is not supported. The `pageToken` query parameter is supported only if the group's `listManagedInstancesResults` field is set to `PAGINATED`.
|
1141
1141
|
#
|
1142
1142
|
# @overload list_managed_instances(request, options = nil)
|
1143
1143
|
# Pass arguments to `list_managed_instances` via a request object, either of type
|
@@ -0,0 +1,53 @@
|
|
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 RegionZones
|
26
|
+
# Credentials for the RegionZones API.
|
27
|
+
class Credentials < ::Google::Auth::Credentials
|
28
|
+
self.scope = [
|
29
|
+
"https://www.googleapis.com/auth/compute.readonly",
|
30
|
+
"https://www.googleapis.com/auth/compute",
|
31
|
+
"https://www.googleapis.com/auth/cloud-platform"
|
32
|
+
]
|
33
|
+
self.env_vars = [
|
34
|
+
"COMPUTE_CREDENTIALS",
|
35
|
+
"COMPUTE_KEYFILE",
|
36
|
+
"GOOGLE_CLOUD_CREDENTIALS",
|
37
|
+
"GOOGLE_CLOUD_KEYFILE",
|
38
|
+
"GCLOUD_KEYFILE",
|
39
|
+
"COMPUTE_CREDENTIALS_JSON",
|
40
|
+
"COMPUTE_KEYFILE_JSON",
|
41
|
+
"GOOGLE_CLOUD_CREDENTIALS_JSON",
|
42
|
+
"GOOGLE_CLOUD_KEYFILE_JSON",
|
43
|
+
"GCLOUD_KEYFILE_JSON"
|
44
|
+
]
|
45
|
+
self.paths = [
|
46
|
+
"~/.config/google_cloud/application_default_credentials.json"
|
47
|
+
]
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|