Class: Google::Cloud::Compute::V1::Instances::Rest::Client::Configuration

Inherits:
Object
  • Object
show all
Extended by:
Gapic::Config
Defined in:
lib/google/cloud/compute/v1/instances/rest/client.rb

Overview

Configuration class for the Instances REST API.

This class represents the configuration for Instances REST, providing control over timeouts, retry behavior, logging, transport parameters, and other low-level controls. Certain parameters can also be applied individually to specific RPCs. See Rpcs for a list of RPCs that can be configured independently.

Configuration can be applied globally to all clients, or to a single client on construction.

Examples:


# Modify the global config, setting the timeout for
# add_access_config to 20 seconds,
# and all remaining timeouts to 10 seconds.
::Google::Cloud::Compute::V1::Instances::Rest::Client.configure do |config|
  config.timeout = 10.0
  config.rpcs.add_access_config.timeout = 20.0
end

# Apply the above configuration only to a new client.
client = ::Google::Cloud::Compute::V1::Instances::Rest::Client.new do |config|
  config.timeout = 10.0
  config.rpcs.add_access_config.timeout = 20.0
end

Defined Under Namespace

Classes: Rpcs

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#credentials::Object

Credentials to send with calls. You may provide any of the following types:

  • (String) The path to a service account key file in JSON format
  • (Hash) A service account key as a Hash
  • (Google::Auth::Credentials) A googleauth credentials object (see the googleauth docs)
  • (Signet::OAuth2::Client) A signet oauth2 client object (see the signet docs)
  • (nil) indicating no credentials

Returns:

  • (::Object)


4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
# File 'lib/google/cloud/compute/v1/instances/rest/client.rb', line 4867

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "compute.googleapis.com"

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
    allowed.any? { |klass| klass === value }
  end
  config_attr :scope,         nil, ::String, ::Array, nil
  config_attr :lib_name,      nil, ::String, nil
  config_attr :lib_version,   nil, ::String, nil
  config_attr :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil
  config_attr :universe_domain, nil, ::String, nil

  # @private
  def initialize parent_config = nil
    @parent_config = parent_config unless parent_config.nil?

    yield self if block_given?
  end

  ##
  # Configurations for individual RPCs
  # @return [Rpcs]
  #
  def rpcs
    @rpcs ||= begin
      parent_rpcs = nil
      parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
      Rpcs.new parent_rpcs
    end
  end

  ##
  # Configuration RPC class for the Instances API.
  #
  # Includes fields providing the configuration for each RPC in this service.
  # Each configuration object is of type `Gapic::Config::Method` and includes
  # the following configuration fields:
  #
  #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
  #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
  #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
  #     include the following keys:
  #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
  #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
  #      *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `add_access_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :add_access_config
    ##
    # RPC-specific configuration for `add_resource_policies`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :add_resource_policies
    ##
    # RPC-specific configuration for `aggregated_list`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :aggregated_list
    ##
    # RPC-specific configuration for `attach_disk`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :attach_disk
    ##
    # RPC-specific configuration for `bulk_insert`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :bulk_insert
    ##
    # RPC-specific configuration for `delete`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete
    ##
    # RPC-specific configuration for `delete_access_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_access_config
    ##
    # RPC-specific configuration for `detach_disk`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :detach_disk
    ##
    # RPC-specific configuration for `get`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get
    ##
    # RPC-specific configuration for `get_effective_firewalls`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_effective_firewalls
    ##
    # RPC-specific configuration for `get_guest_attributes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_guest_attributes
    ##
    # RPC-specific configuration for `get_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_iam_policy
    ##
    # RPC-specific configuration for `get_screenshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_screenshot
    ##
    # RPC-specific configuration for `get_serial_port_output`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_serial_port_output
    ##
    # RPC-specific configuration for `get_shielded_instance_identity`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_shielded_instance_identity
    ##
    # RPC-specific configuration for `insert`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :insert
    ##
    # RPC-specific configuration for `list`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list
    ##
    # RPC-specific configuration for `list_referrers`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_referrers
    ##
    # RPC-specific configuration for `perform_maintenance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :perform_maintenance
    ##
    # RPC-specific configuration for `remove_resource_policies`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :remove_resource_policies
    ##
    # RPC-specific configuration for `reset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :reset
    ##
    # RPC-specific configuration for `resume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :resume
    ##
    # RPC-specific configuration for `send_diagnostic_interrupt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :send_diagnostic_interrupt
    ##
    # RPC-specific configuration for `set_deletion_protection`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_deletion_protection
    ##
    # RPC-specific configuration for `set_disk_auto_delete`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_disk_auto_delete
    ##
    # RPC-specific configuration for `set_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_iam_policy
    ##
    # RPC-specific configuration for `set_labels`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_labels
    ##
    # RPC-specific configuration for `set_machine_resources`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_machine_resources
    ##
    # RPC-specific configuration for `set_machine_type`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_machine_type
    ##
    # RPC-specific configuration for `set_metadata`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_metadata
    ##
    # RPC-specific configuration for `set_min_cpu_platform`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_min_cpu_platform
    ##
    # RPC-specific configuration for `set_name`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_name
    ##
    # RPC-specific configuration for `set_scheduling`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_scheduling
    ##
    # RPC-specific configuration for `set_security_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_security_policy
    ##
    # RPC-specific configuration for `set_service_account`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_service_account
    ##
    # RPC-specific configuration for `set_shielded_instance_integrity_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_shielded_instance_integrity_policy
    ##
    # RPC-specific configuration for `set_tags`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_tags
    ##
    # RPC-specific configuration for `simulate_maintenance_event`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :simulate_maintenance_event
    ##
    # RPC-specific configuration for `start`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :start
    ##
    # RPC-specific configuration for `start_with_encryption_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :start_with_encryption_key
    ##
    # RPC-specific configuration for `stop`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :stop
    ##
    # RPC-specific configuration for `suspend`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :suspend
    ##
    # RPC-specific configuration for `test_iam_permissions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :test_iam_permissions
    ##
    # RPC-specific configuration for `update`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update
    ##
    # RPC-specific configuration for `update_access_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_access_config
    ##
    # RPC-specific configuration for `update_display_device`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_display_device
    ##
    # RPC-specific configuration for `update_network_interface`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_network_interface
    ##
    # RPC-specific configuration for `update_shielded_instance_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_shielded_instance_config

    # @private
    def initialize parent_rpcs = nil
      add_access_config_config = parent_rpcs.add_access_config if parent_rpcs.respond_to? :add_access_config
      @add_access_config = ::Gapic::Config::Method.new add_access_config_config
      add_resource_policies_config = parent_rpcs.add_resource_policies if parent_rpcs.respond_to? :add_resource_policies
      @add_resource_policies = ::Gapic::Config::Method.new add_resource_policies_config
      aggregated_list_config = parent_rpcs.aggregated_list if parent_rpcs.respond_to? :aggregated_list
      @aggregated_list = ::Gapic::Config::Method.new aggregated_list_config
      attach_disk_config = parent_rpcs.attach_disk if parent_rpcs.respond_to? :attach_disk
      @attach_disk = ::Gapic::Config::Method.new attach_disk_config
      bulk_insert_config = parent_rpcs.bulk_insert if parent_rpcs.respond_to? :bulk_insert
      @bulk_insert = ::Gapic::Config::Method.new bulk_insert_config
      delete_config = parent_rpcs.delete if parent_rpcs.respond_to? :delete
      @delete = ::Gapic::Config::Method.new delete_config
      delete_access_config_config = parent_rpcs.delete_access_config if parent_rpcs.respond_to? :delete_access_config
      @delete_access_config = ::Gapic::Config::Method.new delete_access_config_config
      detach_disk_config = parent_rpcs.detach_disk if parent_rpcs.respond_to? :detach_disk
      @detach_disk = ::Gapic::Config::Method.new detach_disk_config
      get_config = parent_rpcs.get if parent_rpcs.respond_to? :get
      @get = ::Gapic::Config::Method.new get_config
      get_effective_firewalls_config = parent_rpcs.get_effective_firewalls if parent_rpcs.respond_to? :get_effective_firewalls
      @get_effective_firewalls = ::Gapic::Config::Method.new get_effective_firewalls_config
      get_guest_attributes_config = parent_rpcs.get_guest_attributes if parent_rpcs.respond_to? :get_guest_attributes
      @get_guest_attributes = ::Gapic::Config::Method.new get_guest_attributes_config
      get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
      @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
      get_screenshot_config = parent_rpcs.get_screenshot if parent_rpcs.respond_to? :get_screenshot
      @get_screenshot = ::Gapic::Config::Method.new get_screenshot_config
      get_serial_port_output_config = parent_rpcs.get_serial_port_output if parent_rpcs.respond_to? :get_serial_port_output
      @get_serial_port_output = ::Gapic::Config::Method.new get_serial_port_output_config
      get_shielded_instance_identity_config = parent_rpcs.get_shielded_instance_identity if parent_rpcs.respond_to? :get_shielded_instance_identity
      @get_shielded_instance_identity = ::Gapic::Config::Method.new get_shielded_instance_identity_config
      insert_config = parent_rpcs.insert if parent_rpcs.respond_to? :insert
      @insert = ::Gapic::Config::Method.new insert_config
      list_config = parent_rpcs.list if parent_rpcs.respond_to? :list
      @list = ::Gapic::Config::Method.new list_config
      list_referrers_config = parent_rpcs.list_referrers if parent_rpcs.respond_to? :list_referrers
      @list_referrers = ::Gapic::Config::Method.new list_referrers_config
      perform_maintenance_config = parent_rpcs.perform_maintenance if parent_rpcs.respond_to? :perform_maintenance
      @perform_maintenance = ::Gapic::Config::Method.new perform_maintenance_config
      remove_resource_policies_config = parent_rpcs.remove_resource_policies if parent_rpcs.respond_to? :remove_resource_policies
      @remove_resource_policies = ::Gapic::Config::Method.new remove_resource_policies_config
      reset_config = parent_rpcs.reset if parent_rpcs.respond_to? :reset
      @reset = ::Gapic::Config::Method.new reset_config
      resume_config = parent_rpcs.resume if parent_rpcs.respond_to? :resume
      @resume = ::Gapic::Config::Method.new resume_config
      send_diagnostic_interrupt_config = parent_rpcs.send_diagnostic_interrupt if parent_rpcs.respond_to? :send_diagnostic_interrupt
      @send_diagnostic_interrupt = ::Gapic::Config::Method.new send_diagnostic_interrupt_config
      set_deletion_protection_config = parent_rpcs.set_deletion_protection if parent_rpcs.respond_to? :set_deletion_protection
      @set_deletion_protection = ::Gapic::Config::Method.new set_deletion_protection_config
      set_disk_auto_delete_config = parent_rpcs.set_disk_auto_delete if parent_rpcs.respond_to? :set_disk_auto_delete
      @set_disk_auto_delete = ::Gapic::Config::Method.new set_disk_auto_delete_config
      set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
      @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
      set_labels_config = parent_rpcs.set_labels if parent_rpcs.respond_to? :set_labels
      @set_labels = ::Gapic::Config::Method.new set_labels_config
      set_machine_resources_config = parent_rpcs.set_machine_resources if parent_rpcs.respond_to? :set_machine_resources
      @set_machine_resources = ::Gapic::Config::Method.new set_machine_resources_config
      set_machine_type_config = parent_rpcs.set_machine_type if parent_rpcs.respond_to? :set_machine_type
      @set_machine_type = ::Gapic::Config::Method.new set_machine_type_config
       = parent_rpcs. if parent_rpcs.respond_to? :set_metadata
      @set_metadata = ::Gapic::Config::Method.new 
      set_min_cpu_platform_config = parent_rpcs.set_min_cpu_platform if parent_rpcs.respond_to? :set_min_cpu_platform
      @set_min_cpu_platform = ::Gapic::Config::Method.new set_min_cpu_platform_config
      set_name_config = parent_rpcs.set_name if parent_rpcs.respond_to? :set_name
      @set_name = ::Gapic::Config::Method.new set_name_config
      set_scheduling_config = parent_rpcs.set_scheduling if parent_rpcs.respond_to? :set_scheduling
      @set_scheduling = ::Gapic::Config::Method.new set_scheduling_config
      set_security_policy_config = parent_rpcs.set_security_policy if parent_rpcs.respond_to? :set_security_policy
      @set_security_policy = ::Gapic::Config::Method.new set_security_policy_config
       = parent_rpcs. if parent_rpcs.respond_to? :set_service_account
      @set_service_account = ::Gapic::Config::Method.new 
      set_shielded_instance_integrity_policy_config = parent_rpcs.set_shielded_instance_integrity_policy if parent_rpcs.respond_to? :set_shielded_instance_integrity_policy
      @set_shielded_instance_integrity_policy = ::Gapic::Config::Method.new set_shielded_instance_integrity_policy_config
      set_tags_config = parent_rpcs.set_tags if parent_rpcs.respond_to? :set_tags
      @set_tags = ::Gapic::Config::Method.new set_tags_config
      simulate_maintenance_event_config = parent_rpcs.simulate_maintenance_event if parent_rpcs.respond_to? :simulate_maintenance_event
      @simulate_maintenance_event = ::Gapic::Config::Method.new simulate_maintenance_event_config
      start_config = parent_rpcs.start if parent_rpcs.respond_to? :start
      @start = ::Gapic::Config::Method.new start_config
      start_with_encryption_key_config = parent_rpcs.start_with_encryption_key if parent_rpcs.respond_to? :start_with_encryption_key
      @start_with_encryption_key = ::Gapic::Config::Method.new start_with_encryption_key_config
      stop_config = parent_rpcs.stop if parent_rpcs.respond_to? :stop
      @stop = ::Gapic::Config::Method.new stop_config
      suspend_config = parent_rpcs.suspend if parent_rpcs.respond_to? :suspend
      @suspend = ::Gapic::Config::Method.new suspend_config
      test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
      @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
      update_config = parent_rpcs.update if parent_rpcs.respond_to? :update
      @update = ::Gapic::Config::Method.new update_config
      update_access_config_config = parent_rpcs.update_access_config if parent_rpcs.respond_to? :update_access_config
      @update_access_config = ::Gapic::Config::Method.new update_access_config_config
      update_display_device_config = parent_rpcs.update_display_device if parent_rpcs.respond_to? :update_display_device
      @update_display_device = ::Gapic::Config::Method.new update_display_device_config
      update_network_interface_config = parent_rpcs.update_network_interface if parent_rpcs.respond_to? :update_network_interface
      @update_network_interface = ::Gapic::Config::Method.new update_network_interface_config
      update_shielded_instance_config_config = parent_rpcs.update_shielded_instance_config if parent_rpcs.respond_to? :update_shielded_instance_config
      @update_shielded_instance_config = ::Gapic::Config::Method.new update_shielded_instance_config_config

      yield self if block_given?
    end
  end
end

#endpoint::String?

A custom service endpoint, as a hostname or hostname:port. The default is nil, indicating to use the default endpoint in the current universe domain.

Returns:

  • (::String, nil)


4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
# File 'lib/google/cloud/compute/v1/instances/rest/client.rb', line 4867

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "compute.googleapis.com"

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
    allowed.any? { |klass| klass === value }
  end
  config_attr :scope,         nil, ::String, ::Array, nil
  config_attr :lib_name,      nil, ::String, nil
  config_attr :lib_version,   nil, ::String, nil
  config_attr :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil
  config_attr :universe_domain, nil, ::String, nil

  # @private
  def initialize parent_config = nil
    @parent_config = parent_config unless parent_config.nil?

    yield self if block_given?
  end

  ##
  # Configurations for individual RPCs
  # @return [Rpcs]
  #
  def rpcs
    @rpcs ||= begin
      parent_rpcs = nil
      parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
      Rpcs.new parent_rpcs
    end
  end

  ##
  # Configuration RPC class for the Instances API.
  #
  # Includes fields providing the configuration for each RPC in this service.
  # Each configuration object is of type `Gapic::Config::Method` and includes
  # the following configuration fields:
  #
  #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
  #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
  #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
  #     include the following keys:
  #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
  #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
  #      *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `add_access_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :add_access_config
    ##
    # RPC-specific configuration for `add_resource_policies`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :add_resource_policies
    ##
    # RPC-specific configuration for `aggregated_list`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :aggregated_list
    ##
    # RPC-specific configuration for `attach_disk`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :attach_disk
    ##
    # RPC-specific configuration for `bulk_insert`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :bulk_insert
    ##
    # RPC-specific configuration for `delete`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete
    ##
    # RPC-specific configuration for `delete_access_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_access_config
    ##
    # RPC-specific configuration for `detach_disk`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :detach_disk
    ##
    # RPC-specific configuration for `get`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get
    ##
    # RPC-specific configuration for `get_effective_firewalls`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_effective_firewalls
    ##
    # RPC-specific configuration for `get_guest_attributes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_guest_attributes
    ##
    # RPC-specific configuration for `get_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_iam_policy
    ##
    # RPC-specific configuration for `get_screenshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_screenshot
    ##
    # RPC-specific configuration for `get_serial_port_output`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_serial_port_output
    ##
    # RPC-specific configuration for `get_shielded_instance_identity`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_shielded_instance_identity
    ##
    # RPC-specific configuration for `insert`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :insert
    ##
    # RPC-specific configuration for `list`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list
    ##
    # RPC-specific configuration for `list_referrers`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_referrers
    ##
    # RPC-specific configuration for `perform_maintenance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :perform_maintenance
    ##
    # RPC-specific configuration for `remove_resource_policies`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :remove_resource_policies
    ##
    # RPC-specific configuration for `reset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :reset
    ##
    # RPC-specific configuration for `resume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :resume
    ##
    # RPC-specific configuration for `send_diagnostic_interrupt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :send_diagnostic_interrupt
    ##
    # RPC-specific configuration for `set_deletion_protection`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_deletion_protection
    ##
    # RPC-specific configuration for `set_disk_auto_delete`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_disk_auto_delete
    ##
    # RPC-specific configuration for `set_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_iam_policy
    ##
    # RPC-specific configuration for `set_labels`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_labels
    ##
    # RPC-specific configuration for `set_machine_resources`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_machine_resources
    ##
    # RPC-specific configuration for `set_machine_type`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_machine_type
    ##
    # RPC-specific configuration for `set_metadata`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_metadata
    ##
    # RPC-specific configuration for `set_min_cpu_platform`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_min_cpu_platform
    ##
    # RPC-specific configuration for `set_name`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_name
    ##
    # RPC-specific configuration for `set_scheduling`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_scheduling
    ##
    # RPC-specific configuration for `set_security_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_security_policy
    ##
    # RPC-specific configuration for `set_service_account`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_service_account
    ##
    # RPC-specific configuration for `set_shielded_instance_integrity_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_shielded_instance_integrity_policy
    ##
    # RPC-specific configuration for `set_tags`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_tags
    ##
    # RPC-specific configuration for `simulate_maintenance_event`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :simulate_maintenance_event
    ##
    # RPC-specific configuration for `start`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :start
    ##
    # RPC-specific configuration for `start_with_encryption_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :start_with_encryption_key
    ##
    # RPC-specific configuration for `stop`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :stop
    ##
    # RPC-specific configuration for `suspend`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :suspend
    ##
    # RPC-specific configuration for `test_iam_permissions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :test_iam_permissions
    ##
    # RPC-specific configuration for `update`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update
    ##
    # RPC-specific configuration for `update_access_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_access_config
    ##
    # RPC-specific configuration for `update_display_device`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_display_device
    ##
    # RPC-specific configuration for `update_network_interface`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_network_interface
    ##
    # RPC-specific configuration for `update_shielded_instance_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_shielded_instance_config

    # @private
    def initialize parent_rpcs = nil
      add_access_config_config = parent_rpcs.add_access_config if parent_rpcs.respond_to? :add_access_config
      @add_access_config = ::Gapic::Config::Method.new add_access_config_config
      add_resource_policies_config = parent_rpcs.add_resource_policies if parent_rpcs.respond_to? :add_resource_policies
      @add_resource_policies = ::Gapic::Config::Method.new add_resource_policies_config
      aggregated_list_config = parent_rpcs.aggregated_list if parent_rpcs.respond_to? :aggregated_list
      @aggregated_list = ::Gapic::Config::Method.new aggregated_list_config
      attach_disk_config = parent_rpcs.attach_disk if parent_rpcs.respond_to? :attach_disk
      @attach_disk = ::Gapic::Config::Method.new attach_disk_config
      bulk_insert_config = parent_rpcs.bulk_insert if parent_rpcs.respond_to? :bulk_insert
      @bulk_insert = ::Gapic::Config::Method.new bulk_insert_config
      delete_config = parent_rpcs.delete if parent_rpcs.respond_to? :delete
      @delete = ::Gapic::Config::Method.new delete_config
      delete_access_config_config = parent_rpcs.delete_access_config if parent_rpcs.respond_to? :delete_access_config
      @delete_access_config = ::Gapic::Config::Method.new delete_access_config_config
      detach_disk_config = parent_rpcs.detach_disk if parent_rpcs.respond_to? :detach_disk
      @detach_disk = ::Gapic::Config::Method.new detach_disk_config
      get_config = parent_rpcs.get if parent_rpcs.respond_to? :get
      @get = ::Gapic::Config::Method.new get_config
      get_effective_firewalls_config = parent_rpcs.get_effective_firewalls if parent_rpcs.respond_to? :get_effective_firewalls
      @get_effective_firewalls = ::Gapic::Config::Method.new get_effective_firewalls_config
      get_guest_attributes_config = parent_rpcs.get_guest_attributes if parent_rpcs.respond_to? :get_guest_attributes
      @get_guest_attributes = ::Gapic::Config::Method.new get_guest_attributes_config
      get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
      @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
      get_screenshot_config = parent_rpcs.get_screenshot if parent_rpcs.respond_to? :get_screenshot
      @get_screenshot = ::Gapic::Config::Method.new get_screenshot_config
      get_serial_port_output_config = parent_rpcs.get_serial_port_output if parent_rpcs.respond_to? :get_serial_port_output
      @get_serial_port_output = ::Gapic::Config::Method.new get_serial_port_output_config
      get_shielded_instance_identity_config = parent_rpcs.get_shielded_instance_identity if parent_rpcs.respond_to? :get_shielded_instance_identity
      @get_shielded_instance_identity = ::Gapic::Config::Method.new get_shielded_instance_identity_config
      insert_config = parent_rpcs.insert if parent_rpcs.respond_to? :insert
      @insert = ::Gapic::Config::Method.new insert_config
      list_config = parent_rpcs.list if parent_rpcs.respond_to? :list
      @list = ::Gapic::Config::Method.new list_config
      list_referrers_config = parent_rpcs.list_referrers if parent_rpcs.respond_to? :list_referrers
      @list_referrers = ::Gapic::Config::Method.new list_referrers_config
      perform_maintenance_config = parent_rpcs.perform_maintenance if parent_rpcs.respond_to? :perform_maintenance
      @perform_maintenance = ::Gapic::Config::Method.new perform_maintenance_config
      remove_resource_policies_config = parent_rpcs.remove_resource_policies if parent_rpcs.respond_to? :remove_resource_policies
      @remove_resource_policies = ::Gapic::Config::Method.new remove_resource_policies_config
      reset_config = parent_rpcs.reset if parent_rpcs.respond_to? :reset
      @reset = ::Gapic::Config::Method.new reset_config
      resume_config = parent_rpcs.resume if parent_rpcs.respond_to? :resume
      @resume = ::Gapic::Config::Method.new resume_config
      send_diagnostic_interrupt_config = parent_rpcs.send_diagnostic_interrupt if parent_rpcs.respond_to? :send_diagnostic_interrupt
      @send_diagnostic_interrupt = ::Gapic::Config::Method.new send_diagnostic_interrupt_config
      set_deletion_protection_config = parent_rpcs.set_deletion_protection if parent_rpcs.respond_to? :set_deletion_protection
      @set_deletion_protection = ::Gapic::Config::Method.new set_deletion_protection_config
      set_disk_auto_delete_config = parent_rpcs.set_disk_auto_delete if parent_rpcs.respond_to? :set_disk_auto_delete
      @set_disk_auto_delete = ::Gapic::Config::Method.new set_disk_auto_delete_config
      set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
      @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
      set_labels_config = parent_rpcs.set_labels if parent_rpcs.respond_to? :set_labels
      @set_labels = ::Gapic::Config::Method.new set_labels_config
      set_machine_resources_config = parent_rpcs.set_machine_resources if parent_rpcs.respond_to? :set_machine_resources
      @set_machine_resources = ::Gapic::Config::Method.new set_machine_resources_config
      set_machine_type_config = parent_rpcs.set_machine_type if parent_rpcs.respond_to? :set_machine_type
      @set_machine_type = ::Gapic::Config::Method.new set_machine_type_config
       = parent_rpcs. if parent_rpcs.respond_to? :set_metadata
      @set_metadata = ::Gapic::Config::Method.new 
      set_min_cpu_platform_config = parent_rpcs.set_min_cpu_platform if parent_rpcs.respond_to? :set_min_cpu_platform
      @set_min_cpu_platform = ::Gapic::Config::Method.new set_min_cpu_platform_config
      set_name_config = parent_rpcs.set_name if parent_rpcs.respond_to? :set_name
      @set_name = ::Gapic::Config::Method.new set_name_config
      set_scheduling_config = parent_rpcs.set_scheduling if parent_rpcs.respond_to? :set_scheduling
      @set_scheduling = ::Gapic::Config::Method.new set_scheduling_config
      set_security_policy_config = parent_rpcs.set_security_policy if parent_rpcs.respond_to? :set_security_policy
      @set_security_policy = ::Gapic::Config::Method.new set_security_policy_config
       = parent_rpcs. if parent_rpcs.respond_to? :set_service_account
      @set_service_account = ::Gapic::Config::Method.new 
      set_shielded_instance_integrity_policy_config = parent_rpcs.set_shielded_instance_integrity_policy if parent_rpcs.respond_to? :set_shielded_instance_integrity_policy
      @set_shielded_instance_integrity_policy = ::Gapic::Config::Method.new set_shielded_instance_integrity_policy_config
      set_tags_config = parent_rpcs.set_tags if parent_rpcs.respond_to? :set_tags
      @set_tags = ::Gapic::Config::Method.new set_tags_config
      simulate_maintenance_event_config = parent_rpcs.simulate_maintenance_event if parent_rpcs.respond_to? :simulate_maintenance_event
      @simulate_maintenance_event = ::Gapic::Config::Method.new simulate_maintenance_event_config
      start_config = parent_rpcs.start if parent_rpcs.respond_to? :start
      @start = ::Gapic::Config::Method.new start_config
      start_with_encryption_key_config = parent_rpcs.start_with_encryption_key if parent_rpcs.respond_to? :start_with_encryption_key
      @start_with_encryption_key = ::Gapic::Config::Method.new start_with_encryption_key_config
      stop_config = parent_rpcs.stop if parent_rpcs.respond_to? :stop
      @stop = ::Gapic::Config::Method.new stop_config
      suspend_config = parent_rpcs.suspend if parent_rpcs.respond_to? :suspend
      @suspend = ::Gapic::Config::Method.new suspend_config
      test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
      @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
      update_config = parent_rpcs.update if parent_rpcs.respond_to? :update
      @update = ::Gapic::Config::Method.new update_config
      update_access_config_config = parent_rpcs.update_access_config if parent_rpcs.respond_to? :update_access_config
      @update_access_config = ::Gapic::Config::Method.new update_access_config_config
      update_display_device_config = parent_rpcs.update_display_device if parent_rpcs.respond_to? :update_display_device
      @update_display_device = ::Gapic::Config::Method.new update_display_device_config
      update_network_interface_config = parent_rpcs.update_network_interface if parent_rpcs.respond_to? :update_network_interface
      @update_network_interface = ::Gapic::Config::Method.new update_network_interface_config
      update_shielded_instance_config_config = parent_rpcs.update_shielded_instance_config if parent_rpcs.respond_to? :update_shielded_instance_config
      @update_shielded_instance_config = ::Gapic::Config::Method.new update_shielded_instance_config_config

      yield self if block_given?
    end
  end
end

#lib_name::String

The library name as recorded in instrumentation and logging

Returns:

  • (::String)


4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
# File 'lib/google/cloud/compute/v1/instances/rest/client.rb', line 4867

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "compute.googleapis.com"

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
    allowed.any? { |klass| klass === value }
  end
  config_attr :scope,         nil, ::String, ::Array, nil
  config_attr :lib_name,      nil, ::String, nil
  config_attr :lib_version,   nil, ::String, nil
  config_attr :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil
  config_attr :universe_domain, nil, ::String, nil

  # @private
  def initialize parent_config = nil
    @parent_config = parent_config unless parent_config.nil?

    yield self if block_given?
  end

  ##
  # Configurations for individual RPCs
  # @return [Rpcs]
  #
  def rpcs
    @rpcs ||= begin
      parent_rpcs = nil
      parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
      Rpcs.new parent_rpcs
    end
  end

  ##
  # Configuration RPC class for the Instances API.
  #
  # Includes fields providing the configuration for each RPC in this service.
  # Each configuration object is of type `Gapic::Config::Method` and includes
  # the following configuration fields:
  #
  #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
  #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
  #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
  #     include the following keys:
  #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
  #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
  #      *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `add_access_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :add_access_config
    ##
    # RPC-specific configuration for `add_resource_policies`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :add_resource_policies
    ##
    # RPC-specific configuration for `aggregated_list`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :aggregated_list
    ##
    # RPC-specific configuration for `attach_disk`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :attach_disk
    ##
    # RPC-specific configuration for `bulk_insert`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :bulk_insert
    ##
    # RPC-specific configuration for `delete`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete
    ##
    # RPC-specific configuration for `delete_access_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_access_config
    ##
    # RPC-specific configuration for `detach_disk`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :detach_disk
    ##
    # RPC-specific configuration for `get`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get
    ##
    # RPC-specific configuration for `get_effective_firewalls`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_effective_firewalls
    ##
    # RPC-specific configuration for `get_guest_attributes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_guest_attributes
    ##
    # RPC-specific configuration for `get_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_iam_policy
    ##
    # RPC-specific configuration for `get_screenshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_screenshot
    ##
    # RPC-specific configuration for `get_serial_port_output`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_serial_port_output
    ##
    # RPC-specific configuration for `get_shielded_instance_identity`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_shielded_instance_identity
    ##
    # RPC-specific configuration for `insert`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :insert
    ##
    # RPC-specific configuration for `list`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list
    ##
    # RPC-specific configuration for `list_referrers`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_referrers
    ##
    # RPC-specific configuration for `perform_maintenance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :perform_maintenance
    ##
    # RPC-specific configuration for `remove_resource_policies`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :remove_resource_policies
    ##
    # RPC-specific configuration for `reset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :reset
    ##
    # RPC-specific configuration for `resume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :resume
    ##
    # RPC-specific configuration for `send_diagnostic_interrupt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :send_diagnostic_interrupt
    ##
    # RPC-specific configuration for `set_deletion_protection`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_deletion_protection
    ##
    # RPC-specific configuration for `set_disk_auto_delete`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_disk_auto_delete
    ##
    # RPC-specific configuration for `set_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_iam_policy
    ##
    # RPC-specific configuration for `set_labels`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_labels
    ##
    # RPC-specific configuration for `set_machine_resources`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_machine_resources
    ##
    # RPC-specific configuration for `set_machine_type`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_machine_type
    ##
    # RPC-specific configuration for `set_metadata`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_metadata
    ##
    # RPC-specific configuration for `set_min_cpu_platform`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_min_cpu_platform
    ##
    # RPC-specific configuration for `set_name`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_name
    ##
    # RPC-specific configuration for `set_scheduling`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_scheduling
    ##
    # RPC-specific configuration for `set_security_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_security_policy
    ##
    # RPC-specific configuration for `set_service_account`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_service_account
    ##
    # RPC-specific configuration for `set_shielded_instance_integrity_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_shielded_instance_integrity_policy
    ##
    # RPC-specific configuration for `set_tags`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_tags
    ##
    # RPC-specific configuration for `simulate_maintenance_event`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :simulate_maintenance_event
    ##
    # RPC-specific configuration for `start`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :start
    ##
    # RPC-specific configuration for `start_with_encryption_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :start_with_encryption_key
    ##
    # RPC-specific configuration for `stop`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :stop
    ##
    # RPC-specific configuration for `suspend`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :suspend
    ##
    # RPC-specific configuration for `test_iam_permissions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :test_iam_permissions
    ##
    # RPC-specific configuration for `update`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update
    ##
    # RPC-specific configuration for `update_access_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_access_config
    ##
    # RPC-specific configuration for `update_display_device`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_display_device
    ##
    # RPC-specific configuration for `update_network_interface`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_network_interface
    ##
    # RPC-specific configuration for `update_shielded_instance_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_shielded_instance_config

    # @private
    def initialize parent_rpcs = nil
      add_access_config_config = parent_rpcs.add_access_config if parent_rpcs.respond_to? :add_access_config
      @add_access_config = ::Gapic::Config::Method.new add_access_config_config
      add_resource_policies_config = parent_rpcs.add_resource_policies if parent_rpcs.respond_to? :add_resource_policies
      @add_resource_policies = ::Gapic::Config::Method.new add_resource_policies_config
      aggregated_list_config = parent_rpcs.aggregated_list if parent_rpcs.respond_to? :aggregated_list
      @aggregated_list = ::Gapic::Config::Method.new aggregated_list_config
      attach_disk_config = parent_rpcs.attach_disk if parent_rpcs.respond_to? :attach_disk
      @attach_disk = ::Gapic::Config::Method.new attach_disk_config
      bulk_insert_config = parent_rpcs.bulk_insert if parent_rpcs.respond_to? :bulk_insert
      @bulk_insert = ::Gapic::Config::Method.new bulk_insert_config
      delete_config = parent_rpcs.delete if parent_rpcs.respond_to? :delete
      @delete = ::Gapic::Config::Method.new delete_config
      delete_access_config_config = parent_rpcs.delete_access_config if parent_rpcs.respond_to? :delete_access_config
      @delete_access_config = ::Gapic::Config::Method.new delete_access_config_config
      detach_disk_config = parent_rpcs.detach_disk if parent_rpcs.respond_to? :detach_disk
      @detach_disk = ::Gapic::Config::Method.new detach_disk_config
      get_config = parent_rpcs.get if parent_rpcs.respond_to? :get
      @get = ::Gapic::Config::Method.new get_config
      get_effective_firewalls_config = parent_rpcs.get_effective_firewalls if parent_rpcs.respond_to? :get_effective_firewalls
      @get_effective_firewalls = ::Gapic::Config::Method.new get_effective_firewalls_config
      get_guest_attributes_config = parent_rpcs.get_guest_attributes if parent_rpcs.respond_to? :get_guest_attributes
      @get_guest_attributes = ::Gapic::Config::Method.new get_guest_attributes_config
      get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
      @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
      get_screenshot_config = parent_rpcs.get_screenshot if parent_rpcs.respond_to? :get_screenshot
      @get_screenshot = ::Gapic::Config::Method.new get_screenshot_config
      get_serial_port_output_config = parent_rpcs.get_serial_port_output if parent_rpcs.respond_to? :get_serial_port_output
      @get_serial_port_output = ::Gapic::Config::Method.new get_serial_port_output_config
      get_shielded_instance_identity_config = parent_rpcs.get_shielded_instance_identity if parent_rpcs.respond_to? :get_shielded_instance_identity
      @get_shielded_instance_identity = ::Gapic::Config::Method.new get_shielded_instance_identity_config
      insert_config = parent_rpcs.insert if parent_rpcs.respond_to? :insert
      @insert = ::Gapic::Config::Method.new insert_config
      list_config = parent_rpcs.list if parent_rpcs.respond_to? :list
      @list = ::Gapic::Config::Method.new list_config
      list_referrers_config = parent_rpcs.list_referrers if parent_rpcs.respond_to? :list_referrers
      @list_referrers = ::Gapic::Config::Method.new list_referrers_config
      perform_maintenance_config = parent_rpcs.perform_maintenance if parent_rpcs.respond_to? :perform_maintenance
      @perform_maintenance = ::Gapic::Config::Method.new perform_maintenance_config
      remove_resource_policies_config = parent_rpcs.remove_resource_policies if parent_rpcs.respond_to? :remove_resource_policies
      @remove_resource_policies = ::Gapic::Config::Method.new remove_resource_policies_config
      reset_config = parent_rpcs.reset if parent_rpcs.respond_to? :reset
      @reset = ::Gapic::Config::Method.new reset_config
      resume_config = parent_rpcs.resume if parent_rpcs.respond_to? :resume
      @resume = ::Gapic::Config::Method.new resume_config
      send_diagnostic_interrupt_config = parent_rpcs.send_diagnostic_interrupt if parent_rpcs.respond_to? :send_diagnostic_interrupt
      @send_diagnostic_interrupt = ::Gapic::Config::Method.new send_diagnostic_interrupt_config
      set_deletion_protection_config = parent_rpcs.set_deletion_protection if parent_rpcs.respond_to? :set_deletion_protection
      @set_deletion_protection = ::Gapic::Config::Method.new set_deletion_protection_config
      set_disk_auto_delete_config = parent_rpcs.set_disk_auto_delete if parent_rpcs.respond_to? :set_disk_auto_delete
      @set_disk_auto_delete = ::Gapic::Config::Method.new set_disk_auto_delete_config
      set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
      @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
      set_labels_config = parent_rpcs.set_labels if parent_rpcs.respond_to? :set_labels
      @set_labels = ::Gapic::Config::Method.new set_labels_config
      set_machine_resources_config = parent_rpcs.set_machine_resources if parent_rpcs.respond_to? :set_machine_resources
      @set_machine_resources = ::Gapic::Config::Method.new set_machine_resources_config
      set_machine_type_config = parent_rpcs.set_machine_type if parent_rpcs.respond_to? :set_machine_type
      @set_machine_type = ::Gapic::Config::Method.new set_machine_type_config
       = parent_rpcs. if parent_rpcs.respond_to? :set_metadata
      @set_metadata = ::Gapic::Config::Method.new 
      set_min_cpu_platform_config = parent_rpcs.set_min_cpu_platform if parent_rpcs.respond_to? :set_min_cpu_platform
      @set_min_cpu_platform = ::Gapic::Config::Method.new set_min_cpu_platform_config
      set_name_config = parent_rpcs.set_name if parent_rpcs.respond_to? :set_name
      @set_name = ::Gapic::Config::Method.new set_name_config
      set_scheduling_config = parent_rpcs.set_scheduling if parent_rpcs.respond_to? :set_scheduling
      @set_scheduling = ::Gapic::Config::Method.new set_scheduling_config
      set_security_policy_config = parent_rpcs.set_security_policy if parent_rpcs.respond_to? :set_security_policy
      @set_security_policy = ::Gapic::Config::Method.new set_security_policy_config
       = parent_rpcs. if parent_rpcs.respond_to? :set_service_account
      @set_service_account = ::Gapic::Config::Method.new 
      set_shielded_instance_integrity_policy_config = parent_rpcs.set_shielded_instance_integrity_policy if parent_rpcs.respond_to? :set_shielded_instance_integrity_policy
      @set_shielded_instance_integrity_policy = ::Gapic::Config::Method.new set_shielded_instance_integrity_policy_config
      set_tags_config = parent_rpcs.set_tags if parent_rpcs.respond_to? :set_tags
      @set_tags = ::Gapic::Config::Method.new set_tags_config
      simulate_maintenance_event_config = parent_rpcs.simulate_maintenance_event if parent_rpcs.respond_to? :simulate_maintenance_event
      @simulate_maintenance_event = ::Gapic::Config::Method.new simulate_maintenance_event_config
      start_config = parent_rpcs.start if parent_rpcs.respond_to? :start
      @start = ::Gapic::Config::Method.new start_config
      start_with_encryption_key_config = parent_rpcs.start_with_encryption_key if parent_rpcs.respond_to? :start_with_encryption_key
      @start_with_encryption_key = ::Gapic::Config::Method.new start_with_encryption_key_config
      stop_config = parent_rpcs.stop if parent_rpcs.respond_to? :stop
      @stop = ::Gapic::Config::Method.new stop_config
      suspend_config = parent_rpcs.suspend if parent_rpcs.respond_to? :suspend
      @suspend = ::Gapic::Config::Method.new suspend_config
      test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
      @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
      update_config = parent_rpcs.update if parent_rpcs.respond_to? :update
      @update = ::Gapic::Config::Method.new update_config
      update_access_config_config = parent_rpcs.update_access_config if parent_rpcs.respond_to? :update_access_config
      @update_access_config = ::Gapic::Config::Method.new update_access_config_config
      update_display_device_config = parent_rpcs.update_display_device if parent_rpcs.respond_to? :update_display_device
      @update_display_device = ::Gapic::Config::Method.new update_display_device_config
      update_network_interface_config = parent_rpcs.update_network_interface if parent_rpcs.respond_to? :update_network_interface
      @update_network_interface = ::Gapic::Config::Method.new update_network_interface_config
      update_shielded_instance_config_config = parent_rpcs.update_shielded_instance_config if parent_rpcs.respond_to? :update_shielded_instance_config
      @update_shielded_instance_config = ::Gapic::Config::Method.new update_shielded_instance_config_config

      yield self if block_given?
    end
  end
end

#lib_version::String

The library version as recorded in instrumentation and logging

Returns:

  • (::String)


4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
# File 'lib/google/cloud/compute/v1/instances/rest/client.rb', line 4867

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "compute.googleapis.com"

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
    allowed.any? { |klass| klass === value }
  end
  config_attr :scope,         nil, ::String, ::Array, nil
  config_attr :lib_name,      nil, ::String, nil
  config_attr :lib_version,   nil, ::String, nil
  config_attr :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil
  config_attr :universe_domain, nil, ::String, nil

  # @private
  def initialize parent_config = nil
    @parent_config = parent_config unless parent_config.nil?

    yield self if block_given?
  end

  ##
  # Configurations for individual RPCs
  # @return [Rpcs]
  #
  def rpcs
    @rpcs ||= begin
      parent_rpcs = nil
      parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
      Rpcs.new parent_rpcs
    end
  end

  ##
  # Configuration RPC class for the Instances API.
  #
  # Includes fields providing the configuration for each RPC in this service.
  # Each configuration object is of type `Gapic::Config::Method` and includes
  # the following configuration fields:
  #
  #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
  #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
  #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
  #     include the following keys:
  #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
  #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
  #      *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `add_access_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :add_access_config
    ##
    # RPC-specific configuration for `add_resource_policies`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :add_resource_policies
    ##
    # RPC-specific configuration for `aggregated_list`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :aggregated_list
    ##
    # RPC-specific configuration for `attach_disk`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :attach_disk
    ##
    # RPC-specific configuration for `bulk_insert`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :bulk_insert
    ##
    # RPC-specific configuration for `delete`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete
    ##
    # RPC-specific configuration for `delete_access_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_access_config
    ##
    # RPC-specific configuration for `detach_disk`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :detach_disk
    ##
    # RPC-specific configuration for `get`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get
    ##
    # RPC-specific configuration for `get_effective_firewalls`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_effective_firewalls
    ##
    # RPC-specific configuration for `get_guest_attributes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_guest_attributes
    ##
    # RPC-specific configuration for `get_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_iam_policy
    ##
    # RPC-specific configuration for `get_screenshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_screenshot
    ##
    # RPC-specific configuration for `get_serial_port_output`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_serial_port_output
    ##
    # RPC-specific configuration for `get_shielded_instance_identity`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_shielded_instance_identity
    ##
    # RPC-specific configuration for `insert`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :insert
    ##
    # RPC-specific configuration for `list`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list
    ##
    # RPC-specific configuration for `list_referrers`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_referrers
    ##
    # RPC-specific configuration for `perform_maintenance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :perform_maintenance
    ##
    # RPC-specific configuration for `remove_resource_policies`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :remove_resource_policies
    ##
    # RPC-specific configuration for `reset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :reset
    ##
    # RPC-specific configuration for `resume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :resume
    ##
    # RPC-specific configuration for `send_diagnostic_interrupt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :send_diagnostic_interrupt
    ##
    # RPC-specific configuration for `set_deletion_protection`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_deletion_protection
    ##
    # RPC-specific configuration for `set_disk_auto_delete`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_disk_auto_delete
    ##
    # RPC-specific configuration for `set_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_iam_policy
    ##
    # RPC-specific configuration for `set_labels`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_labels
    ##
    # RPC-specific configuration for `set_machine_resources`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_machine_resources
    ##
    # RPC-specific configuration for `set_machine_type`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_machine_type
    ##
    # RPC-specific configuration for `set_metadata`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_metadata
    ##
    # RPC-specific configuration for `set_min_cpu_platform`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_min_cpu_platform
    ##
    # RPC-specific configuration for `set_name`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_name
    ##
    # RPC-specific configuration for `set_scheduling`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_scheduling
    ##
    # RPC-specific configuration for `set_security_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_security_policy
    ##
    # RPC-specific configuration for `set_service_account`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_service_account
    ##
    # RPC-specific configuration for `set_shielded_instance_integrity_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_shielded_instance_integrity_policy
    ##
    # RPC-specific configuration for `set_tags`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_tags
    ##
    # RPC-specific configuration for `simulate_maintenance_event`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :simulate_maintenance_event
    ##
    # RPC-specific configuration for `start`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :start
    ##
    # RPC-specific configuration for `start_with_encryption_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :start_with_encryption_key
    ##
    # RPC-specific configuration for `stop`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :stop
    ##
    # RPC-specific configuration for `suspend`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :suspend
    ##
    # RPC-specific configuration for `test_iam_permissions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :test_iam_permissions
    ##
    # RPC-specific configuration for `update`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update
    ##
    # RPC-specific configuration for `update_access_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_access_config
    ##
    # RPC-specific configuration for `update_display_device`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_display_device
    ##
    # RPC-specific configuration for `update_network_interface`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_network_interface
    ##
    # RPC-specific configuration for `update_shielded_instance_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_shielded_instance_config

    # @private
    def initialize parent_rpcs = nil
      add_access_config_config = parent_rpcs.add_access_config if parent_rpcs.respond_to? :add_access_config
      @add_access_config = ::Gapic::Config::Method.new add_access_config_config
      add_resource_policies_config = parent_rpcs.add_resource_policies if parent_rpcs.respond_to? :add_resource_policies
      @add_resource_policies = ::Gapic::Config::Method.new add_resource_policies_config
      aggregated_list_config = parent_rpcs.aggregated_list if parent_rpcs.respond_to? :aggregated_list
      @aggregated_list = ::Gapic::Config::Method.new aggregated_list_config
      attach_disk_config = parent_rpcs.attach_disk if parent_rpcs.respond_to? :attach_disk
      @attach_disk = ::Gapic::Config::Method.new attach_disk_config
      bulk_insert_config = parent_rpcs.bulk_insert if parent_rpcs.respond_to? :bulk_insert
      @bulk_insert = ::Gapic::Config::Method.new bulk_insert_config
      delete_config = parent_rpcs.delete if parent_rpcs.respond_to? :delete
      @delete = ::Gapic::Config::Method.new delete_config
      delete_access_config_config = parent_rpcs.delete_access_config if parent_rpcs.respond_to? :delete_access_config
      @delete_access_config = ::Gapic::Config::Method.new delete_access_config_config
      detach_disk_config = parent_rpcs.detach_disk if parent_rpcs.respond_to? :detach_disk
      @detach_disk = ::Gapic::Config::Method.new detach_disk_config
      get_config = parent_rpcs.get if parent_rpcs.respond_to? :get
      @get = ::Gapic::Config::Method.new get_config
      get_effective_firewalls_config = parent_rpcs.get_effective_firewalls if parent_rpcs.respond_to? :get_effective_firewalls
      @get_effective_firewalls = ::Gapic::Config::Method.new get_effective_firewalls_config
      get_guest_attributes_config = parent_rpcs.get_guest_attributes if parent_rpcs.respond_to? :get_guest_attributes
      @get_guest_attributes = ::Gapic::Config::Method.new get_guest_attributes_config
      get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
      @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
      get_screenshot_config = parent_rpcs.get_screenshot if parent_rpcs.respond_to? :get_screenshot
      @get_screenshot = ::Gapic::Config::Method.new get_screenshot_config
      get_serial_port_output_config = parent_rpcs.get_serial_port_output if parent_rpcs.respond_to? :get_serial_port_output
      @get_serial_port_output = ::Gapic::Config::Method.new get_serial_port_output_config
      get_shielded_instance_identity_config = parent_rpcs.get_shielded_instance_identity if parent_rpcs.respond_to? :get_shielded_instance_identity
      @get_shielded_instance_identity = ::Gapic::Config::Method.new get_shielded_instance_identity_config
      insert_config = parent_rpcs.insert if parent_rpcs.respond_to? :insert
      @insert = ::Gapic::Config::Method.new insert_config
      list_config = parent_rpcs.list if parent_rpcs.respond_to? :list
      @list = ::Gapic::Config::Method.new list_config
      list_referrers_config = parent_rpcs.list_referrers if parent_rpcs.respond_to? :list_referrers
      @list_referrers = ::Gapic::Config::Method.new list_referrers_config
      perform_maintenance_config = parent_rpcs.perform_maintenance if parent_rpcs.respond_to? :perform_maintenance
      @perform_maintenance = ::Gapic::Config::Method.new perform_maintenance_config
      remove_resource_policies_config = parent_rpcs.remove_resource_policies if parent_rpcs.respond_to? :remove_resource_policies
      @remove_resource_policies = ::Gapic::Config::Method.new remove_resource_policies_config
      reset_config = parent_rpcs.reset if parent_rpcs.respond_to? :reset
      @reset = ::Gapic::Config::Method.new reset_config
      resume_config = parent_rpcs.resume if parent_rpcs.respond_to? :resume
      @resume = ::Gapic::Config::Method.new resume_config
      send_diagnostic_interrupt_config = parent_rpcs.send_diagnostic_interrupt if parent_rpcs.respond_to? :send_diagnostic_interrupt
      @send_diagnostic_interrupt = ::Gapic::Config::Method.new send_diagnostic_interrupt_config
      set_deletion_protection_config = parent_rpcs.set_deletion_protection if parent_rpcs.respond_to? :set_deletion_protection
      @set_deletion_protection = ::Gapic::Config::Method.new set_deletion_protection_config
      set_disk_auto_delete_config = parent_rpcs.set_disk_auto_delete if parent_rpcs.respond_to? :set_disk_auto_delete
      @set_disk_auto_delete = ::Gapic::Config::Method.new set_disk_auto_delete_config
      set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
      @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
      set_labels_config = parent_rpcs.set_labels if parent_rpcs.respond_to? :set_labels
      @set_labels = ::Gapic::Config::Method.new set_labels_config
      set_machine_resources_config = parent_rpcs.set_machine_resources if parent_rpcs.respond_to? :set_machine_resources
      @set_machine_resources = ::Gapic::Config::Method.new set_machine_resources_config
      set_machine_type_config = parent_rpcs.set_machine_type if parent_rpcs.respond_to? :set_machine_type
      @set_machine_type = ::Gapic::Config::Method.new set_machine_type_config
       = parent_rpcs. if parent_rpcs.respond_to? :set_metadata
      @set_metadata = ::Gapic::Config::Method.new 
      set_min_cpu_platform_config = parent_rpcs.set_min_cpu_platform if parent_rpcs.respond_to? :set_min_cpu_platform
      @set_min_cpu_platform = ::Gapic::Config::Method.new set_min_cpu_platform_config
      set_name_config = parent_rpcs.set_name if parent_rpcs.respond_to? :set_name
      @set_name = ::Gapic::Config::Method.new set_name_config
      set_scheduling_config = parent_rpcs.set_scheduling if parent_rpcs.respond_to? :set_scheduling
      @set_scheduling = ::Gapic::Config::Method.new set_scheduling_config
      set_security_policy_config = parent_rpcs.set_security_policy if parent_rpcs.respond_to? :set_security_policy
      @set_security_policy = ::Gapic::Config::Method.new set_security_policy_config
       = parent_rpcs. if parent_rpcs.respond_to? :set_service_account
      @set_service_account = ::Gapic::Config::Method.new 
      set_shielded_instance_integrity_policy_config = parent_rpcs.set_shielded_instance_integrity_policy if parent_rpcs.respond_to? :set_shielded_instance_integrity_policy
      @set_shielded_instance_integrity_policy = ::Gapic::Config::Method.new set_shielded_instance_integrity_policy_config
      set_tags_config = parent_rpcs.set_tags if parent_rpcs.respond_to? :set_tags
      @set_tags = ::Gapic::Config::Method.new set_tags_config
      simulate_maintenance_event_config = parent_rpcs.simulate_maintenance_event if parent_rpcs.respond_to? :simulate_maintenance_event
      @simulate_maintenance_event = ::Gapic::Config::Method.new simulate_maintenance_event_config
      start_config = parent_rpcs.start if parent_rpcs.respond_to? :start
      @start = ::Gapic::Config::Method.new start_config
      start_with_encryption_key_config = parent_rpcs.start_with_encryption_key if parent_rpcs.respond_to? :start_with_encryption_key
      @start_with_encryption_key = ::Gapic::Config::Method.new start_with_encryption_key_config
      stop_config = parent_rpcs.stop if parent_rpcs.respond_to? :stop
      @stop = ::Gapic::Config::Method.new stop_config
      suspend_config = parent_rpcs.suspend if parent_rpcs.respond_to? :suspend
      @suspend = ::Gapic::Config::Method.new suspend_config
      test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
      @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
      update_config = parent_rpcs.update if parent_rpcs.respond_to? :update
      @update = ::Gapic::Config::Method.new update_config
      update_access_config_config = parent_rpcs.update_access_config if parent_rpcs.respond_to? :update_access_config
      @update_access_config = ::Gapic::Config::Method.new update_access_config_config
      update_display_device_config = parent_rpcs.update_display_device if parent_rpcs.respond_to? :update_display_device
      @update_display_device = ::Gapic::Config::Method.new update_display_device_config
      update_network_interface_config = parent_rpcs.update_network_interface if parent_rpcs.respond_to? :update_network_interface
      @update_network_interface = ::Gapic::Config::Method.new update_network_interface_config
      update_shielded_instance_config_config = parent_rpcs.update_shielded_instance_config if parent_rpcs.respond_to? :update_shielded_instance_config
      @update_shielded_instance_config = ::Gapic::Config::Method.new update_shielded_instance_config_config

      yield self if block_given?
    end
  end
end

#metadata::Hash{::Symbol=>::String}

Additional headers to be sent with the call.

Returns:

  • (::Hash{::Symbol=>::String})


4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
# File 'lib/google/cloud/compute/v1/instances/rest/client.rb', line 4867

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "compute.googleapis.com"

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
    allowed.any? { |klass| klass === value }
  end
  config_attr :scope,         nil, ::String, ::Array, nil
  config_attr :lib_name,      nil, ::String, nil
  config_attr :lib_version,   nil, ::String, nil
  config_attr :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil
  config_attr :universe_domain, nil, ::String, nil

  # @private
  def initialize parent_config = nil
    @parent_config = parent_config unless parent_config.nil?

    yield self if block_given?
  end

  ##
  # Configurations for individual RPCs
  # @return [Rpcs]
  #
  def rpcs
    @rpcs ||= begin
      parent_rpcs = nil
      parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
      Rpcs.new parent_rpcs
    end
  end

  ##
  # Configuration RPC class for the Instances API.
  #
  # Includes fields providing the configuration for each RPC in this service.
  # Each configuration object is of type `Gapic::Config::Method` and includes
  # the following configuration fields:
  #
  #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
  #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
  #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
  #     include the following keys:
  #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
  #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
  #      *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `add_access_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :add_access_config
    ##
    # RPC-specific configuration for `add_resource_policies`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :add_resource_policies
    ##
    # RPC-specific configuration for `aggregated_list`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :aggregated_list
    ##
    # RPC-specific configuration for `attach_disk`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :attach_disk
    ##
    # RPC-specific configuration for `bulk_insert`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :bulk_insert
    ##
    # RPC-specific configuration for `delete`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete
    ##
    # RPC-specific configuration for `delete_access_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_access_config
    ##
    # RPC-specific configuration for `detach_disk`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :detach_disk
    ##
    # RPC-specific configuration for `get`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get
    ##
    # RPC-specific configuration for `get_effective_firewalls`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_effective_firewalls
    ##
    # RPC-specific configuration for `get_guest_attributes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_guest_attributes
    ##
    # RPC-specific configuration for `get_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_iam_policy
    ##
    # RPC-specific configuration for `get_screenshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_screenshot
    ##
    # RPC-specific configuration for `get_serial_port_output`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_serial_port_output
    ##
    # RPC-specific configuration for `get_shielded_instance_identity`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_shielded_instance_identity
    ##
    # RPC-specific configuration for `insert`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :insert
    ##
    # RPC-specific configuration for `list`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list
    ##
    # RPC-specific configuration for `list_referrers`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_referrers
    ##
    # RPC-specific configuration for `perform_maintenance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :perform_maintenance
    ##
    # RPC-specific configuration for `remove_resource_policies`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :remove_resource_policies
    ##
    # RPC-specific configuration for `reset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :reset
    ##
    # RPC-specific configuration for `resume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :resume
    ##
    # RPC-specific configuration for `send_diagnostic_interrupt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :send_diagnostic_interrupt
    ##
    # RPC-specific configuration for `set_deletion_protection`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_deletion_protection
    ##
    # RPC-specific configuration for `set_disk_auto_delete`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_disk_auto_delete
    ##
    # RPC-specific configuration for `set_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_iam_policy
    ##
    # RPC-specific configuration for `set_labels`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_labels
    ##
    # RPC-specific configuration for `set_machine_resources`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_machine_resources
    ##
    # RPC-specific configuration for `set_machine_type`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_machine_type
    ##
    # RPC-specific configuration for `set_metadata`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_metadata
    ##
    # RPC-specific configuration for `set_min_cpu_platform`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_min_cpu_platform
    ##
    # RPC-specific configuration for `set_name`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_name
    ##
    # RPC-specific configuration for `set_scheduling`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_scheduling
    ##
    # RPC-specific configuration for `set_security_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_security_policy
    ##
    # RPC-specific configuration for `set_service_account`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_service_account
    ##
    # RPC-specific configuration for `set_shielded_instance_integrity_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_shielded_instance_integrity_policy
    ##
    # RPC-specific configuration for `set_tags`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_tags
    ##
    # RPC-specific configuration for `simulate_maintenance_event`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :simulate_maintenance_event
    ##
    # RPC-specific configuration for `start`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :start
    ##
    # RPC-specific configuration for `start_with_encryption_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :start_with_encryption_key
    ##
    # RPC-specific configuration for `stop`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :stop
    ##
    # RPC-specific configuration for `suspend`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :suspend
    ##
    # RPC-specific configuration for `test_iam_permissions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :test_iam_permissions
    ##
    # RPC-specific configuration for `update`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update
    ##
    # RPC-specific configuration for `update_access_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_access_config
    ##
    # RPC-specific configuration for `update_display_device`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_display_device
    ##
    # RPC-specific configuration for `update_network_interface`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_network_interface
    ##
    # RPC-specific configuration for `update_shielded_instance_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_shielded_instance_config

    # @private
    def initialize parent_rpcs = nil
      add_access_config_config = parent_rpcs.add_access_config if parent_rpcs.respond_to? :add_access_config
      @add_access_config = ::Gapic::Config::Method.new add_access_config_config
      add_resource_policies_config = parent_rpcs.add_resource_policies if parent_rpcs.respond_to? :add_resource_policies
      @add_resource_policies = ::Gapic::Config::Method.new add_resource_policies_config
      aggregated_list_config = parent_rpcs.aggregated_list if parent_rpcs.respond_to? :aggregated_list
      @aggregated_list = ::Gapic::Config::Method.new aggregated_list_config
      attach_disk_config = parent_rpcs.attach_disk if parent_rpcs.respond_to? :attach_disk
      @attach_disk = ::Gapic::Config::Method.new attach_disk_config
      bulk_insert_config = parent_rpcs.bulk_insert if parent_rpcs.respond_to? :bulk_insert
      @bulk_insert = ::Gapic::Config::Method.new bulk_insert_config
      delete_config = parent_rpcs.delete if parent_rpcs.respond_to? :delete
      @delete = ::Gapic::Config::Method.new delete_config
      delete_access_config_config = parent_rpcs.delete_access_config if parent_rpcs.respond_to? :delete_access_config
      @delete_access_config = ::Gapic::Config::Method.new delete_access_config_config
      detach_disk_config = parent_rpcs.detach_disk if parent_rpcs.respond_to? :detach_disk
      @detach_disk = ::Gapic::Config::Method.new detach_disk_config
      get_config = parent_rpcs.get if parent_rpcs.respond_to? :get
      @get = ::Gapic::Config::Method.new get_config
      get_effective_firewalls_config = parent_rpcs.get_effective_firewalls if parent_rpcs.respond_to? :get_effective_firewalls
      @get_effective_firewalls = ::Gapic::Config::Method.new get_effective_firewalls_config
      get_guest_attributes_config = parent_rpcs.get_guest_attributes if parent_rpcs.respond_to? :get_guest_attributes
      @get_guest_attributes = ::Gapic::Config::Method.new get_guest_attributes_config
      get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
      @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
      get_screenshot_config = parent_rpcs.get_screenshot if parent_rpcs.respond_to? :get_screenshot
      @get_screenshot = ::Gapic::Config::Method.new get_screenshot_config
      get_serial_port_output_config = parent_rpcs.get_serial_port_output if parent_rpcs.respond_to? :get_serial_port_output
      @get_serial_port_output = ::Gapic::Config::Method.new get_serial_port_output_config
      get_shielded_instance_identity_config = parent_rpcs.get_shielded_instance_identity if parent_rpcs.respond_to? :get_shielded_instance_identity
      @get_shielded_instance_identity = ::Gapic::Config::Method.new get_shielded_instance_identity_config
      insert_config = parent_rpcs.insert if parent_rpcs.respond_to? :insert
      @insert = ::Gapic::Config::Method.new insert_config
      list_config = parent_rpcs.list if parent_rpcs.respond_to? :list
      @list = ::Gapic::Config::Method.new list_config
      list_referrers_config = parent_rpcs.list_referrers if parent_rpcs.respond_to? :list_referrers
      @list_referrers = ::Gapic::Config::Method.new list_referrers_config
      perform_maintenance_config = parent_rpcs.perform_maintenance if parent_rpcs.respond_to? :perform_maintenance
      @perform_maintenance = ::Gapic::Config::Method.new perform_maintenance_config
      remove_resource_policies_config = parent_rpcs.remove_resource_policies if parent_rpcs.respond_to? :remove_resource_policies
      @remove_resource_policies = ::Gapic::Config::Method.new remove_resource_policies_config
      reset_config = parent_rpcs.reset if parent_rpcs.respond_to? :reset
      @reset = ::Gapic::Config::Method.new reset_config
      resume_config = parent_rpcs.resume if parent_rpcs.respond_to? :resume
      @resume = ::Gapic::Config::Method.new resume_config
      send_diagnostic_interrupt_config = parent_rpcs.send_diagnostic_interrupt if parent_rpcs.respond_to? :send_diagnostic_interrupt
      @send_diagnostic_interrupt = ::Gapic::Config::Method.new send_diagnostic_interrupt_config
      set_deletion_protection_config = parent_rpcs.set_deletion_protection if parent_rpcs.respond_to? :set_deletion_protection
      @set_deletion_protection = ::Gapic::Config::Method.new set_deletion_protection_config
      set_disk_auto_delete_config = parent_rpcs.set_disk_auto_delete if parent_rpcs.respond_to? :set_disk_auto_delete
      @set_disk_auto_delete = ::Gapic::Config::Method.new set_disk_auto_delete_config
      set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
      @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
      set_labels_config = parent_rpcs.set_labels if parent_rpcs.respond_to? :set_labels
      @set_labels = ::Gapic::Config::Method.new set_labels_config
      set_machine_resources_config = parent_rpcs.set_machine_resources if parent_rpcs.respond_to? :set_machine_resources
      @set_machine_resources = ::Gapic::Config::Method.new set_machine_resources_config
      set_machine_type_config = parent_rpcs.set_machine_type if parent_rpcs.respond_to? :set_machine_type
      @set_machine_type = ::Gapic::Config::Method.new set_machine_type_config
       = parent_rpcs. if parent_rpcs.respond_to? :set_metadata
      @set_metadata = ::Gapic::Config::Method.new 
      set_min_cpu_platform_config = parent_rpcs.set_min_cpu_platform if parent_rpcs.respond_to? :set_min_cpu_platform
      @set_min_cpu_platform = ::Gapic::Config::Method.new set_min_cpu_platform_config
      set_name_config = parent_rpcs.set_name if parent_rpcs.respond_to? :set_name
      @set_name = ::Gapic::Config::Method.new set_name_config
      set_scheduling_config = parent_rpcs.set_scheduling if parent_rpcs.respond_to? :set_scheduling
      @set_scheduling = ::Gapic::Config::Method.new set_scheduling_config
      set_security_policy_config = parent_rpcs.set_security_policy if parent_rpcs.respond_to? :set_security_policy
      @set_security_policy = ::Gapic::Config::Method.new set_security_policy_config
       = parent_rpcs. if parent_rpcs.respond_to? :set_service_account
      @set_service_account = ::Gapic::Config::Method.new 
      set_shielded_instance_integrity_policy_config = parent_rpcs.set_shielded_instance_integrity_policy if parent_rpcs.respond_to? :set_shielded_instance_integrity_policy
      @set_shielded_instance_integrity_policy = ::Gapic::Config::Method.new set_shielded_instance_integrity_policy_config
      set_tags_config = parent_rpcs.set_tags if parent_rpcs.respond_to? :set_tags
      @set_tags = ::Gapic::Config::Method.new set_tags_config
      simulate_maintenance_event_config = parent_rpcs.simulate_maintenance_event if parent_rpcs.respond_to? :simulate_maintenance_event
      @simulate_maintenance_event = ::Gapic::Config::Method.new simulate_maintenance_event_config
      start_config = parent_rpcs.start if parent_rpcs.respond_to? :start
      @start = ::Gapic::Config::Method.new start_config
      start_with_encryption_key_config = parent_rpcs.start_with_encryption_key if parent_rpcs.respond_to? :start_with_encryption_key
      @start_with_encryption_key = ::Gapic::Config::Method.new start_with_encryption_key_config
      stop_config = parent_rpcs.stop if parent_rpcs.respond_to? :stop
      @stop = ::Gapic::Config::Method.new stop_config
      suspend_config = parent_rpcs.suspend if parent_rpcs.respond_to? :suspend
      @suspend = ::Gapic::Config::Method.new suspend_config
      test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
      @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
      update_config = parent_rpcs.update if parent_rpcs.respond_to? :update
      @update = ::Gapic::Config::Method.new update_config
      update_access_config_config = parent_rpcs.update_access_config if parent_rpcs.respond_to? :update_access_config
      @update_access_config = ::Gapic::Config::Method.new update_access_config_config
      update_display_device_config = parent_rpcs.update_display_device if parent_rpcs.respond_to? :update_display_device
      @update_display_device = ::Gapic::Config::Method.new update_display_device_config
      update_network_interface_config = parent_rpcs.update_network_interface if parent_rpcs.respond_to? :update_network_interface
      @update_network_interface = ::Gapic::Config::Method.new update_network_interface_config
      update_shielded_instance_config_config = parent_rpcs.update_shielded_instance_config if parent_rpcs.respond_to? :update_shielded_instance_config
      @update_shielded_instance_config = ::Gapic::Config::Method.new update_shielded_instance_config_config

      yield self if block_given?
    end
  end
end

#quota_project::String

A separate project against which to charge quota.

Returns:

  • (::String)


4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
# File 'lib/google/cloud/compute/v1/instances/rest/client.rb', line 4867

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "compute.googleapis.com"

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
    allowed.any? { |klass| klass === value }
  end
  config_attr :scope,         nil, ::String, ::Array, nil
  config_attr :lib_name,      nil, ::String, nil
  config_attr :lib_version,   nil, ::String, nil
  config_attr :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil
  config_attr :universe_domain, nil, ::String, nil

  # @private
  def initialize parent_config = nil
    @parent_config = parent_config unless parent_config.nil?

    yield self if block_given?
  end

  ##
  # Configurations for individual RPCs
  # @return [Rpcs]
  #
  def rpcs
    @rpcs ||= begin
      parent_rpcs = nil
      parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
      Rpcs.new parent_rpcs
    end
  end

  ##
  # Configuration RPC class for the Instances API.
  #
  # Includes fields providing the configuration for each RPC in this service.
  # Each configuration object is of type `Gapic::Config::Method` and includes
  # the following configuration fields:
  #
  #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
  #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
  #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
  #     include the following keys:
  #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
  #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
  #      *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `add_access_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :add_access_config
    ##
    # RPC-specific configuration for `add_resource_policies`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :add_resource_policies
    ##
    # RPC-specific configuration for `aggregated_list`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :aggregated_list
    ##
    # RPC-specific configuration for `attach_disk`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :attach_disk
    ##
    # RPC-specific configuration for `bulk_insert`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :bulk_insert
    ##
    # RPC-specific configuration for `delete`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete
    ##
    # RPC-specific configuration for `delete_access_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_access_config
    ##
    # RPC-specific configuration for `detach_disk`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :detach_disk
    ##
    # RPC-specific configuration for `get`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get
    ##
    # RPC-specific configuration for `get_effective_firewalls`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_effective_firewalls
    ##
    # RPC-specific configuration for `get_guest_attributes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_guest_attributes
    ##
    # RPC-specific configuration for `get_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_iam_policy
    ##
    # RPC-specific configuration for `get_screenshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_screenshot
    ##
    # RPC-specific configuration for `get_serial_port_output`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_serial_port_output
    ##
    # RPC-specific configuration for `get_shielded_instance_identity`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_shielded_instance_identity
    ##
    # RPC-specific configuration for `insert`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :insert
    ##
    # RPC-specific configuration for `list`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list
    ##
    # RPC-specific configuration for `list_referrers`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_referrers
    ##
    # RPC-specific configuration for `perform_maintenance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :perform_maintenance
    ##
    # RPC-specific configuration for `remove_resource_policies`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :remove_resource_policies
    ##
    # RPC-specific configuration for `reset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :reset
    ##
    # RPC-specific configuration for `resume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :resume
    ##
    # RPC-specific configuration for `send_diagnostic_interrupt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :send_diagnostic_interrupt
    ##
    # RPC-specific configuration for `set_deletion_protection`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_deletion_protection
    ##
    # RPC-specific configuration for `set_disk_auto_delete`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_disk_auto_delete
    ##
    # RPC-specific configuration for `set_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_iam_policy
    ##
    # RPC-specific configuration for `set_labels`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_labels
    ##
    # RPC-specific configuration for `set_machine_resources`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_machine_resources
    ##
    # RPC-specific configuration for `set_machine_type`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_machine_type
    ##
    # RPC-specific configuration for `set_metadata`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_metadata
    ##
    # RPC-specific configuration for `set_min_cpu_platform`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_min_cpu_platform
    ##
    # RPC-specific configuration for `set_name`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_name
    ##
    # RPC-specific configuration for `set_scheduling`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_scheduling
    ##
    # RPC-specific configuration for `set_security_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_security_policy
    ##
    # RPC-specific configuration for `set_service_account`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_service_account
    ##
    # RPC-specific configuration for `set_shielded_instance_integrity_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_shielded_instance_integrity_policy
    ##
    # RPC-specific configuration for `set_tags`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_tags
    ##
    # RPC-specific configuration for `simulate_maintenance_event`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :simulate_maintenance_event
    ##
    # RPC-specific configuration for `start`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :start
    ##
    # RPC-specific configuration for `start_with_encryption_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :start_with_encryption_key
    ##
    # RPC-specific configuration for `stop`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :stop
    ##
    # RPC-specific configuration for `suspend`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :suspend
    ##
    # RPC-specific configuration for `test_iam_permissions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :test_iam_permissions
    ##
    # RPC-specific configuration for `update`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update
    ##
    # RPC-specific configuration for `update_access_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_access_config
    ##
    # RPC-specific configuration for `update_display_device`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_display_device
    ##
    # RPC-specific configuration for `update_network_interface`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_network_interface
    ##
    # RPC-specific configuration for `update_shielded_instance_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_shielded_instance_config

    # @private
    def initialize parent_rpcs = nil
      add_access_config_config = parent_rpcs.add_access_config if parent_rpcs.respond_to? :add_access_config
      @add_access_config = ::Gapic::Config::Method.new add_access_config_config
      add_resource_policies_config = parent_rpcs.add_resource_policies if parent_rpcs.respond_to? :add_resource_policies
      @add_resource_policies = ::Gapic::Config::Method.new add_resource_policies_config
      aggregated_list_config = parent_rpcs.aggregated_list if parent_rpcs.respond_to? :aggregated_list
      @aggregated_list = ::Gapic::Config::Method.new aggregated_list_config
      attach_disk_config = parent_rpcs.attach_disk if parent_rpcs.respond_to? :attach_disk
      @attach_disk = ::Gapic::Config::Method.new attach_disk_config
      bulk_insert_config = parent_rpcs.bulk_insert if parent_rpcs.respond_to? :bulk_insert
      @bulk_insert = ::Gapic::Config::Method.new bulk_insert_config
      delete_config = parent_rpcs.delete if parent_rpcs.respond_to? :delete
      @delete = ::Gapic::Config::Method.new delete_config
      delete_access_config_config = parent_rpcs.delete_access_config if parent_rpcs.respond_to? :delete_access_config
      @delete_access_config = ::Gapic::Config::Method.new delete_access_config_config
      detach_disk_config = parent_rpcs.detach_disk if parent_rpcs.respond_to? :detach_disk
      @detach_disk = ::Gapic::Config::Method.new detach_disk_config
      get_config = parent_rpcs.get if parent_rpcs.respond_to? :get
      @get = ::Gapic::Config::Method.new get_config
      get_effective_firewalls_config = parent_rpcs.get_effective_firewalls if parent_rpcs.respond_to? :get_effective_firewalls
      @get_effective_firewalls = ::Gapic::Config::Method.new get_effective_firewalls_config
      get_guest_attributes_config = parent_rpcs.get_guest_attributes if parent_rpcs.respond_to? :get_guest_attributes
      @get_guest_attributes = ::Gapic::Config::Method.new get_guest_attributes_config
      get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
      @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
      get_screenshot_config = parent_rpcs.get_screenshot if parent_rpcs.respond_to? :get_screenshot
      @get_screenshot = ::Gapic::Config::Method.new get_screenshot_config
      get_serial_port_output_config = parent_rpcs.get_serial_port_output if parent_rpcs.respond_to? :get_serial_port_output
      @get_serial_port_output = ::Gapic::Config::Method.new get_serial_port_output_config
      get_shielded_instance_identity_config = parent_rpcs.get_shielded_instance_identity if parent_rpcs.respond_to? :get_shielded_instance_identity
      @get_shielded_instance_identity = ::Gapic::Config::Method.new get_shielded_instance_identity_config
      insert_config = parent_rpcs.insert if parent_rpcs.respond_to? :insert
      @insert = ::Gapic::Config::Method.new insert_config
      list_config = parent_rpcs.list if parent_rpcs.respond_to? :list
      @list = ::Gapic::Config::Method.new list_config
      list_referrers_config = parent_rpcs.list_referrers if parent_rpcs.respond_to? :list_referrers
      @list_referrers = ::Gapic::Config::Method.new list_referrers_config
      perform_maintenance_config = parent_rpcs.perform_maintenance if parent_rpcs.respond_to? :perform_maintenance
      @perform_maintenance = ::Gapic::Config::Method.new perform_maintenance_config
      remove_resource_policies_config = parent_rpcs.remove_resource_policies if parent_rpcs.respond_to? :remove_resource_policies
      @remove_resource_policies = ::Gapic::Config::Method.new remove_resource_policies_config
      reset_config = parent_rpcs.reset if parent_rpcs.respond_to? :reset
      @reset = ::Gapic::Config::Method.new reset_config
      resume_config = parent_rpcs.resume if parent_rpcs.respond_to? :resume
      @resume = ::Gapic::Config::Method.new resume_config
      send_diagnostic_interrupt_config = parent_rpcs.send_diagnostic_interrupt if parent_rpcs.respond_to? :send_diagnostic_interrupt
      @send_diagnostic_interrupt = ::Gapic::Config::Method.new send_diagnostic_interrupt_config
      set_deletion_protection_config = parent_rpcs.set_deletion_protection if parent_rpcs.respond_to? :set_deletion_protection
      @set_deletion_protection = ::Gapic::Config::Method.new set_deletion_protection_config
      set_disk_auto_delete_config = parent_rpcs.set_disk_auto_delete if parent_rpcs.respond_to? :set_disk_auto_delete
      @set_disk_auto_delete = ::Gapic::Config::Method.new set_disk_auto_delete_config
      set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
      @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
      set_labels_config = parent_rpcs.set_labels if parent_rpcs.respond_to? :set_labels
      @set_labels = ::Gapic::Config::Method.new set_labels_config
      set_machine_resources_config = parent_rpcs.set_machine_resources if parent_rpcs.respond_to? :set_machine_resources
      @set_machine_resources = ::Gapic::Config::Method.new set_machine_resources_config
      set_machine_type_config = parent_rpcs.set_machine_type if parent_rpcs.respond_to? :set_machine_type
      @set_machine_type = ::Gapic::Config::Method.new set_machine_type_config
       = parent_rpcs. if parent_rpcs.respond_to? :set_metadata
      @set_metadata = ::Gapic::Config::Method.new 
      set_min_cpu_platform_config = parent_rpcs.set_min_cpu_platform if parent_rpcs.respond_to? :set_min_cpu_platform
      @set_min_cpu_platform = ::Gapic::Config::Method.new set_min_cpu_platform_config
      set_name_config = parent_rpcs.set_name if parent_rpcs.respond_to? :set_name
      @set_name = ::Gapic::Config::Method.new set_name_config
      set_scheduling_config = parent_rpcs.set_scheduling if parent_rpcs.respond_to? :set_scheduling
      @set_scheduling = ::Gapic::Config::Method.new set_scheduling_config
      set_security_policy_config = parent_rpcs.set_security_policy if parent_rpcs.respond_to? :set_security_policy
      @set_security_policy = ::Gapic::Config::Method.new set_security_policy_config
       = parent_rpcs. if parent_rpcs.respond_to? :set_service_account
      @set_service_account = ::Gapic::Config::Method.new 
      set_shielded_instance_integrity_policy_config = parent_rpcs.set_shielded_instance_integrity_policy if parent_rpcs.respond_to? :set_shielded_instance_integrity_policy
      @set_shielded_instance_integrity_policy = ::Gapic::Config::Method.new set_shielded_instance_integrity_policy_config
      set_tags_config = parent_rpcs.set_tags if parent_rpcs.respond_to? :set_tags
      @set_tags = ::Gapic::Config::Method.new set_tags_config
      simulate_maintenance_event_config = parent_rpcs.simulate_maintenance_event if parent_rpcs.respond_to? :simulate_maintenance_event
      @simulate_maintenance_event = ::Gapic::Config::Method.new simulate_maintenance_event_config
      start_config = parent_rpcs.start if parent_rpcs.respond_to? :start
      @start = ::Gapic::Config::Method.new start_config
      start_with_encryption_key_config = parent_rpcs.start_with_encryption_key if parent_rpcs.respond_to? :start_with_encryption_key
      @start_with_encryption_key = ::Gapic::Config::Method.new start_with_encryption_key_config
      stop_config = parent_rpcs.stop if parent_rpcs.respond_to? :stop
      @stop = ::Gapic::Config::Method.new stop_config
      suspend_config = parent_rpcs.suspend if parent_rpcs.respond_to? :suspend
      @suspend = ::Gapic::Config::Method.new suspend_config
      test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
      @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
      update_config = parent_rpcs.update if parent_rpcs.respond_to? :update
      @update = ::Gapic::Config::Method.new update_config
      update_access_config_config = parent_rpcs.update_access_config if parent_rpcs.respond_to? :update_access_config
      @update_access_config = ::Gapic::Config::Method.new update_access_config_config
      update_display_device_config = parent_rpcs.update_display_device if parent_rpcs.respond_to? :update_display_device
      @update_display_device = ::Gapic::Config::Method.new update_display_device_config
      update_network_interface_config = parent_rpcs.update_network_interface if parent_rpcs.respond_to? :update_network_interface
      @update_network_interface = ::Gapic::Config::Method.new update_network_interface_config
      update_shielded_instance_config_config = parent_rpcs.update_shielded_instance_config if parent_rpcs.respond_to? :update_shielded_instance_config
      @update_shielded_instance_config = ::Gapic::Config::Method.new update_shielded_instance_config_config

      yield self if block_given?
    end
  end
end

#retry_policy::Hash

The retry policy. The value is a hash with the following keys:

  • :initial_delay (type: Numeric) - The initial delay in seconds.
  • :max_delay (type: Numeric) - The max delay in seconds.
  • :multiplier (type: Numeric) - The incremental backoff multiplier.
  • :retry_codes (type: Array<String>) - The error codes that should trigger a retry.

Returns:

  • (::Hash)


4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
# File 'lib/google/cloud/compute/v1/instances/rest/client.rb', line 4867

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "compute.googleapis.com"

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
    allowed.any? { |klass| klass === value }
  end
  config_attr :scope,         nil, ::String, ::Array, nil
  config_attr :lib_name,      nil, ::String, nil
  config_attr :lib_version,   nil, ::String, nil
  config_attr :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil
  config_attr :universe_domain, nil, ::String, nil

  # @private
  def initialize parent_config = nil
    @parent_config = parent_config unless parent_config.nil?

    yield self if block_given?
  end

  ##
  # Configurations for individual RPCs
  # @return [Rpcs]
  #
  def rpcs
    @rpcs ||= begin
      parent_rpcs = nil
      parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
      Rpcs.new parent_rpcs
    end
  end

  ##
  # Configuration RPC class for the Instances API.
  #
  # Includes fields providing the configuration for each RPC in this service.
  # Each configuration object is of type `Gapic::Config::Method` and includes
  # the following configuration fields:
  #
  #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
  #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
  #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
  #     include the following keys:
  #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
  #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
  #      *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `add_access_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :add_access_config
    ##
    # RPC-specific configuration for `add_resource_policies`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :add_resource_policies
    ##
    # RPC-specific configuration for `aggregated_list`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :aggregated_list
    ##
    # RPC-specific configuration for `attach_disk`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :attach_disk
    ##
    # RPC-specific configuration for `bulk_insert`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :bulk_insert
    ##
    # RPC-specific configuration for `delete`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete
    ##
    # RPC-specific configuration for `delete_access_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_access_config
    ##
    # RPC-specific configuration for `detach_disk`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :detach_disk
    ##
    # RPC-specific configuration for `get`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get
    ##
    # RPC-specific configuration for `get_effective_firewalls`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_effective_firewalls
    ##
    # RPC-specific configuration for `get_guest_attributes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_guest_attributes
    ##
    # RPC-specific configuration for `get_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_iam_policy
    ##
    # RPC-specific configuration for `get_screenshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_screenshot
    ##
    # RPC-specific configuration for `get_serial_port_output`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_serial_port_output
    ##
    # RPC-specific configuration for `get_shielded_instance_identity`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_shielded_instance_identity
    ##
    # RPC-specific configuration for `insert`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :insert
    ##
    # RPC-specific configuration for `list`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list
    ##
    # RPC-specific configuration for `list_referrers`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_referrers
    ##
    # RPC-specific configuration for `perform_maintenance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :perform_maintenance
    ##
    # RPC-specific configuration for `remove_resource_policies`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :remove_resource_policies
    ##
    # RPC-specific configuration for `reset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :reset
    ##
    # RPC-specific configuration for `resume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :resume
    ##
    # RPC-specific configuration for `send_diagnostic_interrupt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :send_diagnostic_interrupt
    ##
    # RPC-specific configuration for `set_deletion_protection`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_deletion_protection
    ##
    # RPC-specific configuration for `set_disk_auto_delete`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_disk_auto_delete
    ##
    # RPC-specific configuration for `set_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_iam_policy
    ##
    # RPC-specific configuration for `set_labels`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_labels
    ##
    # RPC-specific configuration for `set_machine_resources`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_machine_resources
    ##
    # RPC-specific configuration for `set_machine_type`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_machine_type
    ##
    # RPC-specific configuration for `set_metadata`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_metadata
    ##
    # RPC-specific configuration for `set_min_cpu_platform`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_min_cpu_platform
    ##
    # RPC-specific configuration for `set_name`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_name
    ##
    # RPC-specific configuration for `set_scheduling`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_scheduling
    ##
    # RPC-specific configuration for `set_security_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_security_policy
    ##
    # RPC-specific configuration for `set_service_account`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_service_account
    ##
    # RPC-specific configuration for `set_shielded_instance_integrity_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_shielded_instance_integrity_policy
    ##
    # RPC-specific configuration for `set_tags`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_tags
    ##
    # RPC-specific configuration for `simulate_maintenance_event`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :simulate_maintenance_event
    ##
    # RPC-specific configuration for `start`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :start
    ##
    # RPC-specific configuration for `start_with_encryption_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :start_with_encryption_key
    ##
    # RPC-specific configuration for `stop`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :stop
    ##
    # RPC-specific configuration for `suspend`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :suspend
    ##
    # RPC-specific configuration for `test_iam_permissions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :test_iam_permissions
    ##
    # RPC-specific configuration for `update`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update
    ##
    # RPC-specific configuration for `update_access_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_access_config
    ##
    # RPC-specific configuration for `update_display_device`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_display_device
    ##
    # RPC-specific configuration for `update_network_interface`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_network_interface
    ##
    # RPC-specific configuration for `update_shielded_instance_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_shielded_instance_config

    # @private
    def initialize parent_rpcs = nil
      add_access_config_config = parent_rpcs.add_access_config if parent_rpcs.respond_to? :add_access_config
      @add_access_config = ::Gapic::Config::Method.new add_access_config_config
      add_resource_policies_config = parent_rpcs.add_resource_policies if parent_rpcs.respond_to? :add_resource_policies
      @add_resource_policies = ::Gapic::Config::Method.new add_resource_policies_config
      aggregated_list_config = parent_rpcs.aggregated_list if parent_rpcs.respond_to? :aggregated_list
      @aggregated_list = ::Gapic::Config::Method.new aggregated_list_config
      attach_disk_config = parent_rpcs.attach_disk if parent_rpcs.respond_to? :attach_disk
      @attach_disk = ::Gapic::Config::Method.new attach_disk_config
      bulk_insert_config = parent_rpcs.bulk_insert if parent_rpcs.respond_to? :bulk_insert
      @bulk_insert = ::Gapic::Config::Method.new bulk_insert_config
      delete_config = parent_rpcs.delete if parent_rpcs.respond_to? :delete
      @delete = ::Gapic::Config::Method.new delete_config
      delete_access_config_config = parent_rpcs.delete_access_config if parent_rpcs.respond_to? :delete_access_config
      @delete_access_config = ::Gapic::Config::Method.new delete_access_config_config
      detach_disk_config = parent_rpcs.detach_disk if parent_rpcs.respond_to? :detach_disk
      @detach_disk = ::Gapic::Config::Method.new detach_disk_config
      get_config = parent_rpcs.get if parent_rpcs.respond_to? :get
      @get = ::Gapic::Config::Method.new get_config
      get_effective_firewalls_config = parent_rpcs.get_effective_firewalls if parent_rpcs.respond_to? :get_effective_firewalls
      @get_effective_firewalls = ::Gapic::Config::Method.new get_effective_firewalls_config
      get_guest_attributes_config = parent_rpcs.get_guest_attributes if parent_rpcs.respond_to? :get_guest_attributes
      @get_guest_attributes = ::Gapic::Config::Method.new get_guest_attributes_config
      get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
      @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
      get_screenshot_config = parent_rpcs.get_screenshot if parent_rpcs.respond_to? :get_screenshot
      @get_screenshot = ::Gapic::Config::Method.new get_screenshot_config
      get_serial_port_output_config = parent_rpcs.get_serial_port_output if parent_rpcs.respond_to? :get_serial_port_output
      @get_serial_port_output = ::Gapic::Config::Method.new get_serial_port_output_config
      get_shielded_instance_identity_config = parent_rpcs.get_shielded_instance_identity if parent_rpcs.respond_to? :get_shielded_instance_identity
      @get_shielded_instance_identity = ::Gapic::Config::Method.new get_shielded_instance_identity_config
      insert_config = parent_rpcs.insert if parent_rpcs.respond_to? :insert
      @insert = ::Gapic::Config::Method.new insert_config
      list_config = parent_rpcs.list if parent_rpcs.respond_to? :list
      @list = ::Gapic::Config::Method.new list_config
      list_referrers_config = parent_rpcs.list_referrers if parent_rpcs.respond_to? :list_referrers
      @list_referrers = ::Gapic::Config::Method.new list_referrers_config
      perform_maintenance_config = parent_rpcs.perform_maintenance if parent_rpcs.respond_to? :perform_maintenance
      @perform_maintenance = ::Gapic::Config::Method.new perform_maintenance_config
      remove_resource_policies_config = parent_rpcs.remove_resource_policies if parent_rpcs.respond_to? :remove_resource_policies
      @remove_resource_policies = ::Gapic::Config::Method.new remove_resource_policies_config
      reset_config = parent_rpcs.reset if parent_rpcs.respond_to? :reset
      @reset = ::Gapic::Config::Method.new reset_config
      resume_config = parent_rpcs.resume if parent_rpcs.respond_to? :resume
      @resume = ::Gapic::Config::Method.new resume_config
      send_diagnostic_interrupt_config = parent_rpcs.send_diagnostic_interrupt if parent_rpcs.respond_to? :send_diagnostic_interrupt
      @send_diagnostic_interrupt = ::Gapic::Config::Method.new send_diagnostic_interrupt_config
      set_deletion_protection_config = parent_rpcs.set_deletion_protection if parent_rpcs.respond_to? :set_deletion_protection
      @set_deletion_protection = ::Gapic::Config::Method.new set_deletion_protection_config
      set_disk_auto_delete_config = parent_rpcs.set_disk_auto_delete if parent_rpcs.respond_to? :set_disk_auto_delete
      @set_disk_auto_delete = ::Gapic::Config::Method.new set_disk_auto_delete_config
      set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
      @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
      set_labels_config = parent_rpcs.set_labels if parent_rpcs.respond_to? :set_labels
      @set_labels = ::Gapic::Config::Method.new set_labels_config
      set_machine_resources_config = parent_rpcs.set_machine_resources if parent_rpcs.respond_to? :set_machine_resources
      @set_machine_resources = ::Gapic::Config::Method.new set_machine_resources_config
      set_machine_type_config = parent_rpcs.set_machine_type if parent_rpcs.respond_to? :set_machine_type
      @set_machine_type = ::Gapic::Config::Method.new set_machine_type_config
       = parent_rpcs. if parent_rpcs.respond_to? :set_metadata
      @set_metadata = ::Gapic::Config::Method.new 
      set_min_cpu_platform_config = parent_rpcs.set_min_cpu_platform if parent_rpcs.respond_to? :set_min_cpu_platform
      @set_min_cpu_platform = ::Gapic::Config::Method.new set_min_cpu_platform_config
      set_name_config = parent_rpcs.set_name if parent_rpcs.respond_to? :set_name
      @set_name = ::Gapic::Config::Method.new set_name_config
      set_scheduling_config = parent_rpcs.set_scheduling if parent_rpcs.respond_to? :set_scheduling
      @set_scheduling = ::Gapic::Config::Method.new set_scheduling_config
      set_security_policy_config = parent_rpcs.set_security_policy if parent_rpcs.respond_to? :set_security_policy
      @set_security_policy = ::Gapic::Config::Method.new set_security_policy_config
       = parent_rpcs. if parent_rpcs.respond_to? :set_service_account
      @set_service_account = ::Gapic::Config::Method.new 
      set_shielded_instance_integrity_policy_config = parent_rpcs.set_shielded_instance_integrity_policy if parent_rpcs.respond_to? :set_shielded_instance_integrity_policy
      @set_shielded_instance_integrity_policy = ::Gapic::Config::Method.new set_shielded_instance_integrity_policy_config
      set_tags_config = parent_rpcs.set_tags if parent_rpcs.respond_to? :set_tags
      @set_tags = ::Gapic::Config::Method.new set_tags_config
      simulate_maintenance_event_config = parent_rpcs.simulate_maintenance_event if parent_rpcs.respond_to? :simulate_maintenance_event
      @simulate_maintenance_event = ::Gapic::Config::Method.new simulate_maintenance_event_config
      start_config = parent_rpcs.start if parent_rpcs.respond_to? :start
      @start = ::Gapic::Config::Method.new start_config
      start_with_encryption_key_config = parent_rpcs.start_with_encryption_key if parent_rpcs.respond_to? :start_with_encryption_key
      @start_with_encryption_key = ::Gapic::Config::Method.new start_with_encryption_key_config
      stop_config = parent_rpcs.stop if parent_rpcs.respond_to? :stop
      @stop = ::Gapic::Config::Method.new stop_config
      suspend_config = parent_rpcs.suspend if parent_rpcs.respond_to? :suspend
      @suspend = ::Gapic::Config::Method.new suspend_config
      test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
      @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
      update_config = parent_rpcs.update if parent_rpcs.respond_to? :update
      @update = ::Gapic::Config::Method.new update_config
      update_access_config_config = parent_rpcs.update_access_config if parent_rpcs.respond_to? :update_access_config
      @update_access_config = ::Gapic::Config::Method.new update_access_config_config
      update_display_device_config = parent_rpcs.update_display_device if parent_rpcs.respond_to? :update_display_device
      @update_display_device = ::Gapic::Config::Method.new update_display_device_config
      update_network_interface_config = parent_rpcs.update_network_interface if parent_rpcs.respond_to? :update_network_interface
      @update_network_interface = ::Gapic::Config::Method.new update_network_interface_config
      update_shielded_instance_config_config = parent_rpcs.update_shielded_instance_config if parent_rpcs.respond_to? :update_shielded_instance_config
      @update_shielded_instance_config = ::Gapic::Config::Method.new update_shielded_instance_config_config

      yield self if block_given?
    end
  end
end

#scope::Array<::String>

The OAuth scopes

Returns:

  • (::Array<::String>)


4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
# File 'lib/google/cloud/compute/v1/instances/rest/client.rb', line 4867

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "compute.googleapis.com"

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
    allowed.any? { |klass| klass === value }
  end
  config_attr :scope,         nil, ::String, ::Array, nil
  config_attr :lib_name,      nil, ::String, nil
  config_attr :lib_version,   nil, ::String, nil
  config_attr :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil
  config_attr :universe_domain, nil, ::String, nil

  # @private
  def initialize parent_config = nil
    @parent_config = parent_config unless parent_config.nil?

    yield self if block_given?
  end

  ##
  # Configurations for individual RPCs
  # @return [Rpcs]
  #
  def rpcs
    @rpcs ||= begin
      parent_rpcs = nil
      parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
      Rpcs.new parent_rpcs
    end
  end

  ##
  # Configuration RPC class for the Instances API.
  #
  # Includes fields providing the configuration for each RPC in this service.
  # Each configuration object is of type `Gapic::Config::Method` and includes
  # the following configuration fields:
  #
  #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
  #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
  #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
  #     include the following keys:
  #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
  #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
  #      *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `add_access_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :add_access_config
    ##
    # RPC-specific configuration for `add_resource_policies`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :add_resource_policies
    ##
    # RPC-specific configuration for `aggregated_list`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :aggregated_list
    ##
    # RPC-specific configuration for `attach_disk`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :attach_disk
    ##
    # RPC-specific configuration for `bulk_insert`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :bulk_insert
    ##
    # RPC-specific configuration for `delete`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete
    ##
    # RPC-specific configuration for `delete_access_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_access_config
    ##
    # RPC-specific configuration for `detach_disk`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :detach_disk
    ##
    # RPC-specific configuration for `get`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get
    ##
    # RPC-specific configuration for `get_effective_firewalls`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_effective_firewalls
    ##
    # RPC-specific configuration for `get_guest_attributes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_guest_attributes
    ##
    # RPC-specific configuration for `get_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_iam_policy
    ##
    # RPC-specific configuration for `get_screenshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_screenshot
    ##
    # RPC-specific configuration for `get_serial_port_output`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_serial_port_output
    ##
    # RPC-specific configuration for `get_shielded_instance_identity`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_shielded_instance_identity
    ##
    # RPC-specific configuration for `insert`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :insert
    ##
    # RPC-specific configuration for `list`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list
    ##
    # RPC-specific configuration for `list_referrers`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_referrers
    ##
    # RPC-specific configuration for `perform_maintenance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :perform_maintenance
    ##
    # RPC-specific configuration for `remove_resource_policies`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :remove_resource_policies
    ##
    # RPC-specific configuration for `reset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :reset
    ##
    # RPC-specific configuration for `resume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :resume
    ##
    # RPC-specific configuration for `send_diagnostic_interrupt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :send_diagnostic_interrupt
    ##
    # RPC-specific configuration for `set_deletion_protection`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_deletion_protection
    ##
    # RPC-specific configuration for `set_disk_auto_delete`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_disk_auto_delete
    ##
    # RPC-specific configuration for `set_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_iam_policy
    ##
    # RPC-specific configuration for `set_labels`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_labels
    ##
    # RPC-specific configuration for `set_machine_resources`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_machine_resources
    ##
    # RPC-specific configuration for `set_machine_type`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_machine_type
    ##
    # RPC-specific configuration for `set_metadata`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_metadata
    ##
    # RPC-specific configuration for `set_min_cpu_platform`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_min_cpu_platform
    ##
    # RPC-specific configuration for `set_name`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_name
    ##
    # RPC-specific configuration for `set_scheduling`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_scheduling
    ##
    # RPC-specific configuration for `set_security_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_security_policy
    ##
    # RPC-specific configuration for `set_service_account`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_service_account
    ##
    # RPC-specific configuration for `set_shielded_instance_integrity_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_shielded_instance_integrity_policy
    ##
    # RPC-specific configuration for `set_tags`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_tags
    ##
    # RPC-specific configuration for `simulate_maintenance_event`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :simulate_maintenance_event
    ##
    # RPC-specific configuration for `start`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :start
    ##
    # RPC-specific configuration for `start_with_encryption_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :start_with_encryption_key
    ##
    # RPC-specific configuration for `stop`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :stop
    ##
    # RPC-specific configuration for `suspend`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :suspend
    ##
    # RPC-specific configuration for `test_iam_permissions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :test_iam_permissions
    ##
    # RPC-specific configuration for `update`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update
    ##
    # RPC-specific configuration for `update_access_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_access_config
    ##
    # RPC-specific configuration for `update_display_device`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_display_device
    ##
    # RPC-specific configuration for `update_network_interface`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_network_interface
    ##
    # RPC-specific configuration for `update_shielded_instance_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_shielded_instance_config

    # @private
    def initialize parent_rpcs = nil
      add_access_config_config = parent_rpcs.add_access_config if parent_rpcs.respond_to? :add_access_config
      @add_access_config = ::Gapic::Config::Method.new add_access_config_config
      add_resource_policies_config = parent_rpcs.add_resource_policies if parent_rpcs.respond_to? :add_resource_policies
      @add_resource_policies = ::Gapic::Config::Method.new add_resource_policies_config
      aggregated_list_config = parent_rpcs.aggregated_list if parent_rpcs.respond_to? :aggregated_list
      @aggregated_list = ::Gapic::Config::Method.new aggregated_list_config
      attach_disk_config = parent_rpcs.attach_disk if parent_rpcs.respond_to? :attach_disk
      @attach_disk = ::Gapic::Config::Method.new attach_disk_config
      bulk_insert_config = parent_rpcs.bulk_insert if parent_rpcs.respond_to? :bulk_insert
      @bulk_insert = ::Gapic::Config::Method.new bulk_insert_config
      delete_config = parent_rpcs.delete if parent_rpcs.respond_to? :delete
      @delete = ::Gapic::Config::Method.new delete_config
      delete_access_config_config = parent_rpcs.delete_access_config if parent_rpcs.respond_to? :delete_access_config
      @delete_access_config = ::Gapic::Config::Method.new delete_access_config_config
      detach_disk_config = parent_rpcs.detach_disk if parent_rpcs.respond_to? :detach_disk
      @detach_disk = ::Gapic::Config::Method.new detach_disk_config
      get_config = parent_rpcs.get if parent_rpcs.respond_to? :get
      @get = ::Gapic::Config::Method.new get_config
      get_effective_firewalls_config = parent_rpcs.get_effective_firewalls if parent_rpcs.respond_to? :get_effective_firewalls
      @get_effective_firewalls = ::Gapic::Config::Method.new get_effective_firewalls_config
      get_guest_attributes_config = parent_rpcs.get_guest_attributes if parent_rpcs.respond_to? :get_guest_attributes
      @get_guest_attributes = ::Gapic::Config::Method.new get_guest_attributes_config
      get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
      @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
      get_screenshot_config = parent_rpcs.get_screenshot if parent_rpcs.respond_to? :get_screenshot
      @get_screenshot = ::Gapic::Config::Method.new get_screenshot_config
      get_serial_port_output_config = parent_rpcs.get_serial_port_output if parent_rpcs.respond_to? :get_serial_port_output
      @get_serial_port_output = ::Gapic::Config::Method.new get_serial_port_output_config
      get_shielded_instance_identity_config = parent_rpcs.get_shielded_instance_identity if parent_rpcs.respond_to? :get_shielded_instance_identity
      @get_shielded_instance_identity = ::Gapic::Config::Method.new get_shielded_instance_identity_config
      insert_config = parent_rpcs.insert if parent_rpcs.respond_to? :insert
      @insert = ::Gapic::Config::Method.new insert_config
      list_config = parent_rpcs.list if parent_rpcs.respond_to? :list
      @list = ::Gapic::Config::Method.new list_config
      list_referrers_config = parent_rpcs.list_referrers if parent_rpcs.respond_to? :list_referrers
      @list_referrers = ::Gapic::Config::Method.new list_referrers_config
      perform_maintenance_config = parent_rpcs.perform_maintenance if parent_rpcs.respond_to? :perform_maintenance
      @perform_maintenance = ::Gapic::Config::Method.new perform_maintenance_config
      remove_resource_policies_config = parent_rpcs.remove_resource_policies if parent_rpcs.respond_to? :remove_resource_policies
      @remove_resource_policies = ::Gapic::Config::Method.new remove_resource_policies_config
      reset_config = parent_rpcs.reset if parent_rpcs.respond_to? :reset
      @reset = ::Gapic::Config::Method.new reset_config
      resume_config = parent_rpcs.resume if parent_rpcs.respond_to? :resume
      @resume = ::Gapic::Config::Method.new resume_config
      send_diagnostic_interrupt_config = parent_rpcs.send_diagnostic_interrupt if parent_rpcs.respond_to? :send_diagnostic_interrupt
      @send_diagnostic_interrupt = ::Gapic::Config::Method.new send_diagnostic_interrupt_config
      set_deletion_protection_config = parent_rpcs.set_deletion_protection if parent_rpcs.respond_to? :set_deletion_protection
      @set_deletion_protection = ::Gapic::Config::Method.new set_deletion_protection_config
      set_disk_auto_delete_config = parent_rpcs.set_disk_auto_delete if parent_rpcs.respond_to? :set_disk_auto_delete
      @set_disk_auto_delete = ::Gapic::Config::Method.new set_disk_auto_delete_config
      set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
      @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
      set_labels_config = parent_rpcs.set_labels if parent_rpcs.respond_to? :set_labels
      @set_labels = ::Gapic::Config::Method.new set_labels_config
      set_machine_resources_config = parent_rpcs.set_machine_resources if parent_rpcs.respond_to? :set_machine_resources
      @set_machine_resources = ::Gapic::Config::Method.new set_machine_resources_config
      set_machine_type_config = parent_rpcs.set_machine_type if parent_rpcs.respond_to? :set_machine_type
      @set_machine_type = ::Gapic::Config::Method.new set_machine_type_config
       = parent_rpcs. if parent_rpcs.respond_to? :set_metadata
      @set_metadata = ::Gapic::Config::Method.new 
      set_min_cpu_platform_config = parent_rpcs.set_min_cpu_platform if parent_rpcs.respond_to? :set_min_cpu_platform
      @set_min_cpu_platform = ::Gapic::Config::Method.new set_min_cpu_platform_config
      set_name_config = parent_rpcs.set_name if parent_rpcs.respond_to? :set_name
      @set_name = ::Gapic::Config::Method.new set_name_config
      set_scheduling_config = parent_rpcs.set_scheduling if parent_rpcs.respond_to? :set_scheduling
      @set_scheduling = ::Gapic::Config::Method.new set_scheduling_config
      set_security_policy_config = parent_rpcs.set_security_policy if parent_rpcs.respond_to? :set_security_policy
      @set_security_policy = ::Gapic::Config::Method.new set_security_policy_config
       = parent_rpcs. if parent_rpcs.respond_to? :set_service_account
      @set_service_account = ::Gapic::Config::Method.new 
      set_shielded_instance_integrity_policy_config = parent_rpcs.set_shielded_instance_integrity_policy if parent_rpcs.respond_to? :set_shielded_instance_integrity_policy
      @set_shielded_instance_integrity_policy = ::Gapic::Config::Method.new set_shielded_instance_integrity_policy_config
      set_tags_config = parent_rpcs.set_tags if parent_rpcs.respond_to? :set_tags
      @set_tags = ::Gapic::Config::Method.new set_tags_config
      simulate_maintenance_event_config = parent_rpcs.simulate_maintenance_event if parent_rpcs.respond_to? :simulate_maintenance_event
      @simulate_maintenance_event = ::Gapic::Config::Method.new simulate_maintenance_event_config
      start_config = parent_rpcs.start if parent_rpcs.respond_to? :start
      @start = ::Gapic::Config::Method.new start_config
      start_with_encryption_key_config = parent_rpcs.start_with_encryption_key if parent_rpcs.respond_to? :start_with_encryption_key
      @start_with_encryption_key = ::Gapic::Config::Method.new start_with_encryption_key_config
      stop_config = parent_rpcs.stop if parent_rpcs.respond_to? :stop
      @stop = ::Gapic::Config::Method.new stop_config
      suspend_config = parent_rpcs.suspend if parent_rpcs.respond_to? :suspend
      @suspend = ::Gapic::Config::Method.new suspend_config
      test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
      @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
      update_config = parent_rpcs.update if parent_rpcs.respond_to? :update
      @update = ::Gapic::Config::Method.new update_config
      update_access_config_config = parent_rpcs.update_access_config if parent_rpcs.respond_to? :update_access_config
      @update_access_config = ::Gapic::Config::Method.new update_access_config_config
      update_display_device_config = parent_rpcs.update_display_device if parent_rpcs.respond_to? :update_display_device
      @update_display_device = ::Gapic::Config::Method.new update_display_device_config
      update_network_interface_config = parent_rpcs.update_network_interface if parent_rpcs.respond_to? :update_network_interface
      @update_network_interface = ::Gapic::Config::Method.new update_network_interface_config
      update_shielded_instance_config_config = parent_rpcs.update_shielded_instance_config if parent_rpcs.respond_to? :update_shielded_instance_config
      @update_shielded_instance_config = ::Gapic::Config::Method.new update_shielded_instance_config_config

      yield self if block_given?
    end
  end
end

#timeout::Numeric

The call timeout in seconds.

Returns:

  • (::Numeric)


4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
# File 'lib/google/cloud/compute/v1/instances/rest/client.rb', line 4867

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "compute.googleapis.com"

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
    allowed.any? { |klass| klass === value }
  end
  config_attr :scope,         nil, ::String, ::Array, nil
  config_attr :lib_name,      nil, ::String, nil
  config_attr :lib_version,   nil, ::String, nil
  config_attr :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil
  config_attr :universe_domain, nil, ::String, nil

  # @private
  def initialize parent_config = nil
    @parent_config = parent_config unless parent_config.nil?

    yield self if block_given?
  end

  ##
  # Configurations for individual RPCs
  # @return [Rpcs]
  #
  def rpcs
    @rpcs ||= begin
      parent_rpcs = nil
      parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
      Rpcs.new parent_rpcs
    end
  end

  ##
  # Configuration RPC class for the Instances API.
  #
  # Includes fields providing the configuration for each RPC in this service.
  # Each configuration object is of type `Gapic::Config::Method` and includes
  # the following configuration fields:
  #
  #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
  #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
  #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
  #     include the following keys:
  #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
  #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
  #      *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `add_access_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :add_access_config
    ##
    # RPC-specific configuration for `add_resource_policies`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :add_resource_policies
    ##
    # RPC-specific configuration for `aggregated_list`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :aggregated_list
    ##
    # RPC-specific configuration for `attach_disk`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :attach_disk
    ##
    # RPC-specific configuration for `bulk_insert`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :bulk_insert
    ##
    # RPC-specific configuration for `delete`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete
    ##
    # RPC-specific configuration for `delete_access_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_access_config
    ##
    # RPC-specific configuration for `detach_disk`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :detach_disk
    ##
    # RPC-specific configuration for `get`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get
    ##
    # RPC-specific configuration for `get_effective_firewalls`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_effective_firewalls
    ##
    # RPC-specific configuration for `get_guest_attributes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_guest_attributes
    ##
    # RPC-specific configuration for `get_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_iam_policy
    ##
    # RPC-specific configuration for `get_screenshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_screenshot
    ##
    # RPC-specific configuration for `get_serial_port_output`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_serial_port_output
    ##
    # RPC-specific configuration for `get_shielded_instance_identity`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_shielded_instance_identity
    ##
    # RPC-specific configuration for `insert`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :insert
    ##
    # RPC-specific configuration for `list`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list
    ##
    # RPC-specific configuration for `list_referrers`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_referrers
    ##
    # RPC-specific configuration for `perform_maintenance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :perform_maintenance
    ##
    # RPC-specific configuration for `remove_resource_policies`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :remove_resource_policies
    ##
    # RPC-specific configuration for `reset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :reset
    ##
    # RPC-specific configuration for `resume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :resume
    ##
    # RPC-specific configuration for `send_diagnostic_interrupt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :send_diagnostic_interrupt
    ##
    # RPC-specific configuration for `set_deletion_protection`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_deletion_protection
    ##
    # RPC-specific configuration for `set_disk_auto_delete`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_disk_auto_delete
    ##
    # RPC-specific configuration for `set_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_iam_policy
    ##
    # RPC-specific configuration for `set_labels`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_labels
    ##
    # RPC-specific configuration for `set_machine_resources`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_machine_resources
    ##
    # RPC-specific configuration for `set_machine_type`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_machine_type
    ##
    # RPC-specific configuration for `set_metadata`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_metadata
    ##
    # RPC-specific configuration for `set_min_cpu_platform`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_min_cpu_platform
    ##
    # RPC-specific configuration for `set_name`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_name
    ##
    # RPC-specific configuration for `set_scheduling`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_scheduling
    ##
    # RPC-specific configuration for `set_security_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_security_policy
    ##
    # RPC-specific configuration for `set_service_account`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_service_account
    ##
    # RPC-specific configuration for `set_shielded_instance_integrity_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_shielded_instance_integrity_policy
    ##
    # RPC-specific configuration for `set_tags`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_tags
    ##
    # RPC-specific configuration for `simulate_maintenance_event`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :simulate_maintenance_event
    ##
    # RPC-specific configuration for `start`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :start
    ##
    # RPC-specific configuration for `start_with_encryption_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :start_with_encryption_key
    ##
    # RPC-specific configuration for `stop`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :stop
    ##
    # RPC-specific configuration for `suspend`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :suspend
    ##
    # RPC-specific configuration for `test_iam_permissions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :test_iam_permissions
    ##
    # RPC-specific configuration for `update`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update
    ##
    # RPC-specific configuration for `update_access_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_access_config
    ##
    # RPC-specific configuration for `update_display_device`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_display_device
    ##
    # RPC-specific configuration for `update_network_interface`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_network_interface
    ##
    # RPC-specific configuration for `update_shielded_instance_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_shielded_instance_config

    # @private
    def initialize parent_rpcs = nil
      add_access_config_config = parent_rpcs.add_access_config if parent_rpcs.respond_to? :add_access_config
      @add_access_config = ::Gapic::Config::Method.new add_access_config_config
      add_resource_policies_config = parent_rpcs.add_resource_policies if parent_rpcs.respond_to? :add_resource_policies
      @add_resource_policies = ::Gapic::Config::Method.new add_resource_policies_config
      aggregated_list_config = parent_rpcs.aggregated_list if parent_rpcs.respond_to? :aggregated_list
      @aggregated_list = ::Gapic::Config::Method.new aggregated_list_config
      attach_disk_config = parent_rpcs.attach_disk if parent_rpcs.respond_to? :attach_disk
      @attach_disk = ::Gapic::Config::Method.new attach_disk_config
      bulk_insert_config = parent_rpcs.bulk_insert if parent_rpcs.respond_to? :bulk_insert
      @bulk_insert = ::Gapic::Config::Method.new bulk_insert_config
      delete_config = parent_rpcs.delete if parent_rpcs.respond_to? :delete
      @delete = ::Gapic::Config::Method.new delete_config
      delete_access_config_config = parent_rpcs.delete_access_config if parent_rpcs.respond_to? :delete_access_config
      @delete_access_config = ::Gapic::Config::Method.new delete_access_config_config
      detach_disk_config = parent_rpcs.detach_disk if parent_rpcs.respond_to? :detach_disk
      @detach_disk = ::Gapic::Config::Method.new detach_disk_config
      get_config = parent_rpcs.get if parent_rpcs.respond_to? :get
      @get = ::Gapic::Config::Method.new get_config
      get_effective_firewalls_config = parent_rpcs.get_effective_firewalls if parent_rpcs.respond_to? :get_effective_firewalls
      @get_effective_firewalls = ::Gapic::Config::Method.new get_effective_firewalls_config
      get_guest_attributes_config = parent_rpcs.get_guest_attributes if parent_rpcs.respond_to? :get_guest_attributes
      @get_guest_attributes = ::Gapic::Config::Method.new get_guest_attributes_config
      get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
      @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
      get_screenshot_config = parent_rpcs.get_screenshot if parent_rpcs.respond_to? :get_screenshot
      @get_screenshot = ::Gapic::Config::Method.new get_screenshot_config
      get_serial_port_output_config = parent_rpcs.get_serial_port_output if parent_rpcs.respond_to? :get_serial_port_output
      @get_serial_port_output = ::Gapic::Config::Method.new get_serial_port_output_config
      get_shielded_instance_identity_config = parent_rpcs.get_shielded_instance_identity if parent_rpcs.respond_to? :get_shielded_instance_identity
      @get_shielded_instance_identity = ::Gapic::Config::Method.new get_shielded_instance_identity_config
      insert_config = parent_rpcs.insert if parent_rpcs.respond_to? :insert
      @insert = ::Gapic::Config::Method.new insert_config
      list_config = parent_rpcs.list if parent_rpcs.respond_to? :list
      @list = ::Gapic::Config::Method.new list_config
      list_referrers_config = parent_rpcs.list_referrers if parent_rpcs.respond_to? :list_referrers
      @list_referrers = ::Gapic::Config::Method.new list_referrers_config
      perform_maintenance_config = parent_rpcs.perform_maintenance if parent_rpcs.respond_to? :perform_maintenance
      @perform_maintenance = ::Gapic::Config::Method.new perform_maintenance_config
      remove_resource_policies_config = parent_rpcs.remove_resource_policies if parent_rpcs.respond_to? :remove_resource_policies
      @remove_resource_policies = ::Gapic::Config::Method.new remove_resource_policies_config
      reset_config = parent_rpcs.reset if parent_rpcs.respond_to? :reset
      @reset = ::Gapic::Config::Method.new reset_config
      resume_config = parent_rpcs.resume if parent_rpcs.respond_to? :resume
      @resume = ::Gapic::Config::Method.new resume_config
      send_diagnostic_interrupt_config = parent_rpcs.send_diagnostic_interrupt if parent_rpcs.respond_to? :send_diagnostic_interrupt
      @send_diagnostic_interrupt = ::Gapic::Config::Method.new send_diagnostic_interrupt_config
      set_deletion_protection_config = parent_rpcs.set_deletion_protection if parent_rpcs.respond_to? :set_deletion_protection
      @set_deletion_protection = ::Gapic::Config::Method.new set_deletion_protection_config
      set_disk_auto_delete_config = parent_rpcs.set_disk_auto_delete if parent_rpcs.respond_to? :set_disk_auto_delete
      @set_disk_auto_delete = ::Gapic::Config::Method.new set_disk_auto_delete_config
      set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
      @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
      set_labels_config = parent_rpcs.set_labels if parent_rpcs.respond_to? :set_labels
      @set_labels = ::Gapic::Config::Method.new set_labels_config
      set_machine_resources_config = parent_rpcs.set_machine_resources if parent_rpcs.respond_to? :set_machine_resources
      @set_machine_resources = ::Gapic::Config::Method.new set_machine_resources_config
      set_machine_type_config = parent_rpcs.set_machine_type if parent_rpcs.respond_to? :set_machine_type
      @set_machine_type = ::Gapic::Config::Method.new set_machine_type_config
       = parent_rpcs. if parent_rpcs.respond_to? :set_metadata
      @set_metadata = ::Gapic::Config::Method.new 
      set_min_cpu_platform_config = parent_rpcs.set_min_cpu_platform if parent_rpcs.respond_to? :set_min_cpu_platform
      @set_min_cpu_platform = ::Gapic::Config::Method.new set_min_cpu_platform_config
      set_name_config = parent_rpcs.set_name if parent_rpcs.respond_to? :set_name
      @set_name = ::Gapic::Config::Method.new set_name_config
      set_scheduling_config = parent_rpcs.set_scheduling if parent_rpcs.respond_to? :set_scheduling
      @set_scheduling = ::Gapic::Config::Method.new set_scheduling_config
      set_security_policy_config = parent_rpcs.set_security_policy if parent_rpcs.respond_to? :set_security_policy
      @set_security_policy = ::Gapic::Config::Method.new set_security_policy_config
       = parent_rpcs. if parent_rpcs.respond_to? :set_service_account
      @set_service_account = ::Gapic::Config::Method.new 
      set_shielded_instance_integrity_policy_config = parent_rpcs.set_shielded_instance_integrity_policy if parent_rpcs.respond_to? :set_shielded_instance_integrity_policy
      @set_shielded_instance_integrity_policy = ::Gapic::Config::Method.new set_shielded_instance_integrity_policy_config
      set_tags_config = parent_rpcs.set_tags if parent_rpcs.respond_to? :set_tags
      @set_tags = ::Gapic::Config::Method.new set_tags_config
      simulate_maintenance_event_config = parent_rpcs.simulate_maintenance_event if parent_rpcs.respond_to? :simulate_maintenance_event
      @simulate_maintenance_event = ::Gapic::Config::Method.new simulate_maintenance_event_config
      start_config = parent_rpcs.start if parent_rpcs.respond_to? :start
      @start = ::Gapic::Config::Method.new start_config
      start_with_encryption_key_config = parent_rpcs.start_with_encryption_key if parent_rpcs.respond_to? :start_with_encryption_key
      @start_with_encryption_key = ::Gapic::Config::Method.new start_with_encryption_key_config
      stop_config = parent_rpcs.stop if parent_rpcs.respond_to? :stop
      @stop = ::Gapic::Config::Method.new stop_config
      suspend_config = parent_rpcs.suspend if parent_rpcs.respond_to? :suspend
      @suspend = ::Gapic::Config::Method.new suspend_config
      test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
      @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
      update_config = parent_rpcs.update if parent_rpcs.respond_to? :update
      @update = ::Gapic::Config::Method.new update_config
      update_access_config_config = parent_rpcs.update_access_config if parent_rpcs.respond_to? :update_access_config
      @update_access_config = ::Gapic::Config::Method.new update_access_config_config
      update_display_device_config = parent_rpcs.update_display_device if parent_rpcs.respond_to? :update_display_device
      @update_display_device = ::Gapic::Config::Method.new update_display_device_config
      update_network_interface_config = parent_rpcs.update_network_interface if parent_rpcs.respond_to? :update_network_interface
      @update_network_interface = ::Gapic::Config::Method.new update_network_interface_config
      update_shielded_instance_config_config = parent_rpcs.update_shielded_instance_config if parent_rpcs.respond_to? :update_shielded_instance_config
      @update_shielded_instance_config = ::Gapic::Config::Method.new update_shielded_instance_config_config

      yield self if block_given?
    end
  end
end

#universe_domain::String?

The universe domain within which to make requests. This determines the default endpoint URL. The default value of nil uses the environment universe (usually the default "googleapis.com" universe).

Returns:

  • (::String, nil)


4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
# File 'lib/google/cloud/compute/v1/instances/rest/client.rb', line 4867

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "compute.googleapis.com"

  config_attr :endpoint,      nil, ::String, nil
  config_attr :credentials,   nil do |value|
    allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
    allowed.any? { |klass| klass === value }
  end
  config_attr :scope,         nil, ::String, ::Array, nil
  config_attr :lib_name,      nil, ::String, nil
  config_attr :lib_version,   nil, ::String, nil
  config_attr :timeout,       nil, ::Numeric, nil
  config_attr :metadata,      nil, ::Hash, nil
  config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
  config_attr :quota_project, nil, ::String, nil
  config_attr :universe_domain, nil, ::String, nil

  # @private
  def initialize parent_config = nil
    @parent_config = parent_config unless parent_config.nil?

    yield self if block_given?
  end

  ##
  # Configurations for individual RPCs
  # @return [Rpcs]
  #
  def rpcs
    @rpcs ||= begin
      parent_rpcs = nil
      parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
      Rpcs.new parent_rpcs
    end
  end

  ##
  # Configuration RPC class for the Instances API.
  #
  # Includes fields providing the configuration for each RPC in this service.
  # Each configuration object is of type `Gapic::Config::Method` and includes
  # the following configuration fields:
  #
  #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
  #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
  #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
  #     include the following keys:
  #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
  #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
  #      *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
  #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
  #         trigger a retry.
  #
  class Rpcs
    ##
    # RPC-specific configuration for `add_access_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :add_access_config
    ##
    # RPC-specific configuration for `add_resource_policies`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :add_resource_policies
    ##
    # RPC-specific configuration for `aggregated_list`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :aggregated_list
    ##
    # RPC-specific configuration for `attach_disk`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :attach_disk
    ##
    # RPC-specific configuration for `bulk_insert`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :bulk_insert
    ##
    # RPC-specific configuration for `delete`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete
    ##
    # RPC-specific configuration for `delete_access_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_access_config
    ##
    # RPC-specific configuration for `detach_disk`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :detach_disk
    ##
    # RPC-specific configuration for `get`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get
    ##
    # RPC-specific configuration for `get_effective_firewalls`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_effective_firewalls
    ##
    # RPC-specific configuration for `get_guest_attributes`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_guest_attributes
    ##
    # RPC-specific configuration for `get_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_iam_policy
    ##
    # RPC-specific configuration for `get_screenshot`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_screenshot
    ##
    # RPC-specific configuration for `get_serial_port_output`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_serial_port_output
    ##
    # RPC-specific configuration for `get_shielded_instance_identity`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_shielded_instance_identity
    ##
    # RPC-specific configuration for `insert`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :insert
    ##
    # RPC-specific configuration for `list`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list
    ##
    # RPC-specific configuration for `list_referrers`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_referrers
    ##
    # RPC-specific configuration for `perform_maintenance`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :perform_maintenance
    ##
    # RPC-specific configuration for `remove_resource_policies`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :remove_resource_policies
    ##
    # RPC-specific configuration for `reset`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :reset
    ##
    # RPC-specific configuration for `resume`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :resume
    ##
    # RPC-specific configuration for `send_diagnostic_interrupt`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :send_diagnostic_interrupt
    ##
    # RPC-specific configuration for `set_deletion_protection`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_deletion_protection
    ##
    # RPC-specific configuration for `set_disk_auto_delete`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_disk_auto_delete
    ##
    # RPC-specific configuration for `set_iam_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_iam_policy
    ##
    # RPC-specific configuration for `set_labels`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_labels
    ##
    # RPC-specific configuration for `set_machine_resources`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_machine_resources
    ##
    # RPC-specific configuration for `set_machine_type`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_machine_type
    ##
    # RPC-specific configuration for `set_metadata`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_metadata
    ##
    # RPC-specific configuration for `set_min_cpu_platform`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_min_cpu_platform
    ##
    # RPC-specific configuration for `set_name`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_name
    ##
    # RPC-specific configuration for `set_scheduling`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_scheduling
    ##
    # RPC-specific configuration for `set_security_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_security_policy
    ##
    # RPC-specific configuration for `set_service_account`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_service_account
    ##
    # RPC-specific configuration for `set_shielded_instance_integrity_policy`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_shielded_instance_integrity_policy
    ##
    # RPC-specific configuration for `set_tags`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :set_tags
    ##
    # RPC-specific configuration for `simulate_maintenance_event`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :simulate_maintenance_event
    ##
    # RPC-specific configuration for `start`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :start
    ##
    # RPC-specific configuration for `start_with_encryption_key`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :start_with_encryption_key
    ##
    # RPC-specific configuration for `stop`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :stop
    ##
    # RPC-specific configuration for `suspend`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :suspend
    ##
    # RPC-specific configuration for `test_iam_permissions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :test_iam_permissions
    ##
    # RPC-specific configuration for `update`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update
    ##
    # RPC-specific configuration for `update_access_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_access_config
    ##
    # RPC-specific configuration for `update_display_device`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_display_device
    ##
    # RPC-specific configuration for `update_network_interface`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_network_interface
    ##
    # RPC-specific configuration for `update_shielded_instance_config`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_shielded_instance_config

    # @private
    def initialize parent_rpcs = nil
      add_access_config_config = parent_rpcs.add_access_config if parent_rpcs.respond_to? :add_access_config
      @add_access_config = ::Gapic::Config::Method.new add_access_config_config
      add_resource_policies_config = parent_rpcs.add_resource_policies if parent_rpcs.respond_to? :add_resource_policies
      @add_resource_policies = ::Gapic::Config::Method.new add_resource_policies_config
      aggregated_list_config = parent_rpcs.aggregated_list if parent_rpcs.respond_to? :aggregated_list
      @aggregated_list = ::Gapic::Config::Method.new aggregated_list_config
      attach_disk_config = parent_rpcs.attach_disk if parent_rpcs.respond_to? :attach_disk
      @attach_disk = ::Gapic::Config::Method.new attach_disk_config
      bulk_insert_config = parent_rpcs.bulk_insert if parent_rpcs.respond_to? :bulk_insert
      @bulk_insert = ::Gapic::Config::Method.new bulk_insert_config
      delete_config = parent_rpcs.delete if parent_rpcs.respond_to? :delete
      @delete = ::Gapic::Config::Method.new delete_config
      delete_access_config_config = parent_rpcs.delete_access_config if parent_rpcs.respond_to? :delete_access_config
      @delete_access_config = ::Gapic::Config::Method.new delete_access_config_config
      detach_disk_config = parent_rpcs.detach_disk if parent_rpcs.respond_to? :detach_disk
      @detach_disk = ::Gapic::Config::Method.new detach_disk_config
      get_config = parent_rpcs.get if parent_rpcs.respond_to? :get
      @get = ::Gapic::Config::Method.new get_config
      get_effective_firewalls_config = parent_rpcs.get_effective_firewalls if parent_rpcs.respond_to? :get_effective_firewalls
      @get_effective_firewalls = ::Gapic::Config::Method.new get_effective_firewalls_config
      get_guest_attributes_config = parent_rpcs.get_guest_attributes if parent_rpcs.respond_to? :get_guest_attributes
      @get_guest_attributes = ::Gapic::Config::Method.new get_guest_attributes_config
      get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
      @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
      get_screenshot_config = parent_rpcs.get_screenshot if parent_rpcs.respond_to? :get_screenshot
      @get_screenshot = ::Gapic::Config::Method.new get_screenshot_config
      get_serial_port_output_config = parent_rpcs.get_serial_port_output if parent_rpcs.respond_to? :get_serial_port_output
      @get_serial_port_output = ::Gapic::Config::Method.new get_serial_port_output_config
      get_shielded_instance_identity_config = parent_rpcs.get_shielded_instance_identity if parent_rpcs.respond_to? :get_shielded_instance_identity
      @get_shielded_instance_identity = ::Gapic::Config::Method.new get_shielded_instance_identity_config
      insert_config = parent_rpcs.insert if parent_rpcs.respond_to? :insert
      @insert = ::Gapic::Config::Method.new insert_config
      list_config = parent_rpcs.list if parent_rpcs.respond_to? :list
      @list = ::Gapic::Config::Method.new list_config
      list_referrers_config = parent_rpcs.list_referrers if parent_rpcs.respond_to? :list_referrers
      @list_referrers = ::Gapic::Config::Method.new list_referrers_config
      perform_maintenance_config = parent_rpcs.perform_maintenance if parent_rpcs.respond_to? :perform_maintenance
      @perform_maintenance = ::Gapic::Config::Method.new perform_maintenance_config
      remove_resource_policies_config = parent_rpcs.remove_resource_policies if parent_rpcs.respond_to? :remove_resource_policies
      @remove_resource_policies = ::Gapic::Config::Method.new remove_resource_policies_config
      reset_config = parent_rpcs.reset if parent_rpcs.respond_to? :reset
      @reset = ::Gapic::Config::Method.new reset_config
      resume_config = parent_rpcs.resume if parent_rpcs.respond_to? :resume
      @resume = ::Gapic::Config::Method.new resume_config
      send_diagnostic_interrupt_config = parent_rpcs.send_diagnostic_interrupt if parent_rpcs.respond_to? :send_diagnostic_interrupt
      @send_diagnostic_interrupt = ::Gapic::Config::Method.new send_diagnostic_interrupt_config
      set_deletion_protection_config = parent_rpcs.set_deletion_protection if parent_rpcs.respond_to? :set_deletion_protection
      @set_deletion_protection = ::Gapic::Config::Method.new set_deletion_protection_config
      set_disk_auto_delete_config = parent_rpcs.set_disk_auto_delete if parent_rpcs.respond_to? :set_disk_auto_delete
      @set_disk_auto_delete = ::Gapic::Config::Method.new set_disk_auto_delete_config
      set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
      @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
      set_labels_config = parent_rpcs.set_labels if parent_rpcs.respond_to? :set_labels
      @set_labels = ::Gapic::Config::Method.new set_labels_config
      set_machine_resources_config = parent_rpcs.set_machine_resources if parent_rpcs.respond_to? :set_machine_resources
      @set_machine_resources = ::Gapic::Config::Method.new set_machine_resources_config
      set_machine_type_config = parent_rpcs.set_machine_type if parent_rpcs.respond_to? :set_machine_type
      @set_machine_type = ::Gapic::Config::Method.new set_machine_type_config
       = parent_rpcs. if parent_rpcs.respond_to? :set_metadata
      @set_metadata = ::Gapic::Config::Method.new 
      set_min_cpu_platform_config = parent_rpcs.set_min_cpu_platform if parent_rpcs.respond_to? :set_min_cpu_platform
      @set_min_cpu_platform = ::Gapic::Config::Method.new set_min_cpu_platform_config
      set_name_config = parent_rpcs.set_name if parent_rpcs.respond_to? :set_name
      @set_name = ::Gapic::Config::Method.new set_name_config
      set_scheduling_config = parent_rpcs.set_scheduling if parent_rpcs.respond_to? :set_scheduling
      @set_scheduling = ::Gapic::Config::Method.new set_scheduling_config
      set_security_policy_config = parent_rpcs.set_security_policy if parent_rpcs.respond_to? :set_security_policy
      @set_security_policy = ::Gapic::Config::Method.new set_security_policy_config
       = parent_rpcs. if parent_rpcs.respond_to? :set_service_account
      @set_service_account = ::Gapic::Config::Method.new 
      set_shielded_instance_integrity_policy_config = parent_rpcs.set_shielded_instance_integrity_policy if parent_rpcs.respond_to? :set_shielded_instance_integrity_policy
      @set_shielded_instance_integrity_policy = ::Gapic::Config::Method.new set_shielded_instance_integrity_policy_config
      set_tags_config = parent_rpcs.set_tags if parent_rpcs.respond_to? :set_tags
      @set_tags = ::Gapic::Config::Method.new set_tags_config
      simulate_maintenance_event_config = parent_rpcs.simulate_maintenance_event if parent_rpcs.respond_to? :simulate_maintenance_event
      @simulate_maintenance_event = ::Gapic::Config::Method.new simulate_maintenance_event_config
      start_config = parent_rpcs.start if parent_rpcs.respond_to? :start
      @start = ::Gapic::Config::Method.new start_config
      start_with_encryption_key_config = parent_rpcs.start_with_encryption_key if parent_rpcs.respond_to? :start_with_encryption_key
      @start_with_encryption_key = ::Gapic::Config::Method.new start_with_encryption_key_config
      stop_config = parent_rpcs.stop if parent_rpcs.respond_to? :stop
      @stop = ::Gapic::Config::Method.new stop_config
      suspend_config = parent_rpcs.suspend if parent_rpcs.respond_to? :suspend
      @suspend = ::Gapic::Config::Method.new suspend_config
      test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
      @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
      update_config = parent_rpcs.update if parent_rpcs.respond_to? :update
      @update = ::Gapic::Config::Method.new update_config
      update_access_config_config = parent_rpcs.update_access_config if parent_rpcs.respond_to? :update_access_config
      @update_access_config = ::Gapic::Config::Method.new update_access_config_config
      update_display_device_config = parent_rpcs.update_display_device if parent_rpcs.respond_to? :update_display_device
      @update_display_device = ::Gapic::Config::Method.new update_display_device_config
      update_network_interface_config = parent_rpcs.update_network_interface if parent_rpcs.respond_to? :update_network_interface
      @update_network_interface = ::Gapic::Config::Method.new update_network_interface_config
      update_shielded_instance_config_config = parent_rpcs.update_shielded_instance_config if parent_rpcs.respond_to? :update_shielded_instance_config
      @update_shielded_instance_config = ::Gapic::Config::Method.new update_shielded_instance_config_config

      yield self if block_given?
    end
  end
end

Instance Method Details

#rpcsRpcs

Configurations for individual RPCs

Returns:



4899
4900
4901
4902
4903
4904
4905
# File 'lib/google/cloud/compute/v1/instances/rest/client.rb', line 4899

def rpcs
  @rpcs ||= begin
    parent_rpcs = nil
    parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
    Rpcs.new parent_rpcs
  end
end