lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb in google-cloud-compute-v1-1.1.0 vs lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb in google-cloud-compute-v1-1.2.0
- old
+ new
@@ -17,10 +17,11 @@
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
require "google/cloud/errors"
require "google/cloud/compute/v1/compute_pb"
require "google/cloud/compute/v1/instance_group_managers/rest/service_stub"
+require "google/cloud/compute/v1/zone_operations/rest"
module Google
module Cloud
module Compute
module V1
@@ -170,13 +171,25 @@
credentials ||= Credentials.default scope: @config.scope
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
credentials = Credentials.new credentials, scope: @config.scope
end
+ @zone_operations = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::Client.new do |config|
+ config.credentials = credentials
+ config.endpoint = @config.endpoint
+ end
+
@instance_group_managers_stub = ::Google::Cloud::Compute::V1::InstanceGroupManagers::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
end
+ ##
+ # Get the associated client for long-running operations via ZoneOperations.
+ #
+ # @return [::Google::Cloud::Compute::V1::ZoneOperations::Rest::Client]
+ #
+ attr_reader :zone_operations
+
# Service calls
##
# Flags the specified instances to be removed from the managed instance group. Abandoning an instance does not delete the instance, but it does remove the instance from any target pools that are applied by the managed instance group. This method reduces the targetSize of the managed instance group by the number of instances that you abandon. This operation is marked as DONE when the action is scheduled even if the instances have not yet been removed from the group. You must separately verify the status of the abandoning action with the listmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request.
#
@@ -206,14 +219,14 @@
# @param request_id [::String]
# An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. 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).
# @param zone [::String]
# The name of the zone where the managed instance group is located.
# @yield [result, response] Access the result along with the Faraday response object
- # @yieldparam result [::Gapic::Rest::BaseOperation]
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
# @yieldparam response [::Faraday::Response]
#
- # @return [::Gapic::Rest::BaseOperation]
+ # @return [::Gapic::GenericLRO::Operation]
#
# @raise [::Google::Cloud::Error] if the REST call is aborted.
def abandon_instances request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -236,11 +249,19 @@
options.apply_defaults timeout: @config.timeout,
metadata: @config.metadata
@instance_group_managers_stub.abandon_instances request, options do |result, response|
- result = ::Gapic::Rest::BaseOperation.new result
+ result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
+ operation: result,
+ client: zone_operations,
+ request_values: {
+ "project" => request.project,
+ "zone" => request.zone
+ },
+ options: options
+ )
yield result, response if block_given?
return result
end
rescue ::Faraday::Error => e
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
@@ -348,14 +369,14 @@
# @param project [::String]
# Project ID for this request.
# @param zone [::String]
# The name of the zone where the managed instance group is located. Should conform to RFC1035.
# @yield [result, response] Access the result along with the Faraday response object
- # @yieldparam result [::Gapic::Rest::BaseOperation]
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
# @yieldparam response [::Faraday::Response]
#
- # @return [::Gapic::Rest::BaseOperation]
+ # @return [::Gapic::GenericLRO::Operation]
#
# @raise [::Google::Cloud::Error] if the REST call is aborted.
def apply_updates_to_instances request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -378,11 +399,19 @@
options.apply_defaults timeout: @config.timeout,
metadata: @config.metadata
@instance_group_managers_stub.apply_updates_to_instances request, options do |result, response|
- result = ::Gapic::Rest::BaseOperation.new result
+ result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
+ operation: result,
+ client: zone_operations,
+ request_values: {
+ "project" => request.project,
+ "zone" => request.zone
+ },
+ options: options
+ )
yield result, response if block_given?
return result
end
rescue ::Faraday::Error => e
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
@@ -418,14 +447,14 @@
# @param request_id [::String]
# An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. 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. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
# @param zone [::String]
# The name of the zone where the managed instance group is located. It should conform to RFC1035.
# @yield [result, response] Access the result along with the Faraday response object
- # @yieldparam result [::Gapic::Rest::BaseOperation]
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
# @yieldparam response [::Faraday::Response]
#
- # @return [::Gapic::Rest::BaseOperation]
+ # @return [::Gapic::GenericLRO::Operation]
#
# @raise [::Google::Cloud::Error] if the REST call is aborted.
def create_instances request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -448,11 +477,19 @@
options.apply_defaults timeout: @config.timeout,
metadata: @config.metadata
@instance_group_managers_stub.create_instances request, options do |result, response|
- result = ::Gapic::Rest::BaseOperation.new result
+ result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
+ operation: result,
+ client: zone_operations,
+ request_values: {
+ "project" => request.project,
+ "zone" => request.zone
+ },
+ options: options
+ )
yield result, response if block_given?
return result
end
rescue ::Faraday::Error => e
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
@@ -486,14 +523,14 @@
# @param request_id [::String]
# An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. 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).
# @param zone [::String]
# The name of the zone where the managed instance group is located.
# @yield [result, response] Access the result along with the Faraday response object
- # @yieldparam result [::Gapic::Rest::BaseOperation]
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
# @yieldparam response [::Faraday::Response]
#
- # @return [::Gapic::Rest::BaseOperation]
+ # @return [::Gapic::GenericLRO::Operation]
#
# @raise [::Google::Cloud::Error] if the REST call is aborted.
def delete request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -516,11 +553,19 @@
options.apply_defaults timeout: @config.timeout,
metadata: @config.metadata
@instance_group_managers_stub.delete request, options do |result, response|
- result = ::Gapic::Rest::BaseOperation.new result
+ result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
+ operation: result,
+ client: zone_operations,
+ request_values: {
+ "project" => request.project,
+ "zone" => request.zone
+ },
+ options: options
+ )
yield result, response if block_given?
return result
end
rescue ::Faraday::Error => e
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
@@ -556,14 +601,14 @@
# @param request_id [::String]
# An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. 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).
# @param zone [::String]
# The name of the zone where the managed instance group is located.
# @yield [result, response] Access the result along with the Faraday response object
- # @yieldparam result [::Gapic::Rest::BaseOperation]
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
# @yieldparam response [::Faraday::Response]
#
- # @return [::Gapic::Rest::BaseOperation]
+ # @return [::Gapic::GenericLRO::Operation]
#
# @raise [::Google::Cloud::Error] if the REST call is aborted.
def delete_instances request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -586,11 +631,19 @@
options.apply_defaults timeout: @config.timeout,
metadata: @config.metadata
@instance_group_managers_stub.delete_instances request, options do |result, response|
- result = ::Gapic::Rest::BaseOperation.new result
+ result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
+ operation: result,
+ client: zone_operations,
+ request_values: {
+ "project" => request.project,
+ "zone" => request.zone
+ },
+ options: options
+ )
yield result, response if block_given?
return result
end
rescue ::Faraday::Error => e
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
@@ -624,14 +677,14 @@
# @param project [::String]
# Project ID for this request.
# @param zone [::String]
# The name of the zone where the managed instance group is located. It should conform to RFC1035.
# @yield [result, response] Access the result along with the Faraday response object
- # @yieldparam result [::Gapic::Rest::BaseOperation]
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
# @yieldparam response [::Faraday::Response]
#
- # @return [::Gapic::Rest::BaseOperation]
+ # @return [::Gapic::GenericLRO::Operation]
#
# @raise [::Google::Cloud::Error] if the REST call is aborted.
def delete_per_instance_configs request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -654,11 +707,19 @@
options.apply_defaults timeout: @config.timeout,
metadata: @config.metadata
@instance_group_managers_stub.delete_per_instance_configs request, options do |result, response|
- result = ::Gapic::Rest::BaseOperation.new result
+ result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
+ operation: result,
+ client: zone_operations,
+ request_values: {
+ "project" => request.project,
+ "zone" => request.zone
+ },
+ options: options
+ )
yield result, response if block_given?
return result
end
rescue ::Faraday::Error => e
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
@@ -757,14 +818,14 @@
# @param request_id [::String]
# An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. 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).
# @param zone [::String]
# The name of the zone where you want to create the managed instance group.
# @yield [result, response] Access the result along with the Faraday response object
- # @yieldparam result [::Gapic::Rest::BaseOperation]
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
# @yieldparam response [::Faraday::Response]
#
- # @return [::Gapic::Rest::BaseOperation]
+ # @return [::Gapic::GenericLRO::Operation]
#
# @raise [::Google::Cloud::Error] if the REST call is aborted.
def insert request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -787,11 +848,19 @@
options.apply_defaults timeout: @config.timeout,
metadata: @config.metadata
@instance_group_managers_stub.insert request, options do |result, response|
- result = ::Gapic::Rest::BaseOperation.new result
+ result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
+ operation: result,
+ client: zone_operations,
+ request_values: {
+ "project" => request.project,
+ "zone" => request.zone
+ },
+ options: options
+ )
yield result, response if block_given?
return result
end
rescue ::Faraday::Error => e
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
@@ -1129,14 +1198,14 @@
# @param request_id [::String]
# An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. 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).
# @param zone [::String]
# The name of the zone where you want to create the managed instance group.
# @yield [result, response] Access the result along with the Faraday response object
- # @yieldparam result [::Gapic::Rest::BaseOperation]
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
# @yieldparam response [::Faraday::Response]
#
- # @return [::Gapic::Rest::BaseOperation]
+ # @return [::Gapic::GenericLRO::Operation]
#
# @raise [::Google::Cloud::Error] if the REST call is aborted.
def patch request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -1159,11 +1228,19 @@
options.apply_defaults timeout: @config.timeout,
metadata: @config.metadata
@instance_group_managers_stub.patch request, options do |result, response|
- result = ::Gapic::Rest::BaseOperation.new result
+ result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
+ operation: result,
+ client: zone_operations,
+ request_values: {
+ "project" => request.project,
+ "zone" => request.zone
+ },
+ options: options
+ )
yield result, response if block_given?
return result
end
rescue ::Faraday::Error => e
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
@@ -1199,14 +1276,14 @@
# @param request_id [::String]
# An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. 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).
# @param zone [::String]
# The name of the zone where the managed instance group is located. It should conform to RFC1035.
# @yield [result, response] Access the result along with the Faraday response object
- # @yieldparam result [::Gapic::Rest::BaseOperation]
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
# @yieldparam response [::Faraday::Response]
#
- # @return [::Gapic::Rest::BaseOperation]
+ # @return [::Gapic::GenericLRO::Operation]
#
# @raise [::Google::Cloud::Error] if the REST call is aborted.
def patch_per_instance_configs request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -1229,11 +1306,19 @@
options.apply_defaults timeout: @config.timeout,
metadata: @config.metadata
@instance_group_managers_stub.patch_per_instance_configs request, options do |result, response|
- result = ::Gapic::Rest::BaseOperation.new result
+ result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
+ operation: result,
+ client: zone_operations,
+ request_values: {
+ "project" => request.project,
+ "zone" => request.zone
+ },
+ options: options
+ )
yield result, response if block_given?
return result
end
rescue ::Faraday::Error => e
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
@@ -1269,14 +1354,14 @@
# @param request_id [::String]
# An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. 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).
# @param zone [::String]
# The name of the zone where the managed instance group is located.
# @yield [result, response] Access the result along with the Faraday response object
- # @yieldparam result [::Gapic::Rest::BaseOperation]
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
# @yieldparam response [::Faraday::Response]
#
- # @return [::Gapic::Rest::BaseOperation]
+ # @return [::Gapic::GenericLRO::Operation]
#
# @raise [::Google::Cloud::Error] if the REST call is aborted.
def recreate_instances request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -1299,11 +1384,19 @@
options.apply_defaults timeout: @config.timeout,
metadata: @config.metadata
@instance_group_managers_stub.recreate_instances request, options do |result, response|
- result = ::Gapic::Rest::BaseOperation.new result
+ result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
+ operation: result,
+ client: zone_operations,
+ request_values: {
+ "project" => request.project,
+ "zone" => request.zone
+ },
+ options: options
+ )
yield result, response if block_given?
return result
end
rescue ::Faraday::Error => e
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
@@ -1339,14 +1432,14 @@
# @param size [::Integer]
# The number of running instances that the managed instance group should maintain at any given time. The group automatically adds or removes instances to maintain the number of instances specified by this parameter.
# @param zone [::String]
# The name of the zone where the managed instance group is located.
# @yield [result, response] Access the result along with the Faraday response object
- # @yieldparam result [::Gapic::Rest::BaseOperation]
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
# @yieldparam response [::Faraday::Response]
#
- # @return [::Gapic::Rest::BaseOperation]
+ # @return [::Gapic::GenericLRO::Operation]
#
# @raise [::Google::Cloud::Error] if the REST call is aborted.
def resize request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -1369,11 +1462,19 @@
options.apply_defaults timeout: @config.timeout,
metadata: @config.metadata
@instance_group_managers_stub.resize request, options do |result, response|
- result = ::Gapic::Rest::BaseOperation.new result
+ result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
+ operation: result,
+ client: zone_operations,
+ request_values: {
+ "project" => request.project,
+ "zone" => request.zone
+ },
+ options: options
+ )
yield result, response if block_given?
return result
end
rescue ::Faraday::Error => e
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
@@ -1409,14 +1510,14 @@
# @param request_id [::String]
# An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. 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).
# @param zone [::String]
# The name of the zone where the managed instance group is located.
# @yield [result, response] Access the result along with the Faraday response object
- # @yieldparam result [::Gapic::Rest::BaseOperation]
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
# @yieldparam response [::Faraday::Response]
#
- # @return [::Gapic::Rest::BaseOperation]
+ # @return [::Gapic::GenericLRO::Operation]
#
# @raise [::Google::Cloud::Error] if the REST call is aborted.
def set_instance_template request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -1439,11 +1540,19 @@
options.apply_defaults timeout: @config.timeout,
metadata: @config.metadata
@instance_group_managers_stub.set_instance_template request, options do |result, response|
- result = ::Gapic::Rest::BaseOperation.new result
+ result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
+ operation: result,
+ client: zone_operations,
+ request_values: {
+ "project" => request.project,
+ "zone" => request.zone
+ },
+ options: options
+ )
yield result, response if block_given?
return result
end
rescue ::Faraday::Error => e
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
@@ -1479,14 +1588,14 @@
# @param request_id [::String]
# An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. 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).
# @param zone [::String]
# The name of the zone where the managed instance group is located.
# @yield [result, response] Access the result along with the Faraday response object
- # @yieldparam result [::Gapic::Rest::BaseOperation]
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
# @yieldparam response [::Faraday::Response]
#
- # @return [::Gapic::Rest::BaseOperation]
+ # @return [::Gapic::GenericLRO::Operation]
#
# @raise [::Google::Cloud::Error] if the REST call is aborted.
def set_target_pools request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -1509,11 +1618,19 @@
options.apply_defaults timeout: @config.timeout,
metadata: @config.metadata
@instance_group_managers_stub.set_target_pools request, options do |result, response|
- result = ::Gapic::Rest::BaseOperation.new result
+ result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
+ operation: result,
+ client: zone_operations,
+ request_values: {
+ "project" => request.project,
+ "zone" => request.zone
+ },
+ options: options
+ )
yield result, response if block_given?
return result
end
rescue ::Faraday::Error => e
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
@@ -1549,14 +1666,14 @@
# @param request_id [::String]
# An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. 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).
# @param zone [::String]
# The name of the zone where the managed instance group is located. It should conform to RFC1035.
# @yield [result, response] Access the result along with the Faraday response object
- # @yieldparam result [::Gapic::Rest::BaseOperation]
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
# @yieldparam response [::Faraday::Response]
#
- # @return [::Gapic::Rest::BaseOperation]
+ # @return [::Gapic::GenericLRO::Operation]
#
# @raise [::Google::Cloud::Error] if the REST call is aborted.
def update_per_instance_configs request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -1579,10 +1696,18 @@
options.apply_defaults timeout: @config.timeout,
metadata: @config.metadata
@instance_group_managers_stub.update_per_instance_configs request, options do |result, response|
- result = ::Gapic::Rest::BaseOperation.new result
+ result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
+ operation: result,
+ client: zone_operations,
+ request_values: {
+ "project" => request.project,
+ "zone" => request.zone
+ },
+ options: options
+ )
yield result, response if block_given?
return result
end
rescue ::Faraday::Error => e
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e