Class: Google::Cloud::ApigeeRegistry::V1::Registry::Client::Configuration

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

Overview

Configuration class for the Registry API.

This class represents the configuration for Registry, 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
# list_apis to 20 seconds,
# and all remaining timeouts to 10 seconds.
::Google::Cloud::ApigeeRegistry::V1::Registry::Client.configure do |config|
  config.timeout = 10.0
  config.rpcs.list_apis.timeout = 20.0
end

# Apply the above configuration only to a new client.
client = ::Google::Cloud::ApigeeRegistry::V1::Registry::Client.new do |config|
  config.timeout = 10.0
  config.rpcs.list_apis.timeout = 20.0
end

Defined Under Namespace

Classes: Rpcs

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#channel_args::Hash

Extra parameters passed to the gRPC channel. Note: this is ignored if a GRPC::Core::Channel object is provided as the credential.

Returns:

  • (::Hash)


3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
# File 'lib/google/cloud/apigee_registry/v1/registry/client.rb', line 3744

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "apigeeregistry.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 += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
    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(:channel_args,  { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
  config_attr :interceptors,  nil, ::Array, 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 for the channel pool
  # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
  #
  def channel_pool
    @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
  end

  ##
  # Configuration RPC class for the Registry 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 gRPC 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 `list_apis`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_apis
    ##
    # RPC-specific configuration for `get_api`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api
    ##
    # RPC-specific configuration for `create_api`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_api
    ##
    # RPC-specific configuration for `update_api`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_api
    ##
    # RPC-specific configuration for `delete_api`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api
    ##
    # RPC-specific configuration for `list_api_versions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_versions
    ##
    # RPC-specific configuration for `get_api_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api_version
    ##
    # RPC-specific configuration for `create_api_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_api_version
    ##
    # RPC-specific configuration for `update_api_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_api_version
    ##
    # RPC-specific configuration for `delete_api_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_version
    ##
    # RPC-specific configuration for `list_api_specs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_specs
    ##
    # RPC-specific configuration for `get_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api_spec
    ##
    # RPC-specific configuration for `get_api_spec_contents`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api_spec_contents
    ##
    # RPC-specific configuration for `create_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_api_spec
    ##
    # RPC-specific configuration for `update_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_api_spec
    ##
    # RPC-specific configuration for `delete_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_spec
    ##
    # RPC-specific configuration for `tag_api_spec_revision`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :tag_api_spec_revision
    ##
    # RPC-specific configuration for `list_api_spec_revisions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_spec_revisions
    ##
    # RPC-specific configuration for `rollback_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :rollback_api_spec
    ##
    # RPC-specific configuration for `delete_api_spec_revision`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_spec_revision
    ##
    # RPC-specific configuration for `list_api_deployments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_deployments
    ##
    # RPC-specific configuration for `get_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api_deployment
    ##
    # RPC-specific configuration for `create_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_api_deployment
    ##
    # RPC-specific configuration for `update_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_api_deployment
    ##
    # RPC-specific configuration for `delete_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_deployment
    ##
    # RPC-specific configuration for `tag_api_deployment_revision`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :tag_api_deployment_revision
    ##
    # RPC-specific configuration for `list_api_deployment_revisions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_deployment_revisions
    ##
    # RPC-specific configuration for `rollback_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :rollback_api_deployment
    ##
    # RPC-specific configuration for `delete_api_deployment_revision`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_deployment_revision
    ##
    # RPC-specific configuration for `list_artifacts`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_artifacts
    ##
    # RPC-specific configuration for `get_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_artifact
    ##
    # RPC-specific configuration for `get_artifact_contents`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_artifact_contents
    ##
    # RPC-specific configuration for `create_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_artifact
    ##
    # RPC-specific configuration for `replace_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :replace_artifact
    ##
    # RPC-specific configuration for `delete_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_artifact

    # @private
    def initialize parent_rpcs = nil
      list_apis_config = parent_rpcs.list_apis if parent_rpcs.respond_to? :list_apis
      @list_apis = ::Gapic::Config::Method.new list_apis_config
      get_api_config = parent_rpcs.get_api if parent_rpcs.respond_to? :get_api
      @get_api = ::Gapic::Config::Method.new get_api_config
      create_api_config = parent_rpcs.create_api if parent_rpcs.respond_to? :create_api
      @create_api = ::Gapic::Config::Method.new create_api_config
      update_api_config = parent_rpcs.update_api if parent_rpcs.respond_to? :update_api
      @update_api = ::Gapic::Config::Method.new update_api_config
      delete_api_config = parent_rpcs.delete_api if parent_rpcs.respond_to? :delete_api
      @delete_api = ::Gapic::Config::Method.new delete_api_config
      list_api_versions_config = parent_rpcs.list_api_versions if parent_rpcs.respond_to? :list_api_versions
      @list_api_versions = ::Gapic::Config::Method.new list_api_versions_config
      get_api_version_config = parent_rpcs.get_api_version if parent_rpcs.respond_to? :get_api_version
      @get_api_version = ::Gapic::Config::Method.new get_api_version_config
      create_api_version_config = parent_rpcs.create_api_version if parent_rpcs.respond_to? :create_api_version
      @create_api_version = ::Gapic::Config::Method.new create_api_version_config
      update_api_version_config = parent_rpcs.update_api_version if parent_rpcs.respond_to? :update_api_version
      @update_api_version = ::Gapic::Config::Method.new update_api_version_config
      delete_api_version_config = parent_rpcs.delete_api_version if parent_rpcs.respond_to? :delete_api_version
      @delete_api_version = ::Gapic::Config::Method.new delete_api_version_config
      list_api_specs_config = parent_rpcs.list_api_specs if parent_rpcs.respond_to? :list_api_specs
      @list_api_specs = ::Gapic::Config::Method.new list_api_specs_config
      get_api_spec_config = parent_rpcs.get_api_spec if parent_rpcs.respond_to? :get_api_spec
      @get_api_spec = ::Gapic::Config::Method.new get_api_spec_config
      get_api_spec_contents_config = parent_rpcs.get_api_spec_contents if parent_rpcs.respond_to? :get_api_spec_contents
      @get_api_spec_contents = ::Gapic::Config::Method.new get_api_spec_contents_config
      create_api_spec_config = parent_rpcs.create_api_spec if parent_rpcs.respond_to? :create_api_spec
      @create_api_spec = ::Gapic::Config::Method.new create_api_spec_config
      update_api_spec_config = parent_rpcs.update_api_spec if parent_rpcs.respond_to? :update_api_spec
      @update_api_spec = ::Gapic::Config::Method.new update_api_spec_config
      delete_api_spec_config = parent_rpcs.delete_api_spec if parent_rpcs.respond_to? :delete_api_spec
      @delete_api_spec = ::Gapic::Config::Method.new delete_api_spec_config
      tag_api_spec_revision_config = parent_rpcs.tag_api_spec_revision if parent_rpcs.respond_to? :tag_api_spec_revision
      @tag_api_spec_revision = ::Gapic::Config::Method.new tag_api_spec_revision_config
      list_api_spec_revisions_config = parent_rpcs.list_api_spec_revisions if parent_rpcs.respond_to? :list_api_spec_revisions
      @list_api_spec_revisions = ::Gapic::Config::Method.new list_api_spec_revisions_config
      rollback_api_spec_config = parent_rpcs.rollback_api_spec if parent_rpcs.respond_to? :rollback_api_spec
      @rollback_api_spec = ::Gapic::Config::Method.new rollback_api_spec_config
      delete_api_spec_revision_config = parent_rpcs.delete_api_spec_revision if parent_rpcs.respond_to? :delete_api_spec_revision
      @delete_api_spec_revision = ::Gapic::Config::Method.new delete_api_spec_revision_config
      list_api_deployments_config = parent_rpcs.list_api_deployments if parent_rpcs.respond_to? :list_api_deployments
      @list_api_deployments = ::Gapic::Config::Method.new list_api_deployments_config
      get_api_deployment_config = parent_rpcs.get_api_deployment if parent_rpcs.respond_to? :get_api_deployment
      @get_api_deployment = ::Gapic::Config::Method.new get_api_deployment_config
      create_api_deployment_config = parent_rpcs.create_api_deployment if parent_rpcs.respond_to? :create_api_deployment
      @create_api_deployment = ::Gapic::Config::Method.new create_api_deployment_config
      update_api_deployment_config = parent_rpcs.update_api_deployment if parent_rpcs.respond_to? :update_api_deployment
      @update_api_deployment = ::Gapic::Config::Method.new update_api_deployment_config
      delete_api_deployment_config = parent_rpcs.delete_api_deployment if parent_rpcs.respond_to? :delete_api_deployment
      @delete_api_deployment = ::Gapic::Config::Method.new delete_api_deployment_config
      tag_api_deployment_revision_config = parent_rpcs.tag_api_deployment_revision if parent_rpcs.respond_to? :tag_api_deployment_revision
      @tag_api_deployment_revision = ::Gapic::Config::Method.new tag_api_deployment_revision_config
      list_api_deployment_revisions_config = parent_rpcs.list_api_deployment_revisions if parent_rpcs.respond_to? :list_api_deployment_revisions
      @list_api_deployment_revisions = ::Gapic::Config::Method.new list_api_deployment_revisions_config
      rollback_api_deployment_config = parent_rpcs.rollback_api_deployment if parent_rpcs.respond_to? :rollback_api_deployment
      @rollback_api_deployment = ::Gapic::Config::Method.new rollback_api_deployment_config
      delete_api_deployment_revision_config = parent_rpcs.delete_api_deployment_revision if parent_rpcs.respond_to? :delete_api_deployment_revision
      @delete_api_deployment_revision = ::Gapic::Config::Method.new delete_api_deployment_revision_config
      list_artifacts_config = parent_rpcs.list_artifacts if parent_rpcs.respond_to? :list_artifacts
      @list_artifacts = ::Gapic::Config::Method.new list_artifacts_config
      get_artifact_config = parent_rpcs.get_artifact if parent_rpcs.respond_to? :get_artifact
      @get_artifact = ::Gapic::Config::Method.new get_artifact_config
      get_artifact_contents_config = parent_rpcs.get_artifact_contents if parent_rpcs.respond_to? :get_artifact_contents
      @get_artifact_contents = ::Gapic::Config::Method.new get_artifact_contents_config
      create_artifact_config = parent_rpcs.create_artifact if parent_rpcs.respond_to? :create_artifact
      @create_artifact = ::Gapic::Config::Method.new create_artifact_config
      replace_artifact_config = parent_rpcs.replace_artifact if parent_rpcs.respond_to? :replace_artifact
      @replace_artifact = ::Gapic::Config::Method.new replace_artifact_config
      delete_artifact_config = parent_rpcs.delete_artifact if parent_rpcs.respond_to? :delete_artifact
      @delete_artifact = ::Gapic::Config::Method.new delete_artifact_config

      yield self if block_given?
    end
  end
end

#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)
  • (GRPC::Core::Channel) a gRPC channel with included credentials
  • (GRPC::Core::ChannelCredentials) a gRPC credentails object
  • (nil) indicating no credentials

Returns:

  • (::Object)


3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
# File 'lib/google/cloud/apigee_registry/v1/registry/client.rb', line 3744

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "apigeeregistry.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 += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
    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(:channel_args,  { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
  config_attr :interceptors,  nil, ::Array, 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 for the channel pool
  # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
  #
  def channel_pool
    @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
  end

  ##
  # Configuration RPC class for the Registry 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 gRPC 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 `list_apis`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_apis
    ##
    # RPC-specific configuration for `get_api`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api
    ##
    # RPC-specific configuration for `create_api`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_api
    ##
    # RPC-specific configuration for `update_api`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_api
    ##
    # RPC-specific configuration for `delete_api`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api
    ##
    # RPC-specific configuration for `list_api_versions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_versions
    ##
    # RPC-specific configuration for `get_api_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api_version
    ##
    # RPC-specific configuration for `create_api_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_api_version
    ##
    # RPC-specific configuration for `update_api_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_api_version
    ##
    # RPC-specific configuration for `delete_api_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_version
    ##
    # RPC-specific configuration for `list_api_specs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_specs
    ##
    # RPC-specific configuration for `get_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api_spec
    ##
    # RPC-specific configuration for `get_api_spec_contents`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api_spec_contents
    ##
    # RPC-specific configuration for `create_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_api_spec
    ##
    # RPC-specific configuration for `update_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_api_spec
    ##
    # RPC-specific configuration for `delete_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_spec
    ##
    # RPC-specific configuration for `tag_api_spec_revision`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :tag_api_spec_revision
    ##
    # RPC-specific configuration for `list_api_spec_revisions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_spec_revisions
    ##
    # RPC-specific configuration for `rollback_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :rollback_api_spec
    ##
    # RPC-specific configuration for `delete_api_spec_revision`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_spec_revision
    ##
    # RPC-specific configuration for `list_api_deployments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_deployments
    ##
    # RPC-specific configuration for `get_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api_deployment
    ##
    # RPC-specific configuration for `create_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_api_deployment
    ##
    # RPC-specific configuration for `update_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_api_deployment
    ##
    # RPC-specific configuration for `delete_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_deployment
    ##
    # RPC-specific configuration for `tag_api_deployment_revision`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :tag_api_deployment_revision
    ##
    # RPC-specific configuration for `list_api_deployment_revisions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_deployment_revisions
    ##
    # RPC-specific configuration for `rollback_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :rollback_api_deployment
    ##
    # RPC-specific configuration for `delete_api_deployment_revision`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_deployment_revision
    ##
    # RPC-specific configuration for `list_artifacts`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_artifacts
    ##
    # RPC-specific configuration for `get_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_artifact
    ##
    # RPC-specific configuration for `get_artifact_contents`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_artifact_contents
    ##
    # RPC-specific configuration for `create_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_artifact
    ##
    # RPC-specific configuration for `replace_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :replace_artifact
    ##
    # RPC-specific configuration for `delete_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_artifact

    # @private
    def initialize parent_rpcs = nil
      list_apis_config = parent_rpcs.list_apis if parent_rpcs.respond_to? :list_apis
      @list_apis = ::Gapic::Config::Method.new list_apis_config
      get_api_config = parent_rpcs.get_api if parent_rpcs.respond_to? :get_api
      @get_api = ::Gapic::Config::Method.new get_api_config
      create_api_config = parent_rpcs.create_api if parent_rpcs.respond_to? :create_api
      @create_api = ::Gapic::Config::Method.new create_api_config
      update_api_config = parent_rpcs.update_api if parent_rpcs.respond_to? :update_api
      @update_api = ::Gapic::Config::Method.new update_api_config
      delete_api_config = parent_rpcs.delete_api if parent_rpcs.respond_to? :delete_api
      @delete_api = ::Gapic::Config::Method.new delete_api_config
      list_api_versions_config = parent_rpcs.list_api_versions if parent_rpcs.respond_to? :list_api_versions
      @list_api_versions = ::Gapic::Config::Method.new list_api_versions_config
      get_api_version_config = parent_rpcs.get_api_version if parent_rpcs.respond_to? :get_api_version
      @get_api_version = ::Gapic::Config::Method.new get_api_version_config
      create_api_version_config = parent_rpcs.create_api_version if parent_rpcs.respond_to? :create_api_version
      @create_api_version = ::Gapic::Config::Method.new create_api_version_config
      update_api_version_config = parent_rpcs.update_api_version if parent_rpcs.respond_to? :update_api_version
      @update_api_version = ::Gapic::Config::Method.new update_api_version_config
      delete_api_version_config = parent_rpcs.delete_api_version if parent_rpcs.respond_to? :delete_api_version
      @delete_api_version = ::Gapic::Config::Method.new delete_api_version_config
      list_api_specs_config = parent_rpcs.list_api_specs if parent_rpcs.respond_to? :list_api_specs
      @list_api_specs = ::Gapic::Config::Method.new list_api_specs_config
      get_api_spec_config = parent_rpcs.get_api_spec if parent_rpcs.respond_to? :get_api_spec
      @get_api_spec = ::Gapic::Config::Method.new get_api_spec_config
      get_api_spec_contents_config = parent_rpcs.get_api_spec_contents if parent_rpcs.respond_to? :get_api_spec_contents
      @get_api_spec_contents = ::Gapic::Config::Method.new get_api_spec_contents_config
      create_api_spec_config = parent_rpcs.create_api_spec if parent_rpcs.respond_to? :create_api_spec
      @create_api_spec = ::Gapic::Config::Method.new create_api_spec_config
      update_api_spec_config = parent_rpcs.update_api_spec if parent_rpcs.respond_to? :update_api_spec
      @update_api_spec = ::Gapic::Config::Method.new update_api_spec_config
      delete_api_spec_config = parent_rpcs.delete_api_spec if parent_rpcs.respond_to? :delete_api_spec
      @delete_api_spec = ::Gapic::Config::Method.new delete_api_spec_config
      tag_api_spec_revision_config = parent_rpcs.tag_api_spec_revision if parent_rpcs.respond_to? :tag_api_spec_revision
      @tag_api_spec_revision = ::Gapic::Config::Method.new tag_api_spec_revision_config
      list_api_spec_revisions_config = parent_rpcs.list_api_spec_revisions if parent_rpcs.respond_to? :list_api_spec_revisions
      @list_api_spec_revisions = ::Gapic::Config::Method.new list_api_spec_revisions_config
      rollback_api_spec_config = parent_rpcs.rollback_api_spec if parent_rpcs.respond_to? :rollback_api_spec
      @rollback_api_spec = ::Gapic::Config::Method.new rollback_api_spec_config
      delete_api_spec_revision_config = parent_rpcs.delete_api_spec_revision if parent_rpcs.respond_to? :delete_api_spec_revision
      @delete_api_spec_revision = ::Gapic::Config::Method.new delete_api_spec_revision_config
      list_api_deployments_config = parent_rpcs.list_api_deployments if parent_rpcs.respond_to? :list_api_deployments
      @list_api_deployments = ::Gapic::Config::Method.new list_api_deployments_config
      get_api_deployment_config = parent_rpcs.get_api_deployment if parent_rpcs.respond_to? :get_api_deployment
      @get_api_deployment = ::Gapic::Config::Method.new get_api_deployment_config
      create_api_deployment_config = parent_rpcs.create_api_deployment if parent_rpcs.respond_to? :create_api_deployment
      @create_api_deployment = ::Gapic::Config::Method.new create_api_deployment_config
      update_api_deployment_config = parent_rpcs.update_api_deployment if parent_rpcs.respond_to? :update_api_deployment
      @update_api_deployment = ::Gapic::Config::Method.new update_api_deployment_config
      delete_api_deployment_config = parent_rpcs.delete_api_deployment if parent_rpcs.respond_to? :delete_api_deployment
      @delete_api_deployment = ::Gapic::Config::Method.new delete_api_deployment_config
      tag_api_deployment_revision_config = parent_rpcs.tag_api_deployment_revision if parent_rpcs.respond_to? :tag_api_deployment_revision
      @tag_api_deployment_revision = ::Gapic::Config::Method.new tag_api_deployment_revision_config
      list_api_deployment_revisions_config = parent_rpcs.list_api_deployment_revisions if parent_rpcs.respond_to? :list_api_deployment_revisions
      @list_api_deployment_revisions = ::Gapic::Config::Method.new list_api_deployment_revisions_config
      rollback_api_deployment_config = parent_rpcs.rollback_api_deployment if parent_rpcs.respond_to? :rollback_api_deployment
      @rollback_api_deployment = ::Gapic::Config::Method.new rollback_api_deployment_config
      delete_api_deployment_revision_config = parent_rpcs.delete_api_deployment_revision if parent_rpcs.respond_to? :delete_api_deployment_revision
      @delete_api_deployment_revision = ::Gapic::Config::Method.new delete_api_deployment_revision_config
      list_artifacts_config = parent_rpcs.list_artifacts if parent_rpcs.respond_to? :list_artifacts
      @list_artifacts = ::Gapic::Config::Method.new list_artifacts_config
      get_artifact_config = parent_rpcs.get_artifact if parent_rpcs.respond_to? :get_artifact
      @get_artifact = ::Gapic::Config::Method.new get_artifact_config
      get_artifact_contents_config = parent_rpcs.get_artifact_contents if parent_rpcs.respond_to? :get_artifact_contents
      @get_artifact_contents = ::Gapic::Config::Method.new get_artifact_contents_config
      create_artifact_config = parent_rpcs.create_artifact if parent_rpcs.respond_to? :create_artifact
      @create_artifact = ::Gapic::Config::Method.new create_artifact_config
      replace_artifact_config = parent_rpcs.replace_artifact if parent_rpcs.respond_to? :replace_artifact
      @replace_artifact = ::Gapic::Config::Method.new replace_artifact_config
      delete_artifact_config = parent_rpcs.delete_artifact if parent_rpcs.respond_to? :delete_artifact
      @delete_artifact = ::Gapic::Config::Method.new delete_artifact_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)


3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
# File 'lib/google/cloud/apigee_registry/v1/registry/client.rb', line 3744

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "apigeeregistry.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 += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
    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(:channel_args,  { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
  config_attr :interceptors,  nil, ::Array, 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 for the channel pool
  # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
  #
  def channel_pool
    @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
  end

  ##
  # Configuration RPC class for the Registry 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 gRPC 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 `list_apis`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_apis
    ##
    # RPC-specific configuration for `get_api`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api
    ##
    # RPC-specific configuration for `create_api`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_api
    ##
    # RPC-specific configuration for `update_api`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_api
    ##
    # RPC-specific configuration for `delete_api`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api
    ##
    # RPC-specific configuration for `list_api_versions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_versions
    ##
    # RPC-specific configuration for `get_api_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api_version
    ##
    # RPC-specific configuration for `create_api_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_api_version
    ##
    # RPC-specific configuration for `update_api_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_api_version
    ##
    # RPC-specific configuration for `delete_api_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_version
    ##
    # RPC-specific configuration for `list_api_specs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_specs
    ##
    # RPC-specific configuration for `get_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api_spec
    ##
    # RPC-specific configuration for `get_api_spec_contents`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api_spec_contents
    ##
    # RPC-specific configuration for `create_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_api_spec
    ##
    # RPC-specific configuration for `update_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_api_spec
    ##
    # RPC-specific configuration for `delete_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_spec
    ##
    # RPC-specific configuration for `tag_api_spec_revision`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :tag_api_spec_revision
    ##
    # RPC-specific configuration for `list_api_spec_revisions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_spec_revisions
    ##
    # RPC-specific configuration for `rollback_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :rollback_api_spec
    ##
    # RPC-specific configuration for `delete_api_spec_revision`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_spec_revision
    ##
    # RPC-specific configuration for `list_api_deployments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_deployments
    ##
    # RPC-specific configuration for `get_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api_deployment
    ##
    # RPC-specific configuration for `create_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_api_deployment
    ##
    # RPC-specific configuration for `update_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_api_deployment
    ##
    # RPC-specific configuration for `delete_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_deployment
    ##
    # RPC-specific configuration for `tag_api_deployment_revision`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :tag_api_deployment_revision
    ##
    # RPC-specific configuration for `list_api_deployment_revisions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_deployment_revisions
    ##
    # RPC-specific configuration for `rollback_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :rollback_api_deployment
    ##
    # RPC-specific configuration for `delete_api_deployment_revision`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_deployment_revision
    ##
    # RPC-specific configuration for `list_artifacts`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_artifacts
    ##
    # RPC-specific configuration for `get_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_artifact
    ##
    # RPC-specific configuration for `get_artifact_contents`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_artifact_contents
    ##
    # RPC-specific configuration for `create_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_artifact
    ##
    # RPC-specific configuration for `replace_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :replace_artifact
    ##
    # RPC-specific configuration for `delete_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_artifact

    # @private
    def initialize parent_rpcs = nil
      list_apis_config = parent_rpcs.list_apis if parent_rpcs.respond_to? :list_apis
      @list_apis = ::Gapic::Config::Method.new list_apis_config
      get_api_config = parent_rpcs.get_api if parent_rpcs.respond_to? :get_api
      @get_api = ::Gapic::Config::Method.new get_api_config
      create_api_config = parent_rpcs.create_api if parent_rpcs.respond_to? :create_api
      @create_api = ::Gapic::Config::Method.new create_api_config
      update_api_config = parent_rpcs.update_api if parent_rpcs.respond_to? :update_api
      @update_api = ::Gapic::Config::Method.new update_api_config
      delete_api_config = parent_rpcs.delete_api if parent_rpcs.respond_to? :delete_api
      @delete_api = ::Gapic::Config::Method.new delete_api_config
      list_api_versions_config = parent_rpcs.list_api_versions if parent_rpcs.respond_to? :list_api_versions
      @list_api_versions = ::Gapic::Config::Method.new list_api_versions_config
      get_api_version_config = parent_rpcs.get_api_version if parent_rpcs.respond_to? :get_api_version
      @get_api_version = ::Gapic::Config::Method.new get_api_version_config
      create_api_version_config = parent_rpcs.create_api_version if parent_rpcs.respond_to? :create_api_version
      @create_api_version = ::Gapic::Config::Method.new create_api_version_config
      update_api_version_config = parent_rpcs.update_api_version if parent_rpcs.respond_to? :update_api_version
      @update_api_version = ::Gapic::Config::Method.new update_api_version_config
      delete_api_version_config = parent_rpcs.delete_api_version if parent_rpcs.respond_to? :delete_api_version
      @delete_api_version = ::Gapic::Config::Method.new delete_api_version_config
      list_api_specs_config = parent_rpcs.list_api_specs if parent_rpcs.respond_to? :list_api_specs
      @list_api_specs = ::Gapic::Config::Method.new list_api_specs_config
      get_api_spec_config = parent_rpcs.get_api_spec if parent_rpcs.respond_to? :get_api_spec
      @get_api_spec = ::Gapic::Config::Method.new get_api_spec_config
      get_api_spec_contents_config = parent_rpcs.get_api_spec_contents if parent_rpcs.respond_to? :get_api_spec_contents
      @get_api_spec_contents = ::Gapic::Config::Method.new get_api_spec_contents_config
      create_api_spec_config = parent_rpcs.create_api_spec if parent_rpcs.respond_to? :create_api_spec
      @create_api_spec = ::Gapic::Config::Method.new create_api_spec_config
      update_api_spec_config = parent_rpcs.update_api_spec if parent_rpcs.respond_to? :update_api_spec
      @update_api_spec = ::Gapic::Config::Method.new update_api_spec_config
      delete_api_spec_config = parent_rpcs.delete_api_spec if parent_rpcs.respond_to? :delete_api_spec
      @delete_api_spec = ::Gapic::Config::Method.new delete_api_spec_config
      tag_api_spec_revision_config = parent_rpcs.tag_api_spec_revision if parent_rpcs.respond_to? :tag_api_spec_revision
      @tag_api_spec_revision = ::Gapic::Config::Method.new tag_api_spec_revision_config
      list_api_spec_revisions_config = parent_rpcs.list_api_spec_revisions if parent_rpcs.respond_to? :list_api_spec_revisions
      @list_api_spec_revisions = ::Gapic::Config::Method.new list_api_spec_revisions_config
      rollback_api_spec_config = parent_rpcs.rollback_api_spec if parent_rpcs.respond_to? :rollback_api_spec
      @rollback_api_spec = ::Gapic::Config::Method.new rollback_api_spec_config
      delete_api_spec_revision_config = parent_rpcs.delete_api_spec_revision if parent_rpcs.respond_to? :delete_api_spec_revision
      @delete_api_spec_revision = ::Gapic::Config::Method.new delete_api_spec_revision_config
      list_api_deployments_config = parent_rpcs.list_api_deployments if parent_rpcs.respond_to? :list_api_deployments
      @list_api_deployments = ::Gapic::Config::Method.new list_api_deployments_config
      get_api_deployment_config = parent_rpcs.get_api_deployment if parent_rpcs.respond_to? :get_api_deployment
      @get_api_deployment = ::Gapic::Config::Method.new get_api_deployment_config
      create_api_deployment_config = parent_rpcs.create_api_deployment if parent_rpcs.respond_to? :create_api_deployment
      @create_api_deployment = ::Gapic::Config::Method.new create_api_deployment_config
      update_api_deployment_config = parent_rpcs.update_api_deployment if parent_rpcs.respond_to? :update_api_deployment
      @update_api_deployment = ::Gapic::Config::Method.new update_api_deployment_config
      delete_api_deployment_config = parent_rpcs.delete_api_deployment if parent_rpcs.respond_to? :delete_api_deployment
      @delete_api_deployment = ::Gapic::Config::Method.new delete_api_deployment_config
      tag_api_deployment_revision_config = parent_rpcs.tag_api_deployment_revision if parent_rpcs.respond_to? :tag_api_deployment_revision
      @tag_api_deployment_revision = ::Gapic::Config::Method.new tag_api_deployment_revision_config
      list_api_deployment_revisions_config = parent_rpcs.list_api_deployment_revisions if parent_rpcs.respond_to? :list_api_deployment_revisions
      @list_api_deployment_revisions = ::Gapic::Config::Method.new list_api_deployment_revisions_config
      rollback_api_deployment_config = parent_rpcs.rollback_api_deployment if parent_rpcs.respond_to? :rollback_api_deployment
      @rollback_api_deployment = ::Gapic::Config::Method.new rollback_api_deployment_config
      delete_api_deployment_revision_config = parent_rpcs.delete_api_deployment_revision if parent_rpcs.respond_to? :delete_api_deployment_revision
      @delete_api_deployment_revision = ::Gapic::Config::Method.new delete_api_deployment_revision_config
      list_artifacts_config = parent_rpcs.list_artifacts if parent_rpcs.respond_to? :list_artifacts
      @list_artifacts = ::Gapic::Config::Method.new list_artifacts_config
      get_artifact_config = parent_rpcs.get_artifact if parent_rpcs.respond_to? :get_artifact
      @get_artifact = ::Gapic::Config::Method.new get_artifact_config
      get_artifact_contents_config = parent_rpcs.get_artifact_contents if parent_rpcs.respond_to? :get_artifact_contents
      @get_artifact_contents = ::Gapic::Config::Method.new get_artifact_contents_config
      create_artifact_config = parent_rpcs.create_artifact if parent_rpcs.respond_to? :create_artifact
      @create_artifact = ::Gapic::Config::Method.new create_artifact_config
      replace_artifact_config = parent_rpcs.replace_artifact if parent_rpcs.respond_to? :replace_artifact
      @replace_artifact = ::Gapic::Config::Method.new replace_artifact_config
      delete_artifact_config = parent_rpcs.delete_artifact if parent_rpcs.respond_to? :delete_artifact
      @delete_artifact = ::Gapic::Config::Method.new delete_artifact_config

      yield self if block_given?
    end
  end
end

#interceptors::Array<::GRPC::ClientInterceptor>

An array of interceptors that are run before calls are executed.

Returns:

  • (::Array<::GRPC::ClientInterceptor>)


3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
# File 'lib/google/cloud/apigee_registry/v1/registry/client.rb', line 3744

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "apigeeregistry.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 += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
    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(:channel_args,  { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
  config_attr :interceptors,  nil, ::Array, 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 for the channel pool
  # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
  #
  def channel_pool
    @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
  end

  ##
  # Configuration RPC class for the Registry 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 gRPC 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 `list_apis`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_apis
    ##
    # RPC-specific configuration for `get_api`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api
    ##
    # RPC-specific configuration for `create_api`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_api
    ##
    # RPC-specific configuration for `update_api`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_api
    ##
    # RPC-specific configuration for `delete_api`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api
    ##
    # RPC-specific configuration for `list_api_versions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_versions
    ##
    # RPC-specific configuration for `get_api_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api_version
    ##
    # RPC-specific configuration for `create_api_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_api_version
    ##
    # RPC-specific configuration for `update_api_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_api_version
    ##
    # RPC-specific configuration for `delete_api_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_version
    ##
    # RPC-specific configuration for `list_api_specs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_specs
    ##
    # RPC-specific configuration for `get_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api_spec
    ##
    # RPC-specific configuration for `get_api_spec_contents`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api_spec_contents
    ##
    # RPC-specific configuration for `create_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_api_spec
    ##
    # RPC-specific configuration for `update_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_api_spec
    ##
    # RPC-specific configuration for `delete_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_spec
    ##
    # RPC-specific configuration for `tag_api_spec_revision`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :tag_api_spec_revision
    ##
    # RPC-specific configuration for `list_api_spec_revisions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_spec_revisions
    ##
    # RPC-specific configuration for `rollback_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :rollback_api_spec
    ##
    # RPC-specific configuration for `delete_api_spec_revision`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_spec_revision
    ##
    # RPC-specific configuration for `list_api_deployments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_deployments
    ##
    # RPC-specific configuration for `get_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api_deployment
    ##
    # RPC-specific configuration for `create_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_api_deployment
    ##
    # RPC-specific configuration for `update_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_api_deployment
    ##
    # RPC-specific configuration for `delete_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_deployment
    ##
    # RPC-specific configuration for `tag_api_deployment_revision`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :tag_api_deployment_revision
    ##
    # RPC-specific configuration for `list_api_deployment_revisions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_deployment_revisions
    ##
    # RPC-specific configuration for `rollback_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :rollback_api_deployment
    ##
    # RPC-specific configuration for `delete_api_deployment_revision`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_deployment_revision
    ##
    # RPC-specific configuration for `list_artifacts`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_artifacts
    ##
    # RPC-specific configuration for `get_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_artifact
    ##
    # RPC-specific configuration for `get_artifact_contents`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_artifact_contents
    ##
    # RPC-specific configuration for `create_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_artifact
    ##
    # RPC-specific configuration for `replace_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :replace_artifact
    ##
    # RPC-specific configuration for `delete_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_artifact

    # @private
    def initialize parent_rpcs = nil
      list_apis_config = parent_rpcs.list_apis if parent_rpcs.respond_to? :list_apis
      @list_apis = ::Gapic::Config::Method.new list_apis_config
      get_api_config = parent_rpcs.get_api if parent_rpcs.respond_to? :get_api
      @get_api = ::Gapic::Config::Method.new get_api_config
      create_api_config = parent_rpcs.create_api if parent_rpcs.respond_to? :create_api
      @create_api = ::Gapic::Config::Method.new create_api_config
      update_api_config = parent_rpcs.update_api if parent_rpcs.respond_to? :update_api
      @update_api = ::Gapic::Config::Method.new update_api_config
      delete_api_config = parent_rpcs.delete_api if parent_rpcs.respond_to? :delete_api
      @delete_api = ::Gapic::Config::Method.new delete_api_config
      list_api_versions_config = parent_rpcs.list_api_versions if parent_rpcs.respond_to? :list_api_versions
      @list_api_versions = ::Gapic::Config::Method.new list_api_versions_config
      get_api_version_config = parent_rpcs.get_api_version if parent_rpcs.respond_to? :get_api_version
      @get_api_version = ::Gapic::Config::Method.new get_api_version_config
      create_api_version_config = parent_rpcs.create_api_version if parent_rpcs.respond_to? :create_api_version
      @create_api_version = ::Gapic::Config::Method.new create_api_version_config
      update_api_version_config = parent_rpcs.update_api_version if parent_rpcs.respond_to? :update_api_version
      @update_api_version = ::Gapic::Config::Method.new update_api_version_config
      delete_api_version_config = parent_rpcs.delete_api_version if parent_rpcs.respond_to? :delete_api_version
      @delete_api_version = ::Gapic::Config::Method.new delete_api_version_config
      list_api_specs_config = parent_rpcs.list_api_specs if parent_rpcs.respond_to? :list_api_specs
      @list_api_specs = ::Gapic::Config::Method.new list_api_specs_config
      get_api_spec_config = parent_rpcs.get_api_spec if parent_rpcs.respond_to? :get_api_spec
      @get_api_spec = ::Gapic::Config::Method.new get_api_spec_config
      get_api_spec_contents_config = parent_rpcs.get_api_spec_contents if parent_rpcs.respond_to? :get_api_spec_contents
      @get_api_spec_contents = ::Gapic::Config::Method.new get_api_spec_contents_config
      create_api_spec_config = parent_rpcs.create_api_spec if parent_rpcs.respond_to? :create_api_spec
      @create_api_spec = ::Gapic::Config::Method.new create_api_spec_config
      update_api_spec_config = parent_rpcs.update_api_spec if parent_rpcs.respond_to? :update_api_spec
      @update_api_spec = ::Gapic::Config::Method.new update_api_spec_config
      delete_api_spec_config = parent_rpcs.delete_api_spec if parent_rpcs.respond_to? :delete_api_spec
      @delete_api_spec = ::Gapic::Config::Method.new delete_api_spec_config
      tag_api_spec_revision_config = parent_rpcs.tag_api_spec_revision if parent_rpcs.respond_to? :tag_api_spec_revision
      @tag_api_spec_revision = ::Gapic::Config::Method.new tag_api_spec_revision_config
      list_api_spec_revisions_config = parent_rpcs.list_api_spec_revisions if parent_rpcs.respond_to? :list_api_spec_revisions
      @list_api_spec_revisions = ::Gapic::Config::Method.new list_api_spec_revisions_config
      rollback_api_spec_config = parent_rpcs.rollback_api_spec if parent_rpcs.respond_to? :rollback_api_spec
      @rollback_api_spec = ::Gapic::Config::Method.new rollback_api_spec_config
      delete_api_spec_revision_config = parent_rpcs.delete_api_spec_revision if parent_rpcs.respond_to? :delete_api_spec_revision
      @delete_api_spec_revision = ::Gapic::Config::Method.new delete_api_spec_revision_config
      list_api_deployments_config = parent_rpcs.list_api_deployments if parent_rpcs.respond_to? :list_api_deployments
      @list_api_deployments = ::Gapic::Config::Method.new list_api_deployments_config
      get_api_deployment_config = parent_rpcs.get_api_deployment if parent_rpcs.respond_to? :get_api_deployment
      @get_api_deployment = ::Gapic::Config::Method.new get_api_deployment_config
      create_api_deployment_config = parent_rpcs.create_api_deployment if parent_rpcs.respond_to? :create_api_deployment
      @create_api_deployment = ::Gapic::Config::Method.new create_api_deployment_config
      update_api_deployment_config = parent_rpcs.update_api_deployment if parent_rpcs.respond_to? :update_api_deployment
      @update_api_deployment = ::Gapic::Config::Method.new update_api_deployment_config
      delete_api_deployment_config = parent_rpcs.delete_api_deployment if parent_rpcs.respond_to? :delete_api_deployment
      @delete_api_deployment = ::Gapic::Config::Method.new delete_api_deployment_config
      tag_api_deployment_revision_config = parent_rpcs.tag_api_deployment_revision if parent_rpcs.respond_to? :tag_api_deployment_revision
      @tag_api_deployment_revision = ::Gapic::Config::Method.new tag_api_deployment_revision_config
      list_api_deployment_revisions_config = parent_rpcs.list_api_deployment_revisions if parent_rpcs.respond_to? :list_api_deployment_revisions
      @list_api_deployment_revisions = ::Gapic::Config::Method.new list_api_deployment_revisions_config
      rollback_api_deployment_config = parent_rpcs.rollback_api_deployment if parent_rpcs.respond_to? :rollback_api_deployment
      @rollback_api_deployment = ::Gapic::Config::Method.new rollback_api_deployment_config
      delete_api_deployment_revision_config = parent_rpcs.delete_api_deployment_revision if parent_rpcs.respond_to? :delete_api_deployment_revision
      @delete_api_deployment_revision = ::Gapic::Config::Method.new delete_api_deployment_revision_config
      list_artifacts_config = parent_rpcs.list_artifacts if parent_rpcs.respond_to? :list_artifacts
      @list_artifacts = ::Gapic::Config::Method.new list_artifacts_config
      get_artifact_config = parent_rpcs.get_artifact if parent_rpcs.respond_to? :get_artifact
      @get_artifact = ::Gapic::Config::Method.new get_artifact_config
      get_artifact_contents_config = parent_rpcs.get_artifact_contents if parent_rpcs.respond_to? :get_artifact_contents
      @get_artifact_contents = ::Gapic::Config::Method.new get_artifact_contents_config
      create_artifact_config = parent_rpcs.create_artifact if parent_rpcs.respond_to? :create_artifact
      @create_artifact = ::Gapic::Config::Method.new create_artifact_config
      replace_artifact_config = parent_rpcs.replace_artifact if parent_rpcs.respond_to? :replace_artifact
      @replace_artifact = ::Gapic::Config::Method.new replace_artifact_config
      delete_artifact_config = parent_rpcs.delete_artifact if parent_rpcs.respond_to? :delete_artifact
      @delete_artifact = ::Gapic::Config::Method.new delete_artifact_config

      yield self if block_given?
    end
  end
end

#lib_name::String

The library name as recorded in instrumentation and logging

Returns:

  • (::String)


3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
# File 'lib/google/cloud/apigee_registry/v1/registry/client.rb', line 3744

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "apigeeregistry.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 += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
    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(:channel_args,  { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
  config_attr :interceptors,  nil, ::Array, 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 for the channel pool
  # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
  #
  def channel_pool
    @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
  end

  ##
  # Configuration RPC class for the Registry 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 gRPC 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 `list_apis`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_apis
    ##
    # RPC-specific configuration for `get_api`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api
    ##
    # RPC-specific configuration for `create_api`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_api
    ##
    # RPC-specific configuration for `update_api`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_api
    ##
    # RPC-specific configuration for `delete_api`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api
    ##
    # RPC-specific configuration for `list_api_versions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_versions
    ##
    # RPC-specific configuration for `get_api_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api_version
    ##
    # RPC-specific configuration for `create_api_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_api_version
    ##
    # RPC-specific configuration for `update_api_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_api_version
    ##
    # RPC-specific configuration for `delete_api_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_version
    ##
    # RPC-specific configuration for `list_api_specs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_specs
    ##
    # RPC-specific configuration for `get_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api_spec
    ##
    # RPC-specific configuration for `get_api_spec_contents`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api_spec_contents
    ##
    # RPC-specific configuration for `create_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_api_spec
    ##
    # RPC-specific configuration for `update_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_api_spec
    ##
    # RPC-specific configuration for `delete_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_spec
    ##
    # RPC-specific configuration for `tag_api_spec_revision`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :tag_api_spec_revision
    ##
    # RPC-specific configuration for `list_api_spec_revisions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_spec_revisions
    ##
    # RPC-specific configuration for `rollback_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :rollback_api_spec
    ##
    # RPC-specific configuration for `delete_api_spec_revision`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_spec_revision
    ##
    # RPC-specific configuration for `list_api_deployments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_deployments
    ##
    # RPC-specific configuration for `get_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api_deployment
    ##
    # RPC-specific configuration for `create_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_api_deployment
    ##
    # RPC-specific configuration for `update_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_api_deployment
    ##
    # RPC-specific configuration for `delete_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_deployment
    ##
    # RPC-specific configuration for `tag_api_deployment_revision`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :tag_api_deployment_revision
    ##
    # RPC-specific configuration for `list_api_deployment_revisions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_deployment_revisions
    ##
    # RPC-specific configuration for `rollback_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :rollback_api_deployment
    ##
    # RPC-specific configuration for `delete_api_deployment_revision`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_deployment_revision
    ##
    # RPC-specific configuration for `list_artifacts`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_artifacts
    ##
    # RPC-specific configuration for `get_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_artifact
    ##
    # RPC-specific configuration for `get_artifact_contents`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_artifact_contents
    ##
    # RPC-specific configuration for `create_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_artifact
    ##
    # RPC-specific configuration for `replace_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :replace_artifact
    ##
    # RPC-specific configuration for `delete_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_artifact

    # @private
    def initialize parent_rpcs = nil
      list_apis_config = parent_rpcs.list_apis if parent_rpcs.respond_to? :list_apis
      @list_apis = ::Gapic::Config::Method.new list_apis_config
      get_api_config = parent_rpcs.get_api if parent_rpcs.respond_to? :get_api
      @get_api = ::Gapic::Config::Method.new get_api_config
      create_api_config = parent_rpcs.create_api if parent_rpcs.respond_to? :create_api
      @create_api = ::Gapic::Config::Method.new create_api_config
      update_api_config = parent_rpcs.update_api if parent_rpcs.respond_to? :update_api
      @update_api = ::Gapic::Config::Method.new update_api_config
      delete_api_config = parent_rpcs.delete_api if parent_rpcs.respond_to? :delete_api
      @delete_api = ::Gapic::Config::Method.new delete_api_config
      list_api_versions_config = parent_rpcs.list_api_versions if parent_rpcs.respond_to? :list_api_versions
      @list_api_versions = ::Gapic::Config::Method.new list_api_versions_config
      get_api_version_config = parent_rpcs.get_api_version if parent_rpcs.respond_to? :get_api_version
      @get_api_version = ::Gapic::Config::Method.new get_api_version_config
      create_api_version_config = parent_rpcs.create_api_version if parent_rpcs.respond_to? :create_api_version
      @create_api_version = ::Gapic::Config::Method.new create_api_version_config
      update_api_version_config = parent_rpcs.update_api_version if parent_rpcs.respond_to? :update_api_version
      @update_api_version = ::Gapic::Config::Method.new update_api_version_config
      delete_api_version_config = parent_rpcs.delete_api_version if parent_rpcs.respond_to? :delete_api_version
      @delete_api_version = ::Gapic::Config::Method.new delete_api_version_config
      list_api_specs_config = parent_rpcs.list_api_specs if parent_rpcs.respond_to? :list_api_specs
      @list_api_specs = ::Gapic::Config::Method.new list_api_specs_config
      get_api_spec_config = parent_rpcs.get_api_spec if parent_rpcs.respond_to? :get_api_spec
      @get_api_spec = ::Gapic::Config::Method.new get_api_spec_config
      get_api_spec_contents_config = parent_rpcs.get_api_spec_contents if parent_rpcs.respond_to? :get_api_spec_contents
      @get_api_spec_contents = ::Gapic::Config::Method.new get_api_spec_contents_config
      create_api_spec_config = parent_rpcs.create_api_spec if parent_rpcs.respond_to? :create_api_spec
      @create_api_spec = ::Gapic::Config::Method.new create_api_spec_config
      update_api_spec_config = parent_rpcs.update_api_spec if parent_rpcs.respond_to? :update_api_spec
      @update_api_spec = ::Gapic::Config::Method.new update_api_spec_config
      delete_api_spec_config = parent_rpcs.delete_api_spec if parent_rpcs.respond_to? :delete_api_spec
      @delete_api_spec = ::Gapic::Config::Method.new delete_api_spec_config
      tag_api_spec_revision_config = parent_rpcs.tag_api_spec_revision if parent_rpcs.respond_to? :tag_api_spec_revision
      @tag_api_spec_revision = ::Gapic::Config::Method.new tag_api_spec_revision_config
      list_api_spec_revisions_config = parent_rpcs.list_api_spec_revisions if parent_rpcs.respond_to? :list_api_spec_revisions
      @list_api_spec_revisions = ::Gapic::Config::Method.new list_api_spec_revisions_config
      rollback_api_spec_config = parent_rpcs.rollback_api_spec if parent_rpcs.respond_to? :rollback_api_spec
      @rollback_api_spec = ::Gapic::Config::Method.new rollback_api_spec_config
      delete_api_spec_revision_config = parent_rpcs.delete_api_spec_revision if parent_rpcs.respond_to? :delete_api_spec_revision
      @delete_api_spec_revision = ::Gapic::Config::Method.new delete_api_spec_revision_config
      list_api_deployments_config = parent_rpcs.list_api_deployments if parent_rpcs.respond_to? :list_api_deployments
      @list_api_deployments = ::Gapic::Config::Method.new list_api_deployments_config
      get_api_deployment_config = parent_rpcs.get_api_deployment if parent_rpcs.respond_to? :get_api_deployment
      @get_api_deployment = ::Gapic::Config::Method.new get_api_deployment_config
      create_api_deployment_config = parent_rpcs.create_api_deployment if parent_rpcs.respond_to? :create_api_deployment
      @create_api_deployment = ::Gapic::Config::Method.new create_api_deployment_config
      update_api_deployment_config = parent_rpcs.update_api_deployment if parent_rpcs.respond_to? :update_api_deployment
      @update_api_deployment = ::Gapic::Config::Method.new update_api_deployment_config
      delete_api_deployment_config = parent_rpcs.delete_api_deployment if parent_rpcs.respond_to? :delete_api_deployment
      @delete_api_deployment = ::Gapic::Config::Method.new delete_api_deployment_config
      tag_api_deployment_revision_config = parent_rpcs.tag_api_deployment_revision if parent_rpcs.respond_to? :tag_api_deployment_revision
      @tag_api_deployment_revision = ::Gapic::Config::Method.new tag_api_deployment_revision_config
      list_api_deployment_revisions_config = parent_rpcs.list_api_deployment_revisions if parent_rpcs.respond_to? :list_api_deployment_revisions
      @list_api_deployment_revisions = ::Gapic::Config::Method.new list_api_deployment_revisions_config
      rollback_api_deployment_config = parent_rpcs.rollback_api_deployment if parent_rpcs.respond_to? :rollback_api_deployment
      @rollback_api_deployment = ::Gapic::Config::Method.new rollback_api_deployment_config
      delete_api_deployment_revision_config = parent_rpcs.delete_api_deployment_revision if parent_rpcs.respond_to? :delete_api_deployment_revision
      @delete_api_deployment_revision = ::Gapic::Config::Method.new delete_api_deployment_revision_config
      list_artifacts_config = parent_rpcs.list_artifacts if parent_rpcs.respond_to? :list_artifacts
      @list_artifacts = ::Gapic::Config::Method.new list_artifacts_config
      get_artifact_config = parent_rpcs.get_artifact if parent_rpcs.respond_to? :get_artifact
      @get_artifact = ::Gapic::Config::Method.new get_artifact_config
      get_artifact_contents_config = parent_rpcs.get_artifact_contents if parent_rpcs.respond_to? :get_artifact_contents
      @get_artifact_contents = ::Gapic::Config::Method.new get_artifact_contents_config
      create_artifact_config = parent_rpcs.create_artifact if parent_rpcs.respond_to? :create_artifact
      @create_artifact = ::Gapic::Config::Method.new create_artifact_config
      replace_artifact_config = parent_rpcs.replace_artifact if parent_rpcs.respond_to? :replace_artifact
      @replace_artifact = ::Gapic::Config::Method.new replace_artifact_config
      delete_artifact_config = parent_rpcs.delete_artifact if parent_rpcs.respond_to? :delete_artifact
      @delete_artifact = ::Gapic::Config::Method.new delete_artifact_config

      yield self if block_given?
    end
  end
end

#lib_version::String

The library version as recorded in instrumentation and logging

Returns:

  • (::String)


3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
# File 'lib/google/cloud/apigee_registry/v1/registry/client.rb', line 3744

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "apigeeregistry.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 += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
    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(:channel_args,  { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
  config_attr :interceptors,  nil, ::Array, 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 for the channel pool
  # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
  #
  def channel_pool
    @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
  end

  ##
  # Configuration RPC class for the Registry 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 gRPC 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 `list_apis`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_apis
    ##
    # RPC-specific configuration for `get_api`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api
    ##
    # RPC-specific configuration for `create_api`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_api
    ##
    # RPC-specific configuration for `update_api`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_api
    ##
    # RPC-specific configuration for `delete_api`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api
    ##
    # RPC-specific configuration for `list_api_versions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_versions
    ##
    # RPC-specific configuration for `get_api_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api_version
    ##
    # RPC-specific configuration for `create_api_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_api_version
    ##
    # RPC-specific configuration for `update_api_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_api_version
    ##
    # RPC-specific configuration for `delete_api_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_version
    ##
    # RPC-specific configuration for `list_api_specs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_specs
    ##
    # RPC-specific configuration for `get_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api_spec
    ##
    # RPC-specific configuration for `get_api_spec_contents`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api_spec_contents
    ##
    # RPC-specific configuration for `create_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_api_spec
    ##
    # RPC-specific configuration for `update_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_api_spec
    ##
    # RPC-specific configuration for `delete_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_spec
    ##
    # RPC-specific configuration for `tag_api_spec_revision`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :tag_api_spec_revision
    ##
    # RPC-specific configuration for `list_api_spec_revisions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_spec_revisions
    ##
    # RPC-specific configuration for `rollback_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :rollback_api_spec
    ##
    # RPC-specific configuration for `delete_api_spec_revision`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_spec_revision
    ##
    # RPC-specific configuration for `list_api_deployments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_deployments
    ##
    # RPC-specific configuration for `get_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api_deployment
    ##
    # RPC-specific configuration for `create_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_api_deployment
    ##
    # RPC-specific configuration for `update_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_api_deployment
    ##
    # RPC-specific configuration for `delete_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_deployment
    ##
    # RPC-specific configuration for `tag_api_deployment_revision`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :tag_api_deployment_revision
    ##
    # RPC-specific configuration for `list_api_deployment_revisions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_deployment_revisions
    ##
    # RPC-specific configuration for `rollback_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :rollback_api_deployment
    ##
    # RPC-specific configuration for `delete_api_deployment_revision`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_deployment_revision
    ##
    # RPC-specific configuration for `list_artifacts`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_artifacts
    ##
    # RPC-specific configuration for `get_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_artifact
    ##
    # RPC-specific configuration for `get_artifact_contents`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_artifact_contents
    ##
    # RPC-specific configuration for `create_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_artifact
    ##
    # RPC-specific configuration for `replace_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :replace_artifact
    ##
    # RPC-specific configuration for `delete_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_artifact

    # @private
    def initialize parent_rpcs = nil
      list_apis_config = parent_rpcs.list_apis if parent_rpcs.respond_to? :list_apis
      @list_apis = ::Gapic::Config::Method.new list_apis_config
      get_api_config = parent_rpcs.get_api if parent_rpcs.respond_to? :get_api
      @get_api = ::Gapic::Config::Method.new get_api_config
      create_api_config = parent_rpcs.create_api if parent_rpcs.respond_to? :create_api
      @create_api = ::Gapic::Config::Method.new create_api_config
      update_api_config = parent_rpcs.update_api if parent_rpcs.respond_to? :update_api
      @update_api = ::Gapic::Config::Method.new update_api_config
      delete_api_config = parent_rpcs.delete_api if parent_rpcs.respond_to? :delete_api
      @delete_api = ::Gapic::Config::Method.new delete_api_config
      list_api_versions_config = parent_rpcs.list_api_versions if parent_rpcs.respond_to? :list_api_versions
      @list_api_versions = ::Gapic::Config::Method.new list_api_versions_config
      get_api_version_config = parent_rpcs.get_api_version if parent_rpcs.respond_to? :get_api_version
      @get_api_version = ::Gapic::Config::Method.new get_api_version_config
      create_api_version_config = parent_rpcs.create_api_version if parent_rpcs.respond_to? :create_api_version
      @create_api_version = ::Gapic::Config::Method.new create_api_version_config
      update_api_version_config = parent_rpcs.update_api_version if parent_rpcs.respond_to? :update_api_version
      @update_api_version = ::Gapic::Config::Method.new update_api_version_config
      delete_api_version_config = parent_rpcs.delete_api_version if parent_rpcs.respond_to? :delete_api_version
      @delete_api_version = ::Gapic::Config::Method.new delete_api_version_config
      list_api_specs_config = parent_rpcs.list_api_specs if parent_rpcs.respond_to? :list_api_specs
      @list_api_specs = ::Gapic::Config::Method.new list_api_specs_config
      get_api_spec_config = parent_rpcs.get_api_spec if parent_rpcs.respond_to? :get_api_spec
      @get_api_spec = ::Gapic::Config::Method.new get_api_spec_config
      get_api_spec_contents_config = parent_rpcs.get_api_spec_contents if parent_rpcs.respond_to? :get_api_spec_contents
      @get_api_spec_contents = ::Gapic::Config::Method.new get_api_spec_contents_config
      create_api_spec_config = parent_rpcs.create_api_spec if parent_rpcs.respond_to? :create_api_spec
      @create_api_spec = ::Gapic::Config::Method.new create_api_spec_config
      update_api_spec_config = parent_rpcs.update_api_spec if parent_rpcs.respond_to? :update_api_spec
      @update_api_spec = ::Gapic::Config::Method.new update_api_spec_config
      delete_api_spec_config = parent_rpcs.delete_api_spec if parent_rpcs.respond_to? :delete_api_spec
      @delete_api_spec = ::Gapic::Config::Method.new delete_api_spec_config
      tag_api_spec_revision_config = parent_rpcs.tag_api_spec_revision if parent_rpcs.respond_to? :tag_api_spec_revision
      @tag_api_spec_revision = ::Gapic::Config::Method.new tag_api_spec_revision_config
      list_api_spec_revisions_config = parent_rpcs.list_api_spec_revisions if parent_rpcs.respond_to? :list_api_spec_revisions
      @list_api_spec_revisions = ::Gapic::Config::Method.new list_api_spec_revisions_config
      rollback_api_spec_config = parent_rpcs.rollback_api_spec if parent_rpcs.respond_to? :rollback_api_spec
      @rollback_api_spec = ::Gapic::Config::Method.new rollback_api_spec_config
      delete_api_spec_revision_config = parent_rpcs.delete_api_spec_revision if parent_rpcs.respond_to? :delete_api_spec_revision
      @delete_api_spec_revision = ::Gapic::Config::Method.new delete_api_spec_revision_config
      list_api_deployments_config = parent_rpcs.list_api_deployments if parent_rpcs.respond_to? :list_api_deployments
      @list_api_deployments = ::Gapic::Config::Method.new list_api_deployments_config
      get_api_deployment_config = parent_rpcs.get_api_deployment if parent_rpcs.respond_to? :get_api_deployment
      @get_api_deployment = ::Gapic::Config::Method.new get_api_deployment_config
      create_api_deployment_config = parent_rpcs.create_api_deployment if parent_rpcs.respond_to? :create_api_deployment
      @create_api_deployment = ::Gapic::Config::Method.new create_api_deployment_config
      update_api_deployment_config = parent_rpcs.update_api_deployment if parent_rpcs.respond_to? :update_api_deployment
      @update_api_deployment = ::Gapic::Config::Method.new update_api_deployment_config
      delete_api_deployment_config = parent_rpcs.delete_api_deployment if parent_rpcs.respond_to? :delete_api_deployment
      @delete_api_deployment = ::Gapic::Config::Method.new delete_api_deployment_config
      tag_api_deployment_revision_config = parent_rpcs.tag_api_deployment_revision if parent_rpcs.respond_to? :tag_api_deployment_revision
      @tag_api_deployment_revision = ::Gapic::Config::Method.new tag_api_deployment_revision_config
      list_api_deployment_revisions_config = parent_rpcs.list_api_deployment_revisions if parent_rpcs.respond_to? :list_api_deployment_revisions
      @list_api_deployment_revisions = ::Gapic::Config::Method.new list_api_deployment_revisions_config
      rollback_api_deployment_config = parent_rpcs.rollback_api_deployment if parent_rpcs.respond_to? :rollback_api_deployment
      @rollback_api_deployment = ::Gapic::Config::Method.new rollback_api_deployment_config
      delete_api_deployment_revision_config = parent_rpcs.delete_api_deployment_revision if parent_rpcs.respond_to? :delete_api_deployment_revision
      @delete_api_deployment_revision = ::Gapic::Config::Method.new delete_api_deployment_revision_config
      list_artifacts_config = parent_rpcs.list_artifacts if parent_rpcs.respond_to? :list_artifacts
      @list_artifacts = ::Gapic::Config::Method.new list_artifacts_config
      get_artifact_config = parent_rpcs.get_artifact if parent_rpcs.respond_to? :get_artifact
      @get_artifact = ::Gapic::Config::Method.new get_artifact_config
      get_artifact_contents_config = parent_rpcs.get_artifact_contents if parent_rpcs.respond_to? :get_artifact_contents
      @get_artifact_contents = ::Gapic::Config::Method.new get_artifact_contents_config
      create_artifact_config = parent_rpcs.create_artifact if parent_rpcs.respond_to? :create_artifact
      @create_artifact = ::Gapic::Config::Method.new create_artifact_config
      replace_artifact_config = parent_rpcs.replace_artifact if parent_rpcs.respond_to? :replace_artifact
      @replace_artifact = ::Gapic::Config::Method.new replace_artifact_config
      delete_artifact_config = parent_rpcs.delete_artifact if parent_rpcs.respond_to? :delete_artifact
      @delete_artifact = ::Gapic::Config::Method.new delete_artifact_config

      yield self if block_given?
    end
  end
end

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

Additional gRPC headers to be sent with the call.

Returns:

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


3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
# File 'lib/google/cloud/apigee_registry/v1/registry/client.rb', line 3744

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "apigeeregistry.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 += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
    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(:channel_args,  { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
  config_attr :interceptors,  nil, ::Array, 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 for the channel pool
  # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
  #
  def channel_pool
    @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
  end

  ##
  # Configuration RPC class for the Registry 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 gRPC 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 `list_apis`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_apis
    ##
    # RPC-specific configuration for `get_api`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api
    ##
    # RPC-specific configuration for `create_api`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_api
    ##
    # RPC-specific configuration for `update_api`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_api
    ##
    # RPC-specific configuration for `delete_api`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api
    ##
    # RPC-specific configuration for `list_api_versions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_versions
    ##
    # RPC-specific configuration for `get_api_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api_version
    ##
    # RPC-specific configuration for `create_api_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_api_version
    ##
    # RPC-specific configuration for `update_api_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_api_version
    ##
    # RPC-specific configuration for `delete_api_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_version
    ##
    # RPC-specific configuration for `list_api_specs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_specs
    ##
    # RPC-specific configuration for `get_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api_spec
    ##
    # RPC-specific configuration for `get_api_spec_contents`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api_spec_contents
    ##
    # RPC-specific configuration for `create_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_api_spec
    ##
    # RPC-specific configuration for `update_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_api_spec
    ##
    # RPC-specific configuration for `delete_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_spec
    ##
    # RPC-specific configuration for `tag_api_spec_revision`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :tag_api_spec_revision
    ##
    # RPC-specific configuration for `list_api_spec_revisions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_spec_revisions
    ##
    # RPC-specific configuration for `rollback_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :rollback_api_spec
    ##
    # RPC-specific configuration for `delete_api_spec_revision`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_spec_revision
    ##
    # RPC-specific configuration for `list_api_deployments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_deployments
    ##
    # RPC-specific configuration for `get_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api_deployment
    ##
    # RPC-specific configuration for `create_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_api_deployment
    ##
    # RPC-specific configuration for `update_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_api_deployment
    ##
    # RPC-specific configuration for `delete_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_deployment
    ##
    # RPC-specific configuration for `tag_api_deployment_revision`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :tag_api_deployment_revision
    ##
    # RPC-specific configuration for `list_api_deployment_revisions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_deployment_revisions
    ##
    # RPC-specific configuration for `rollback_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :rollback_api_deployment
    ##
    # RPC-specific configuration for `delete_api_deployment_revision`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_deployment_revision
    ##
    # RPC-specific configuration for `list_artifacts`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_artifacts
    ##
    # RPC-specific configuration for `get_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_artifact
    ##
    # RPC-specific configuration for `get_artifact_contents`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_artifact_contents
    ##
    # RPC-specific configuration for `create_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_artifact
    ##
    # RPC-specific configuration for `replace_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :replace_artifact
    ##
    # RPC-specific configuration for `delete_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_artifact

    # @private
    def initialize parent_rpcs = nil
      list_apis_config = parent_rpcs.list_apis if parent_rpcs.respond_to? :list_apis
      @list_apis = ::Gapic::Config::Method.new list_apis_config
      get_api_config = parent_rpcs.get_api if parent_rpcs.respond_to? :get_api
      @get_api = ::Gapic::Config::Method.new get_api_config
      create_api_config = parent_rpcs.create_api if parent_rpcs.respond_to? :create_api
      @create_api = ::Gapic::Config::Method.new create_api_config
      update_api_config = parent_rpcs.update_api if parent_rpcs.respond_to? :update_api
      @update_api = ::Gapic::Config::Method.new update_api_config
      delete_api_config = parent_rpcs.delete_api if parent_rpcs.respond_to? :delete_api
      @delete_api = ::Gapic::Config::Method.new delete_api_config
      list_api_versions_config = parent_rpcs.list_api_versions if parent_rpcs.respond_to? :list_api_versions
      @list_api_versions = ::Gapic::Config::Method.new list_api_versions_config
      get_api_version_config = parent_rpcs.get_api_version if parent_rpcs.respond_to? :get_api_version
      @get_api_version = ::Gapic::Config::Method.new get_api_version_config
      create_api_version_config = parent_rpcs.create_api_version if parent_rpcs.respond_to? :create_api_version
      @create_api_version = ::Gapic::Config::Method.new create_api_version_config
      update_api_version_config = parent_rpcs.update_api_version if parent_rpcs.respond_to? :update_api_version
      @update_api_version = ::Gapic::Config::Method.new update_api_version_config
      delete_api_version_config = parent_rpcs.delete_api_version if parent_rpcs.respond_to? :delete_api_version
      @delete_api_version = ::Gapic::Config::Method.new delete_api_version_config
      list_api_specs_config = parent_rpcs.list_api_specs if parent_rpcs.respond_to? :list_api_specs
      @list_api_specs = ::Gapic::Config::Method.new list_api_specs_config
      get_api_spec_config = parent_rpcs.get_api_spec if parent_rpcs.respond_to? :get_api_spec
      @get_api_spec = ::Gapic::Config::Method.new get_api_spec_config
      get_api_spec_contents_config = parent_rpcs.get_api_spec_contents if parent_rpcs.respond_to? :get_api_spec_contents
      @get_api_spec_contents = ::Gapic::Config::Method.new get_api_spec_contents_config
      create_api_spec_config = parent_rpcs.create_api_spec if parent_rpcs.respond_to? :create_api_spec
      @create_api_spec = ::Gapic::Config::Method.new create_api_spec_config
      update_api_spec_config = parent_rpcs.update_api_spec if parent_rpcs.respond_to? :update_api_spec
      @update_api_spec = ::Gapic::Config::Method.new update_api_spec_config
      delete_api_spec_config = parent_rpcs.delete_api_spec if parent_rpcs.respond_to? :delete_api_spec
      @delete_api_spec = ::Gapic::Config::Method.new delete_api_spec_config
      tag_api_spec_revision_config = parent_rpcs.tag_api_spec_revision if parent_rpcs.respond_to? :tag_api_spec_revision
      @tag_api_spec_revision = ::Gapic::Config::Method.new tag_api_spec_revision_config
      list_api_spec_revisions_config = parent_rpcs.list_api_spec_revisions if parent_rpcs.respond_to? :list_api_spec_revisions
      @list_api_spec_revisions = ::Gapic::Config::Method.new list_api_spec_revisions_config
      rollback_api_spec_config = parent_rpcs.rollback_api_spec if parent_rpcs.respond_to? :rollback_api_spec
      @rollback_api_spec = ::Gapic::Config::Method.new rollback_api_spec_config
      delete_api_spec_revision_config = parent_rpcs.delete_api_spec_revision if parent_rpcs.respond_to? :delete_api_spec_revision
      @delete_api_spec_revision = ::Gapic::Config::Method.new delete_api_spec_revision_config
      list_api_deployments_config = parent_rpcs.list_api_deployments if parent_rpcs.respond_to? :list_api_deployments
      @list_api_deployments = ::Gapic::Config::Method.new list_api_deployments_config
      get_api_deployment_config = parent_rpcs.get_api_deployment if parent_rpcs.respond_to? :get_api_deployment
      @get_api_deployment = ::Gapic::Config::Method.new get_api_deployment_config
      create_api_deployment_config = parent_rpcs.create_api_deployment if parent_rpcs.respond_to? :create_api_deployment
      @create_api_deployment = ::Gapic::Config::Method.new create_api_deployment_config
      update_api_deployment_config = parent_rpcs.update_api_deployment if parent_rpcs.respond_to? :update_api_deployment
      @update_api_deployment = ::Gapic::Config::Method.new update_api_deployment_config
      delete_api_deployment_config = parent_rpcs.delete_api_deployment if parent_rpcs.respond_to? :delete_api_deployment
      @delete_api_deployment = ::Gapic::Config::Method.new delete_api_deployment_config
      tag_api_deployment_revision_config = parent_rpcs.tag_api_deployment_revision if parent_rpcs.respond_to? :tag_api_deployment_revision
      @tag_api_deployment_revision = ::Gapic::Config::Method.new tag_api_deployment_revision_config
      list_api_deployment_revisions_config = parent_rpcs.list_api_deployment_revisions if parent_rpcs.respond_to? :list_api_deployment_revisions
      @list_api_deployment_revisions = ::Gapic::Config::Method.new list_api_deployment_revisions_config
      rollback_api_deployment_config = parent_rpcs.rollback_api_deployment if parent_rpcs.respond_to? :rollback_api_deployment
      @rollback_api_deployment = ::Gapic::Config::Method.new rollback_api_deployment_config
      delete_api_deployment_revision_config = parent_rpcs.delete_api_deployment_revision if parent_rpcs.respond_to? :delete_api_deployment_revision
      @delete_api_deployment_revision = ::Gapic::Config::Method.new delete_api_deployment_revision_config
      list_artifacts_config = parent_rpcs.list_artifacts if parent_rpcs.respond_to? :list_artifacts
      @list_artifacts = ::Gapic::Config::Method.new list_artifacts_config
      get_artifact_config = parent_rpcs.get_artifact if parent_rpcs.respond_to? :get_artifact
      @get_artifact = ::Gapic::Config::Method.new get_artifact_config
      get_artifact_contents_config = parent_rpcs.get_artifact_contents if parent_rpcs.respond_to? :get_artifact_contents
      @get_artifact_contents = ::Gapic::Config::Method.new get_artifact_contents_config
      create_artifact_config = parent_rpcs.create_artifact if parent_rpcs.respond_to? :create_artifact
      @create_artifact = ::Gapic::Config::Method.new create_artifact_config
      replace_artifact_config = parent_rpcs.replace_artifact if parent_rpcs.respond_to? :replace_artifact
      @replace_artifact = ::Gapic::Config::Method.new replace_artifact_config
      delete_artifact_config = parent_rpcs.delete_artifact if parent_rpcs.respond_to? :delete_artifact
      @delete_artifact = ::Gapic::Config::Method.new delete_artifact_config

      yield self if block_given?
    end
  end
end

#quota_project::String

A separate project against which to charge quota.

Returns:

  • (::String)


3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
# File 'lib/google/cloud/apigee_registry/v1/registry/client.rb', line 3744

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "apigeeregistry.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 += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
    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(:channel_args,  { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
  config_attr :interceptors,  nil, ::Array, 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 for the channel pool
  # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
  #
  def channel_pool
    @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
  end

  ##
  # Configuration RPC class for the Registry 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 gRPC 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 `list_apis`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_apis
    ##
    # RPC-specific configuration for `get_api`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api
    ##
    # RPC-specific configuration for `create_api`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_api
    ##
    # RPC-specific configuration for `update_api`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_api
    ##
    # RPC-specific configuration for `delete_api`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api
    ##
    # RPC-specific configuration for `list_api_versions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_versions
    ##
    # RPC-specific configuration for `get_api_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api_version
    ##
    # RPC-specific configuration for `create_api_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_api_version
    ##
    # RPC-specific configuration for `update_api_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_api_version
    ##
    # RPC-specific configuration for `delete_api_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_version
    ##
    # RPC-specific configuration for `list_api_specs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_specs
    ##
    # RPC-specific configuration for `get_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api_spec
    ##
    # RPC-specific configuration for `get_api_spec_contents`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api_spec_contents
    ##
    # RPC-specific configuration for `create_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_api_spec
    ##
    # RPC-specific configuration for `update_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_api_spec
    ##
    # RPC-specific configuration for `delete_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_spec
    ##
    # RPC-specific configuration for `tag_api_spec_revision`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :tag_api_spec_revision
    ##
    # RPC-specific configuration for `list_api_spec_revisions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_spec_revisions
    ##
    # RPC-specific configuration for `rollback_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :rollback_api_spec
    ##
    # RPC-specific configuration for `delete_api_spec_revision`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_spec_revision
    ##
    # RPC-specific configuration for `list_api_deployments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_deployments
    ##
    # RPC-specific configuration for `get_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api_deployment
    ##
    # RPC-specific configuration for `create_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_api_deployment
    ##
    # RPC-specific configuration for `update_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_api_deployment
    ##
    # RPC-specific configuration for `delete_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_deployment
    ##
    # RPC-specific configuration for `tag_api_deployment_revision`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :tag_api_deployment_revision
    ##
    # RPC-specific configuration for `list_api_deployment_revisions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_deployment_revisions
    ##
    # RPC-specific configuration for `rollback_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :rollback_api_deployment
    ##
    # RPC-specific configuration for `delete_api_deployment_revision`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_deployment_revision
    ##
    # RPC-specific configuration for `list_artifacts`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_artifacts
    ##
    # RPC-specific configuration for `get_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_artifact
    ##
    # RPC-specific configuration for `get_artifact_contents`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_artifact_contents
    ##
    # RPC-specific configuration for `create_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_artifact
    ##
    # RPC-specific configuration for `replace_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :replace_artifact
    ##
    # RPC-specific configuration for `delete_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_artifact

    # @private
    def initialize parent_rpcs = nil
      list_apis_config = parent_rpcs.list_apis if parent_rpcs.respond_to? :list_apis
      @list_apis = ::Gapic::Config::Method.new list_apis_config
      get_api_config = parent_rpcs.get_api if parent_rpcs.respond_to? :get_api
      @get_api = ::Gapic::Config::Method.new get_api_config
      create_api_config = parent_rpcs.create_api if parent_rpcs.respond_to? :create_api
      @create_api = ::Gapic::Config::Method.new create_api_config
      update_api_config = parent_rpcs.update_api if parent_rpcs.respond_to? :update_api
      @update_api = ::Gapic::Config::Method.new update_api_config
      delete_api_config = parent_rpcs.delete_api if parent_rpcs.respond_to? :delete_api
      @delete_api = ::Gapic::Config::Method.new delete_api_config
      list_api_versions_config = parent_rpcs.list_api_versions if parent_rpcs.respond_to? :list_api_versions
      @list_api_versions = ::Gapic::Config::Method.new list_api_versions_config
      get_api_version_config = parent_rpcs.get_api_version if parent_rpcs.respond_to? :get_api_version
      @get_api_version = ::Gapic::Config::Method.new get_api_version_config
      create_api_version_config = parent_rpcs.create_api_version if parent_rpcs.respond_to? :create_api_version
      @create_api_version = ::Gapic::Config::Method.new create_api_version_config
      update_api_version_config = parent_rpcs.update_api_version if parent_rpcs.respond_to? :update_api_version
      @update_api_version = ::Gapic::Config::Method.new update_api_version_config
      delete_api_version_config = parent_rpcs.delete_api_version if parent_rpcs.respond_to? :delete_api_version
      @delete_api_version = ::Gapic::Config::Method.new delete_api_version_config
      list_api_specs_config = parent_rpcs.list_api_specs if parent_rpcs.respond_to? :list_api_specs
      @list_api_specs = ::Gapic::Config::Method.new list_api_specs_config
      get_api_spec_config = parent_rpcs.get_api_spec if parent_rpcs.respond_to? :get_api_spec
      @get_api_spec = ::Gapic::Config::Method.new get_api_spec_config
      get_api_spec_contents_config = parent_rpcs.get_api_spec_contents if parent_rpcs.respond_to? :get_api_spec_contents
      @get_api_spec_contents = ::Gapic::Config::Method.new get_api_spec_contents_config
      create_api_spec_config = parent_rpcs.create_api_spec if parent_rpcs.respond_to? :create_api_spec
      @create_api_spec = ::Gapic::Config::Method.new create_api_spec_config
      update_api_spec_config = parent_rpcs.update_api_spec if parent_rpcs.respond_to? :update_api_spec
      @update_api_spec = ::Gapic::Config::Method.new update_api_spec_config
      delete_api_spec_config = parent_rpcs.delete_api_spec if parent_rpcs.respond_to? :delete_api_spec
      @delete_api_spec = ::Gapic::Config::Method.new delete_api_spec_config
      tag_api_spec_revision_config = parent_rpcs.tag_api_spec_revision if parent_rpcs.respond_to? :tag_api_spec_revision
      @tag_api_spec_revision = ::Gapic::Config::Method.new tag_api_spec_revision_config
      list_api_spec_revisions_config = parent_rpcs.list_api_spec_revisions if parent_rpcs.respond_to? :list_api_spec_revisions
      @list_api_spec_revisions = ::Gapic::Config::Method.new list_api_spec_revisions_config
      rollback_api_spec_config = parent_rpcs.rollback_api_spec if parent_rpcs.respond_to? :rollback_api_spec
      @rollback_api_spec = ::Gapic::Config::Method.new rollback_api_spec_config
      delete_api_spec_revision_config = parent_rpcs.delete_api_spec_revision if parent_rpcs.respond_to? :delete_api_spec_revision
      @delete_api_spec_revision = ::Gapic::Config::Method.new delete_api_spec_revision_config
      list_api_deployments_config = parent_rpcs.list_api_deployments if parent_rpcs.respond_to? :list_api_deployments
      @list_api_deployments = ::Gapic::Config::Method.new list_api_deployments_config
      get_api_deployment_config = parent_rpcs.get_api_deployment if parent_rpcs.respond_to? :get_api_deployment
      @get_api_deployment = ::Gapic::Config::Method.new get_api_deployment_config
      create_api_deployment_config = parent_rpcs.create_api_deployment if parent_rpcs.respond_to? :create_api_deployment
      @create_api_deployment = ::Gapic::Config::Method.new create_api_deployment_config
      update_api_deployment_config = parent_rpcs.update_api_deployment if parent_rpcs.respond_to? :update_api_deployment
      @update_api_deployment = ::Gapic::Config::Method.new update_api_deployment_config
      delete_api_deployment_config = parent_rpcs.delete_api_deployment if parent_rpcs.respond_to? :delete_api_deployment
      @delete_api_deployment = ::Gapic::Config::Method.new delete_api_deployment_config
      tag_api_deployment_revision_config = parent_rpcs.tag_api_deployment_revision if parent_rpcs.respond_to? :tag_api_deployment_revision
      @tag_api_deployment_revision = ::Gapic::Config::Method.new tag_api_deployment_revision_config
      list_api_deployment_revisions_config = parent_rpcs.list_api_deployment_revisions if parent_rpcs.respond_to? :list_api_deployment_revisions
      @list_api_deployment_revisions = ::Gapic::Config::Method.new list_api_deployment_revisions_config
      rollback_api_deployment_config = parent_rpcs.rollback_api_deployment if parent_rpcs.respond_to? :rollback_api_deployment
      @rollback_api_deployment = ::Gapic::Config::Method.new rollback_api_deployment_config
      delete_api_deployment_revision_config = parent_rpcs.delete_api_deployment_revision if parent_rpcs.respond_to? :delete_api_deployment_revision
      @delete_api_deployment_revision = ::Gapic::Config::Method.new delete_api_deployment_revision_config
      list_artifacts_config = parent_rpcs.list_artifacts if parent_rpcs.respond_to? :list_artifacts
      @list_artifacts = ::Gapic::Config::Method.new list_artifacts_config
      get_artifact_config = parent_rpcs.get_artifact if parent_rpcs.respond_to? :get_artifact
      @get_artifact = ::Gapic::Config::Method.new get_artifact_config
      get_artifact_contents_config = parent_rpcs.get_artifact_contents if parent_rpcs.respond_to? :get_artifact_contents
      @get_artifact_contents = ::Gapic::Config::Method.new get_artifact_contents_config
      create_artifact_config = parent_rpcs.create_artifact if parent_rpcs.respond_to? :create_artifact
      @create_artifact = ::Gapic::Config::Method.new create_artifact_config
      replace_artifact_config = parent_rpcs.replace_artifact if parent_rpcs.respond_to? :replace_artifact
      @replace_artifact = ::Gapic::Config::Method.new replace_artifact_config
      delete_artifact_config = parent_rpcs.delete_artifact if parent_rpcs.respond_to? :delete_artifact
      @delete_artifact = ::Gapic::Config::Method.new delete_artifact_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)


3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
# File 'lib/google/cloud/apigee_registry/v1/registry/client.rb', line 3744

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "apigeeregistry.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 += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
    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(:channel_args,  { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
  config_attr :interceptors,  nil, ::Array, 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 for the channel pool
  # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
  #
  def channel_pool
    @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
  end

  ##
  # Configuration RPC class for the Registry 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 gRPC 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 `list_apis`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_apis
    ##
    # RPC-specific configuration for `get_api`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api
    ##
    # RPC-specific configuration for `create_api`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_api
    ##
    # RPC-specific configuration for `update_api`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_api
    ##
    # RPC-specific configuration for `delete_api`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api
    ##
    # RPC-specific configuration for `list_api_versions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_versions
    ##
    # RPC-specific configuration for `get_api_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api_version
    ##
    # RPC-specific configuration for `create_api_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_api_version
    ##
    # RPC-specific configuration for `update_api_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_api_version
    ##
    # RPC-specific configuration for `delete_api_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_version
    ##
    # RPC-specific configuration for `list_api_specs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_specs
    ##
    # RPC-specific configuration for `get_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api_spec
    ##
    # RPC-specific configuration for `get_api_spec_contents`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api_spec_contents
    ##
    # RPC-specific configuration for `create_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_api_spec
    ##
    # RPC-specific configuration for `update_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_api_spec
    ##
    # RPC-specific configuration for `delete_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_spec
    ##
    # RPC-specific configuration for `tag_api_spec_revision`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :tag_api_spec_revision
    ##
    # RPC-specific configuration for `list_api_spec_revisions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_spec_revisions
    ##
    # RPC-specific configuration for `rollback_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :rollback_api_spec
    ##
    # RPC-specific configuration for `delete_api_spec_revision`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_spec_revision
    ##
    # RPC-specific configuration for `list_api_deployments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_deployments
    ##
    # RPC-specific configuration for `get_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api_deployment
    ##
    # RPC-specific configuration for `create_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_api_deployment
    ##
    # RPC-specific configuration for `update_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_api_deployment
    ##
    # RPC-specific configuration for `delete_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_deployment
    ##
    # RPC-specific configuration for `tag_api_deployment_revision`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :tag_api_deployment_revision
    ##
    # RPC-specific configuration for `list_api_deployment_revisions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_deployment_revisions
    ##
    # RPC-specific configuration for `rollback_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :rollback_api_deployment
    ##
    # RPC-specific configuration for `delete_api_deployment_revision`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_deployment_revision
    ##
    # RPC-specific configuration for `list_artifacts`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_artifacts
    ##
    # RPC-specific configuration for `get_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_artifact
    ##
    # RPC-specific configuration for `get_artifact_contents`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_artifact_contents
    ##
    # RPC-specific configuration for `create_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_artifact
    ##
    # RPC-specific configuration for `replace_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :replace_artifact
    ##
    # RPC-specific configuration for `delete_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_artifact

    # @private
    def initialize parent_rpcs = nil
      list_apis_config = parent_rpcs.list_apis if parent_rpcs.respond_to? :list_apis
      @list_apis = ::Gapic::Config::Method.new list_apis_config
      get_api_config = parent_rpcs.get_api if parent_rpcs.respond_to? :get_api
      @get_api = ::Gapic::Config::Method.new get_api_config
      create_api_config = parent_rpcs.create_api if parent_rpcs.respond_to? :create_api
      @create_api = ::Gapic::Config::Method.new create_api_config
      update_api_config = parent_rpcs.update_api if parent_rpcs.respond_to? :update_api
      @update_api = ::Gapic::Config::Method.new update_api_config
      delete_api_config = parent_rpcs.delete_api if parent_rpcs.respond_to? :delete_api
      @delete_api = ::Gapic::Config::Method.new delete_api_config
      list_api_versions_config = parent_rpcs.list_api_versions if parent_rpcs.respond_to? :list_api_versions
      @list_api_versions = ::Gapic::Config::Method.new list_api_versions_config
      get_api_version_config = parent_rpcs.get_api_version if parent_rpcs.respond_to? :get_api_version
      @get_api_version = ::Gapic::Config::Method.new get_api_version_config
      create_api_version_config = parent_rpcs.create_api_version if parent_rpcs.respond_to? :create_api_version
      @create_api_version = ::Gapic::Config::Method.new create_api_version_config
      update_api_version_config = parent_rpcs.update_api_version if parent_rpcs.respond_to? :update_api_version
      @update_api_version = ::Gapic::Config::Method.new update_api_version_config
      delete_api_version_config = parent_rpcs.delete_api_version if parent_rpcs.respond_to? :delete_api_version
      @delete_api_version = ::Gapic::Config::Method.new delete_api_version_config
      list_api_specs_config = parent_rpcs.list_api_specs if parent_rpcs.respond_to? :list_api_specs
      @list_api_specs = ::Gapic::Config::Method.new list_api_specs_config
      get_api_spec_config = parent_rpcs.get_api_spec if parent_rpcs.respond_to? :get_api_spec
      @get_api_spec = ::Gapic::Config::Method.new get_api_spec_config
      get_api_spec_contents_config = parent_rpcs.get_api_spec_contents if parent_rpcs.respond_to? :get_api_spec_contents
      @get_api_spec_contents = ::Gapic::Config::Method.new get_api_spec_contents_config
      create_api_spec_config = parent_rpcs.create_api_spec if parent_rpcs.respond_to? :create_api_spec
      @create_api_spec = ::Gapic::Config::Method.new create_api_spec_config
      update_api_spec_config = parent_rpcs.update_api_spec if parent_rpcs.respond_to? :update_api_spec
      @update_api_spec = ::Gapic::Config::Method.new update_api_spec_config
      delete_api_spec_config = parent_rpcs.delete_api_spec if parent_rpcs.respond_to? :delete_api_spec
      @delete_api_spec = ::Gapic::Config::Method.new delete_api_spec_config
      tag_api_spec_revision_config = parent_rpcs.tag_api_spec_revision if parent_rpcs.respond_to? :tag_api_spec_revision
      @tag_api_spec_revision = ::Gapic::Config::Method.new tag_api_spec_revision_config
      list_api_spec_revisions_config = parent_rpcs.list_api_spec_revisions if parent_rpcs.respond_to? :list_api_spec_revisions
      @list_api_spec_revisions = ::Gapic::Config::Method.new list_api_spec_revisions_config
      rollback_api_spec_config = parent_rpcs.rollback_api_spec if parent_rpcs.respond_to? :rollback_api_spec
      @rollback_api_spec = ::Gapic::Config::Method.new rollback_api_spec_config
      delete_api_spec_revision_config = parent_rpcs.delete_api_spec_revision if parent_rpcs.respond_to? :delete_api_spec_revision
      @delete_api_spec_revision = ::Gapic::Config::Method.new delete_api_spec_revision_config
      list_api_deployments_config = parent_rpcs.list_api_deployments if parent_rpcs.respond_to? :list_api_deployments
      @list_api_deployments = ::Gapic::Config::Method.new list_api_deployments_config
      get_api_deployment_config = parent_rpcs.get_api_deployment if parent_rpcs.respond_to? :get_api_deployment
      @get_api_deployment = ::Gapic::Config::Method.new get_api_deployment_config
      create_api_deployment_config = parent_rpcs.create_api_deployment if parent_rpcs.respond_to? :create_api_deployment
      @create_api_deployment = ::Gapic::Config::Method.new create_api_deployment_config
      update_api_deployment_config = parent_rpcs.update_api_deployment if parent_rpcs.respond_to? :update_api_deployment
      @update_api_deployment = ::Gapic::Config::Method.new update_api_deployment_config
      delete_api_deployment_config = parent_rpcs.delete_api_deployment if parent_rpcs.respond_to? :delete_api_deployment
      @delete_api_deployment = ::Gapic::Config::Method.new delete_api_deployment_config
      tag_api_deployment_revision_config = parent_rpcs.tag_api_deployment_revision if parent_rpcs.respond_to? :tag_api_deployment_revision
      @tag_api_deployment_revision = ::Gapic::Config::Method.new tag_api_deployment_revision_config
      list_api_deployment_revisions_config = parent_rpcs.list_api_deployment_revisions if parent_rpcs.respond_to? :list_api_deployment_revisions
      @list_api_deployment_revisions = ::Gapic::Config::Method.new list_api_deployment_revisions_config
      rollback_api_deployment_config = parent_rpcs.rollback_api_deployment if parent_rpcs.respond_to? :rollback_api_deployment
      @rollback_api_deployment = ::Gapic::Config::Method.new rollback_api_deployment_config
      delete_api_deployment_revision_config = parent_rpcs.delete_api_deployment_revision if parent_rpcs.respond_to? :delete_api_deployment_revision
      @delete_api_deployment_revision = ::Gapic::Config::Method.new delete_api_deployment_revision_config
      list_artifacts_config = parent_rpcs.list_artifacts if parent_rpcs.respond_to? :list_artifacts
      @list_artifacts = ::Gapic::Config::Method.new list_artifacts_config
      get_artifact_config = parent_rpcs.get_artifact if parent_rpcs.respond_to? :get_artifact
      @get_artifact = ::Gapic::Config::Method.new get_artifact_config
      get_artifact_contents_config = parent_rpcs.get_artifact_contents if parent_rpcs.respond_to? :get_artifact_contents
      @get_artifact_contents = ::Gapic::Config::Method.new get_artifact_contents_config
      create_artifact_config = parent_rpcs.create_artifact if parent_rpcs.respond_to? :create_artifact
      @create_artifact = ::Gapic::Config::Method.new create_artifact_config
      replace_artifact_config = parent_rpcs.replace_artifact if parent_rpcs.respond_to? :replace_artifact
      @replace_artifact = ::Gapic::Config::Method.new replace_artifact_config
      delete_artifact_config = parent_rpcs.delete_artifact if parent_rpcs.respond_to? :delete_artifact
      @delete_artifact = ::Gapic::Config::Method.new delete_artifact_config

      yield self if block_given?
    end
  end
end

#scope::Array<::String>

The OAuth scopes

Returns:

  • (::Array<::String>)


3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
# File 'lib/google/cloud/apigee_registry/v1/registry/client.rb', line 3744

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "apigeeregistry.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 += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
    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(:channel_args,  { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
  config_attr :interceptors,  nil, ::Array, 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 for the channel pool
  # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
  #
  def channel_pool
    @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
  end

  ##
  # Configuration RPC class for the Registry 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 gRPC 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 `list_apis`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_apis
    ##
    # RPC-specific configuration for `get_api`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api
    ##
    # RPC-specific configuration for `create_api`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_api
    ##
    # RPC-specific configuration for `update_api`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_api
    ##
    # RPC-specific configuration for `delete_api`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api
    ##
    # RPC-specific configuration for `list_api_versions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_versions
    ##
    # RPC-specific configuration for `get_api_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api_version
    ##
    # RPC-specific configuration for `create_api_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_api_version
    ##
    # RPC-specific configuration for `update_api_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_api_version
    ##
    # RPC-specific configuration for `delete_api_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_version
    ##
    # RPC-specific configuration for `list_api_specs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_specs
    ##
    # RPC-specific configuration for `get_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api_spec
    ##
    # RPC-specific configuration for `get_api_spec_contents`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api_spec_contents
    ##
    # RPC-specific configuration for `create_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_api_spec
    ##
    # RPC-specific configuration for `update_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_api_spec
    ##
    # RPC-specific configuration for `delete_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_spec
    ##
    # RPC-specific configuration for `tag_api_spec_revision`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :tag_api_spec_revision
    ##
    # RPC-specific configuration for `list_api_spec_revisions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_spec_revisions
    ##
    # RPC-specific configuration for `rollback_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :rollback_api_spec
    ##
    # RPC-specific configuration for `delete_api_spec_revision`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_spec_revision
    ##
    # RPC-specific configuration for `list_api_deployments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_deployments
    ##
    # RPC-specific configuration for `get_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api_deployment
    ##
    # RPC-specific configuration for `create_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_api_deployment
    ##
    # RPC-specific configuration for `update_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_api_deployment
    ##
    # RPC-specific configuration for `delete_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_deployment
    ##
    # RPC-specific configuration for `tag_api_deployment_revision`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :tag_api_deployment_revision
    ##
    # RPC-specific configuration for `list_api_deployment_revisions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_deployment_revisions
    ##
    # RPC-specific configuration for `rollback_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :rollback_api_deployment
    ##
    # RPC-specific configuration for `delete_api_deployment_revision`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_deployment_revision
    ##
    # RPC-specific configuration for `list_artifacts`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_artifacts
    ##
    # RPC-specific configuration for `get_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_artifact
    ##
    # RPC-specific configuration for `get_artifact_contents`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_artifact_contents
    ##
    # RPC-specific configuration for `create_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_artifact
    ##
    # RPC-specific configuration for `replace_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :replace_artifact
    ##
    # RPC-specific configuration for `delete_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_artifact

    # @private
    def initialize parent_rpcs = nil
      list_apis_config = parent_rpcs.list_apis if parent_rpcs.respond_to? :list_apis
      @list_apis = ::Gapic::Config::Method.new list_apis_config
      get_api_config = parent_rpcs.get_api if parent_rpcs.respond_to? :get_api
      @get_api = ::Gapic::Config::Method.new get_api_config
      create_api_config = parent_rpcs.create_api if parent_rpcs.respond_to? :create_api
      @create_api = ::Gapic::Config::Method.new create_api_config
      update_api_config = parent_rpcs.update_api if parent_rpcs.respond_to? :update_api
      @update_api = ::Gapic::Config::Method.new update_api_config
      delete_api_config = parent_rpcs.delete_api if parent_rpcs.respond_to? :delete_api
      @delete_api = ::Gapic::Config::Method.new delete_api_config
      list_api_versions_config = parent_rpcs.list_api_versions if parent_rpcs.respond_to? :list_api_versions
      @list_api_versions = ::Gapic::Config::Method.new list_api_versions_config
      get_api_version_config = parent_rpcs.get_api_version if parent_rpcs.respond_to? :get_api_version
      @get_api_version = ::Gapic::Config::Method.new get_api_version_config
      create_api_version_config = parent_rpcs.create_api_version if parent_rpcs.respond_to? :create_api_version
      @create_api_version = ::Gapic::Config::Method.new create_api_version_config
      update_api_version_config = parent_rpcs.update_api_version if parent_rpcs.respond_to? :update_api_version
      @update_api_version = ::Gapic::Config::Method.new update_api_version_config
      delete_api_version_config = parent_rpcs.delete_api_version if parent_rpcs.respond_to? :delete_api_version
      @delete_api_version = ::Gapic::Config::Method.new delete_api_version_config
      list_api_specs_config = parent_rpcs.list_api_specs if parent_rpcs.respond_to? :list_api_specs
      @list_api_specs = ::Gapic::Config::Method.new list_api_specs_config
      get_api_spec_config = parent_rpcs.get_api_spec if parent_rpcs.respond_to? :get_api_spec
      @get_api_spec = ::Gapic::Config::Method.new get_api_spec_config
      get_api_spec_contents_config = parent_rpcs.get_api_spec_contents if parent_rpcs.respond_to? :get_api_spec_contents
      @get_api_spec_contents = ::Gapic::Config::Method.new get_api_spec_contents_config
      create_api_spec_config = parent_rpcs.create_api_spec if parent_rpcs.respond_to? :create_api_spec
      @create_api_spec = ::Gapic::Config::Method.new create_api_spec_config
      update_api_spec_config = parent_rpcs.update_api_spec if parent_rpcs.respond_to? :update_api_spec
      @update_api_spec = ::Gapic::Config::Method.new update_api_spec_config
      delete_api_spec_config = parent_rpcs.delete_api_spec if parent_rpcs.respond_to? :delete_api_spec
      @delete_api_spec = ::Gapic::Config::Method.new delete_api_spec_config
      tag_api_spec_revision_config = parent_rpcs.tag_api_spec_revision if parent_rpcs.respond_to? :tag_api_spec_revision
      @tag_api_spec_revision = ::Gapic::Config::Method.new tag_api_spec_revision_config
      list_api_spec_revisions_config = parent_rpcs.list_api_spec_revisions if parent_rpcs.respond_to? :list_api_spec_revisions
      @list_api_spec_revisions = ::Gapic::Config::Method.new list_api_spec_revisions_config
      rollback_api_spec_config = parent_rpcs.rollback_api_spec if parent_rpcs.respond_to? :rollback_api_spec
      @rollback_api_spec = ::Gapic::Config::Method.new rollback_api_spec_config
      delete_api_spec_revision_config = parent_rpcs.delete_api_spec_revision if parent_rpcs.respond_to? :delete_api_spec_revision
      @delete_api_spec_revision = ::Gapic::Config::Method.new delete_api_spec_revision_config
      list_api_deployments_config = parent_rpcs.list_api_deployments if parent_rpcs.respond_to? :list_api_deployments
      @list_api_deployments = ::Gapic::Config::Method.new list_api_deployments_config
      get_api_deployment_config = parent_rpcs.get_api_deployment if parent_rpcs.respond_to? :get_api_deployment
      @get_api_deployment = ::Gapic::Config::Method.new get_api_deployment_config
      create_api_deployment_config = parent_rpcs.create_api_deployment if parent_rpcs.respond_to? :create_api_deployment
      @create_api_deployment = ::Gapic::Config::Method.new create_api_deployment_config
      update_api_deployment_config = parent_rpcs.update_api_deployment if parent_rpcs.respond_to? :update_api_deployment
      @update_api_deployment = ::Gapic::Config::Method.new update_api_deployment_config
      delete_api_deployment_config = parent_rpcs.delete_api_deployment if parent_rpcs.respond_to? :delete_api_deployment
      @delete_api_deployment = ::Gapic::Config::Method.new delete_api_deployment_config
      tag_api_deployment_revision_config = parent_rpcs.tag_api_deployment_revision if parent_rpcs.respond_to? :tag_api_deployment_revision
      @tag_api_deployment_revision = ::Gapic::Config::Method.new tag_api_deployment_revision_config
      list_api_deployment_revisions_config = parent_rpcs.list_api_deployment_revisions if parent_rpcs.respond_to? :list_api_deployment_revisions
      @list_api_deployment_revisions = ::Gapic::Config::Method.new list_api_deployment_revisions_config
      rollback_api_deployment_config = parent_rpcs.rollback_api_deployment if parent_rpcs.respond_to? :rollback_api_deployment
      @rollback_api_deployment = ::Gapic::Config::Method.new rollback_api_deployment_config
      delete_api_deployment_revision_config = parent_rpcs.delete_api_deployment_revision if parent_rpcs.respond_to? :delete_api_deployment_revision
      @delete_api_deployment_revision = ::Gapic::Config::Method.new delete_api_deployment_revision_config
      list_artifacts_config = parent_rpcs.list_artifacts if parent_rpcs.respond_to? :list_artifacts
      @list_artifacts = ::Gapic::Config::Method.new list_artifacts_config
      get_artifact_config = parent_rpcs.get_artifact if parent_rpcs.respond_to? :get_artifact
      @get_artifact = ::Gapic::Config::Method.new get_artifact_config
      get_artifact_contents_config = parent_rpcs.get_artifact_contents if parent_rpcs.respond_to? :get_artifact_contents
      @get_artifact_contents = ::Gapic::Config::Method.new get_artifact_contents_config
      create_artifact_config = parent_rpcs.create_artifact if parent_rpcs.respond_to? :create_artifact
      @create_artifact = ::Gapic::Config::Method.new create_artifact_config
      replace_artifact_config = parent_rpcs.replace_artifact if parent_rpcs.respond_to? :replace_artifact
      @replace_artifact = ::Gapic::Config::Method.new replace_artifact_config
      delete_artifact_config = parent_rpcs.delete_artifact if parent_rpcs.respond_to? :delete_artifact
      @delete_artifact = ::Gapic::Config::Method.new delete_artifact_config

      yield self if block_given?
    end
  end
end

#timeout::Numeric

The call timeout in seconds.

Returns:

  • (::Numeric)


3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
# File 'lib/google/cloud/apigee_registry/v1/registry/client.rb', line 3744

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "apigeeregistry.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 += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
    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(:channel_args,  { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
  config_attr :interceptors,  nil, ::Array, 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 for the channel pool
  # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
  #
  def channel_pool
    @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
  end

  ##
  # Configuration RPC class for the Registry 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 gRPC 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 `list_apis`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_apis
    ##
    # RPC-specific configuration for `get_api`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api
    ##
    # RPC-specific configuration for `create_api`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_api
    ##
    # RPC-specific configuration for `update_api`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_api
    ##
    # RPC-specific configuration for `delete_api`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api
    ##
    # RPC-specific configuration for `list_api_versions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_versions
    ##
    # RPC-specific configuration for `get_api_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api_version
    ##
    # RPC-specific configuration for `create_api_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_api_version
    ##
    # RPC-specific configuration for `update_api_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_api_version
    ##
    # RPC-specific configuration for `delete_api_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_version
    ##
    # RPC-specific configuration for `list_api_specs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_specs
    ##
    # RPC-specific configuration for `get_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api_spec
    ##
    # RPC-specific configuration for `get_api_spec_contents`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api_spec_contents
    ##
    # RPC-specific configuration for `create_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_api_spec
    ##
    # RPC-specific configuration for `update_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_api_spec
    ##
    # RPC-specific configuration for `delete_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_spec
    ##
    # RPC-specific configuration for `tag_api_spec_revision`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :tag_api_spec_revision
    ##
    # RPC-specific configuration for `list_api_spec_revisions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_spec_revisions
    ##
    # RPC-specific configuration for `rollback_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :rollback_api_spec
    ##
    # RPC-specific configuration for `delete_api_spec_revision`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_spec_revision
    ##
    # RPC-specific configuration for `list_api_deployments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_deployments
    ##
    # RPC-specific configuration for `get_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api_deployment
    ##
    # RPC-specific configuration for `create_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_api_deployment
    ##
    # RPC-specific configuration for `update_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_api_deployment
    ##
    # RPC-specific configuration for `delete_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_deployment
    ##
    # RPC-specific configuration for `tag_api_deployment_revision`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :tag_api_deployment_revision
    ##
    # RPC-specific configuration for `list_api_deployment_revisions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_deployment_revisions
    ##
    # RPC-specific configuration for `rollback_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :rollback_api_deployment
    ##
    # RPC-specific configuration for `delete_api_deployment_revision`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_deployment_revision
    ##
    # RPC-specific configuration for `list_artifacts`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_artifacts
    ##
    # RPC-specific configuration for `get_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_artifact
    ##
    # RPC-specific configuration for `get_artifact_contents`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_artifact_contents
    ##
    # RPC-specific configuration for `create_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_artifact
    ##
    # RPC-specific configuration for `replace_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :replace_artifact
    ##
    # RPC-specific configuration for `delete_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_artifact

    # @private
    def initialize parent_rpcs = nil
      list_apis_config = parent_rpcs.list_apis if parent_rpcs.respond_to? :list_apis
      @list_apis = ::Gapic::Config::Method.new list_apis_config
      get_api_config = parent_rpcs.get_api if parent_rpcs.respond_to? :get_api
      @get_api = ::Gapic::Config::Method.new get_api_config
      create_api_config = parent_rpcs.create_api if parent_rpcs.respond_to? :create_api
      @create_api = ::Gapic::Config::Method.new create_api_config
      update_api_config = parent_rpcs.update_api if parent_rpcs.respond_to? :update_api
      @update_api = ::Gapic::Config::Method.new update_api_config
      delete_api_config = parent_rpcs.delete_api if parent_rpcs.respond_to? :delete_api
      @delete_api = ::Gapic::Config::Method.new delete_api_config
      list_api_versions_config = parent_rpcs.list_api_versions if parent_rpcs.respond_to? :list_api_versions
      @list_api_versions = ::Gapic::Config::Method.new list_api_versions_config
      get_api_version_config = parent_rpcs.get_api_version if parent_rpcs.respond_to? :get_api_version
      @get_api_version = ::Gapic::Config::Method.new get_api_version_config
      create_api_version_config = parent_rpcs.create_api_version if parent_rpcs.respond_to? :create_api_version
      @create_api_version = ::Gapic::Config::Method.new create_api_version_config
      update_api_version_config = parent_rpcs.update_api_version if parent_rpcs.respond_to? :update_api_version
      @update_api_version = ::Gapic::Config::Method.new update_api_version_config
      delete_api_version_config = parent_rpcs.delete_api_version if parent_rpcs.respond_to? :delete_api_version
      @delete_api_version = ::Gapic::Config::Method.new delete_api_version_config
      list_api_specs_config = parent_rpcs.list_api_specs if parent_rpcs.respond_to? :list_api_specs
      @list_api_specs = ::Gapic::Config::Method.new list_api_specs_config
      get_api_spec_config = parent_rpcs.get_api_spec if parent_rpcs.respond_to? :get_api_spec
      @get_api_spec = ::Gapic::Config::Method.new get_api_spec_config
      get_api_spec_contents_config = parent_rpcs.get_api_spec_contents if parent_rpcs.respond_to? :get_api_spec_contents
      @get_api_spec_contents = ::Gapic::Config::Method.new get_api_spec_contents_config
      create_api_spec_config = parent_rpcs.create_api_spec if parent_rpcs.respond_to? :create_api_spec
      @create_api_spec = ::Gapic::Config::Method.new create_api_spec_config
      update_api_spec_config = parent_rpcs.update_api_spec if parent_rpcs.respond_to? :update_api_spec
      @update_api_spec = ::Gapic::Config::Method.new update_api_spec_config
      delete_api_spec_config = parent_rpcs.delete_api_spec if parent_rpcs.respond_to? :delete_api_spec
      @delete_api_spec = ::Gapic::Config::Method.new delete_api_spec_config
      tag_api_spec_revision_config = parent_rpcs.tag_api_spec_revision if parent_rpcs.respond_to? :tag_api_spec_revision
      @tag_api_spec_revision = ::Gapic::Config::Method.new tag_api_spec_revision_config
      list_api_spec_revisions_config = parent_rpcs.list_api_spec_revisions if parent_rpcs.respond_to? :list_api_spec_revisions
      @list_api_spec_revisions = ::Gapic::Config::Method.new list_api_spec_revisions_config
      rollback_api_spec_config = parent_rpcs.rollback_api_spec if parent_rpcs.respond_to? :rollback_api_spec
      @rollback_api_spec = ::Gapic::Config::Method.new rollback_api_spec_config
      delete_api_spec_revision_config = parent_rpcs.delete_api_spec_revision if parent_rpcs.respond_to? :delete_api_spec_revision
      @delete_api_spec_revision = ::Gapic::Config::Method.new delete_api_spec_revision_config
      list_api_deployments_config = parent_rpcs.list_api_deployments if parent_rpcs.respond_to? :list_api_deployments
      @list_api_deployments = ::Gapic::Config::Method.new list_api_deployments_config
      get_api_deployment_config = parent_rpcs.get_api_deployment if parent_rpcs.respond_to? :get_api_deployment
      @get_api_deployment = ::Gapic::Config::Method.new get_api_deployment_config
      create_api_deployment_config = parent_rpcs.create_api_deployment if parent_rpcs.respond_to? :create_api_deployment
      @create_api_deployment = ::Gapic::Config::Method.new create_api_deployment_config
      update_api_deployment_config = parent_rpcs.update_api_deployment if parent_rpcs.respond_to? :update_api_deployment
      @update_api_deployment = ::Gapic::Config::Method.new update_api_deployment_config
      delete_api_deployment_config = parent_rpcs.delete_api_deployment if parent_rpcs.respond_to? :delete_api_deployment
      @delete_api_deployment = ::Gapic::Config::Method.new delete_api_deployment_config
      tag_api_deployment_revision_config = parent_rpcs.tag_api_deployment_revision if parent_rpcs.respond_to? :tag_api_deployment_revision
      @tag_api_deployment_revision = ::Gapic::Config::Method.new tag_api_deployment_revision_config
      list_api_deployment_revisions_config = parent_rpcs.list_api_deployment_revisions if parent_rpcs.respond_to? :list_api_deployment_revisions
      @list_api_deployment_revisions = ::Gapic::Config::Method.new list_api_deployment_revisions_config
      rollback_api_deployment_config = parent_rpcs.rollback_api_deployment if parent_rpcs.respond_to? :rollback_api_deployment
      @rollback_api_deployment = ::Gapic::Config::Method.new rollback_api_deployment_config
      delete_api_deployment_revision_config = parent_rpcs.delete_api_deployment_revision if parent_rpcs.respond_to? :delete_api_deployment_revision
      @delete_api_deployment_revision = ::Gapic::Config::Method.new delete_api_deployment_revision_config
      list_artifacts_config = parent_rpcs.list_artifacts if parent_rpcs.respond_to? :list_artifacts
      @list_artifacts = ::Gapic::Config::Method.new list_artifacts_config
      get_artifact_config = parent_rpcs.get_artifact if parent_rpcs.respond_to? :get_artifact
      @get_artifact = ::Gapic::Config::Method.new get_artifact_config
      get_artifact_contents_config = parent_rpcs.get_artifact_contents if parent_rpcs.respond_to? :get_artifact_contents
      @get_artifact_contents = ::Gapic::Config::Method.new get_artifact_contents_config
      create_artifact_config = parent_rpcs.create_artifact if parent_rpcs.respond_to? :create_artifact
      @create_artifact = ::Gapic::Config::Method.new create_artifact_config
      replace_artifact_config = parent_rpcs.replace_artifact if parent_rpcs.respond_to? :replace_artifact
      @replace_artifact = ::Gapic::Config::Method.new replace_artifact_config
      delete_artifact_config = parent_rpcs.delete_artifact if parent_rpcs.respond_to? :delete_artifact
      @delete_artifact = ::Gapic::Config::Method.new delete_artifact_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)


3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
# File 'lib/google/cloud/apigee_registry/v1/registry/client.rb', line 3744

class Configuration
  extend ::Gapic::Config

  # @private
  # The endpoint specific to the default "googleapis.com" universe. Deprecated.
  DEFAULT_ENDPOINT = "apigeeregistry.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 += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
    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(:channel_args,  { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
  config_attr :interceptors,  nil, ::Array, 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 for the channel pool
  # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
  #
  def channel_pool
    @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
  end

  ##
  # Configuration RPC class for the Registry 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 gRPC 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 `list_apis`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_apis
    ##
    # RPC-specific configuration for `get_api`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api
    ##
    # RPC-specific configuration for `create_api`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_api
    ##
    # RPC-specific configuration for `update_api`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_api
    ##
    # RPC-specific configuration for `delete_api`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api
    ##
    # RPC-specific configuration for `list_api_versions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_versions
    ##
    # RPC-specific configuration for `get_api_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api_version
    ##
    # RPC-specific configuration for `create_api_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_api_version
    ##
    # RPC-specific configuration for `update_api_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_api_version
    ##
    # RPC-specific configuration for `delete_api_version`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_version
    ##
    # RPC-specific configuration for `list_api_specs`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_specs
    ##
    # RPC-specific configuration for `get_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api_spec
    ##
    # RPC-specific configuration for `get_api_spec_contents`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api_spec_contents
    ##
    # RPC-specific configuration for `create_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_api_spec
    ##
    # RPC-specific configuration for `update_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_api_spec
    ##
    # RPC-specific configuration for `delete_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_spec
    ##
    # RPC-specific configuration for `tag_api_spec_revision`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :tag_api_spec_revision
    ##
    # RPC-specific configuration for `list_api_spec_revisions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_spec_revisions
    ##
    # RPC-specific configuration for `rollback_api_spec`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :rollback_api_spec
    ##
    # RPC-specific configuration for `delete_api_spec_revision`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_spec_revision
    ##
    # RPC-specific configuration for `list_api_deployments`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_deployments
    ##
    # RPC-specific configuration for `get_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_api_deployment
    ##
    # RPC-specific configuration for `create_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_api_deployment
    ##
    # RPC-specific configuration for `update_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :update_api_deployment
    ##
    # RPC-specific configuration for `delete_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_deployment
    ##
    # RPC-specific configuration for `tag_api_deployment_revision`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :tag_api_deployment_revision
    ##
    # RPC-specific configuration for `list_api_deployment_revisions`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_api_deployment_revisions
    ##
    # RPC-specific configuration for `rollback_api_deployment`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :rollback_api_deployment
    ##
    # RPC-specific configuration for `delete_api_deployment_revision`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_api_deployment_revision
    ##
    # RPC-specific configuration for `list_artifacts`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :list_artifacts
    ##
    # RPC-specific configuration for `get_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_artifact
    ##
    # RPC-specific configuration for `get_artifact_contents`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :get_artifact_contents
    ##
    # RPC-specific configuration for `create_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :create_artifact
    ##
    # RPC-specific configuration for `replace_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :replace_artifact
    ##
    # RPC-specific configuration for `delete_artifact`
    # @return [::Gapic::Config::Method]
    #
    attr_reader :delete_artifact

    # @private
    def initialize parent_rpcs = nil
      list_apis_config = parent_rpcs.list_apis if parent_rpcs.respond_to? :list_apis
      @list_apis = ::Gapic::Config::Method.new list_apis_config
      get_api_config = parent_rpcs.get_api if parent_rpcs.respond_to? :get_api
      @get_api = ::Gapic::Config::Method.new get_api_config
      create_api_config = parent_rpcs.create_api if parent_rpcs.respond_to? :create_api
      @create_api = ::Gapic::Config::Method.new create_api_config
      update_api_config = parent_rpcs.update_api if parent_rpcs.respond_to? :update_api
      @update_api = ::Gapic::Config::Method.new update_api_config
      delete_api_config = parent_rpcs.delete_api if parent_rpcs.respond_to? :delete_api
      @delete_api = ::Gapic::Config::Method.new delete_api_config
      list_api_versions_config = parent_rpcs.list_api_versions if parent_rpcs.respond_to? :list_api_versions
      @list_api_versions = ::Gapic::Config::Method.new list_api_versions_config
      get_api_version_config = parent_rpcs.get_api_version if parent_rpcs.respond_to? :get_api_version
      @get_api_version = ::Gapic::Config::Method.new get_api_version_config
      create_api_version_config = parent_rpcs.create_api_version if parent_rpcs.respond_to? :create_api_version
      @create_api_version = ::Gapic::Config::Method.new create_api_version_config
      update_api_version_config = parent_rpcs.update_api_version if parent_rpcs.respond_to? :update_api_version
      @update_api_version = ::Gapic::Config::Method.new update_api_version_config
      delete_api_version_config = parent_rpcs.delete_api_version if parent_rpcs.respond_to? :delete_api_version
      @delete_api_version = ::Gapic::Config::Method.new delete_api_version_config
      list_api_specs_config = parent_rpcs.list_api_specs if parent_rpcs.respond_to? :list_api_specs
      @list_api_specs = ::Gapic::Config::Method.new list_api_specs_config
      get_api_spec_config = parent_rpcs.get_api_spec if parent_rpcs.respond_to? :get_api_spec
      @get_api_spec = ::Gapic::Config::Method.new get_api_spec_config
      get_api_spec_contents_config = parent_rpcs.get_api_spec_contents if parent_rpcs.respond_to? :get_api_spec_contents
      @get_api_spec_contents = ::Gapic::Config::Method.new get_api_spec_contents_config
      create_api_spec_config = parent_rpcs.create_api_spec if parent_rpcs.respond_to? :create_api_spec
      @create_api_spec = ::Gapic::Config::Method.new create_api_spec_config
      update_api_spec_config = parent_rpcs.update_api_spec if parent_rpcs.respond_to? :update_api_spec
      @update_api_spec = ::Gapic::Config::Method.new update_api_spec_config
      delete_api_spec_config = parent_rpcs.delete_api_spec if parent_rpcs.respond_to? :delete_api_spec
      @delete_api_spec = ::Gapic::Config::Method.new delete_api_spec_config
      tag_api_spec_revision_config = parent_rpcs.tag_api_spec_revision if parent_rpcs.respond_to? :tag_api_spec_revision
      @tag_api_spec_revision = ::Gapic::Config::Method.new tag_api_spec_revision_config
      list_api_spec_revisions_config = parent_rpcs.list_api_spec_revisions if parent_rpcs.respond_to? :list_api_spec_revisions
      @list_api_spec_revisions = ::Gapic::Config::Method.new list_api_spec_revisions_config
      rollback_api_spec_config = parent_rpcs.rollback_api_spec if parent_rpcs.respond_to? :rollback_api_spec
      @rollback_api_spec = ::Gapic::Config::Method.new rollback_api_spec_config
      delete_api_spec_revision_config = parent_rpcs.delete_api_spec_revision if parent_rpcs.respond_to? :delete_api_spec_revision
      @delete_api_spec_revision = ::Gapic::Config::Method.new delete_api_spec_revision_config
      list_api_deployments_config = parent_rpcs.list_api_deployments if parent_rpcs.respond_to? :list_api_deployments
      @list_api_deployments = ::Gapic::Config::Method.new list_api_deployments_config
      get_api_deployment_config = parent_rpcs.get_api_deployment if parent_rpcs.respond_to? :get_api_deployment
      @get_api_deployment = ::Gapic::Config::Method.new get_api_deployment_config
      create_api_deployment_config = parent_rpcs.create_api_deployment if parent_rpcs.respond_to? :create_api_deployment
      @create_api_deployment = ::Gapic::Config::Method.new create_api_deployment_config
      update_api_deployment_config = parent_rpcs.update_api_deployment if parent_rpcs.respond_to? :update_api_deployment
      @update_api_deployment = ::Gapic::Config::Method.new update_api_deployment_config
      delete_api_deployment_config = parent_rpcs.delete_api_deployment if parent_rpcs.respond_to? :delete_api_deployment
      @delete_api_deployment = ::Gapic::Config::Method.new delete_api_deployment_config
      tag_api_deployment_revision_config = parent_rpcs.tag_api_deployment_revision if parent_rpcs.respond_to? :tag_api_deployment_revision
      @tag_api_deployment_revision = ::Gapic::Config::Method.new tag_api_deployment_revision_config
      list_api_deployment_revisions_config = parent_rpcs.list_api_deployment_revisions if parent_rpcs.respond_to? :list_api_deployment_revisions
      @list_api_deployment_revisions = ::Gapic::Config::Method.new list_api_deployment_revisions_config
      rollback_api_deployment_config = parent_rpcs.rollback_api_deployment if parent_rpcs.respond_to? :rollback_api_deployment
      @rollback_api_deployment = ::Gapic::Config::Method.new rollback_api_deployment_config
      delete_api_deployment_revision_config = parent_rpcs.delete_api_deployment_revision if parent_rpcs.respond_to? :delete_api_deployment_revision
      @delete_api_deployment_revision = ::Gapic::Config::Method.new delete_api_deployment_revision_config
      list_artifacts_config = parent_rpcs.list_artifacts if parent_rpcs.respond_to? :list_artifacts
      @list_artifacts = ::Gapic::Config::Method.new list_artifacts_config
      get_artifact_config = parent_rpcs.get_artifact if parent_rpcs.respond_to? :get_artifact
      @get_artifact = ::Gapic::Config::Method.new get_artifact_config
      get_artifact_contents_config = parent_rpcs.get_artifact_contents if parent_rpcs.respond_to? :get_artifact_contents
      @get_artifact_contents = ::Gapic::Config::Method.new get_artifact_contents_config
      create_artifact_config = parent_rpcs.create_artifact if parent_rpcs.respond_to? :create_artifact
      @create_artifact = ::Gapic::Config::Method.new create_artifact_config
      replace_artifact_config = parent_rpcs.replace_artifact if parent_rpcs.respond_to? :replace_artifact
      @replace_artifact = ::Gapic::Config::Method.new replace_artifact_config
      delete_artifact_config = parent_rpcs.delete_artifact if parent_rpcs.respond_to? :delete_artifact
      @delete_artifact = ::Gapic::Config::Method.new delete_artifact_config

      yield self if block_given?
    end
  end
end

Instance Method Details

#channel_pool::Gapic::ServiceStub::ChannelPool::Configuration

Configuration for the channel pool

Returns:

  • (::Gapic::ServiceStub::ChannelPool::Configuration)


3791
3792
3793
# File 'lib/google/cloud/apigee_registry/v1/registry/client.rb', line 3791

def channel_pool
  @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
end

#rpcsRpcs

Configurations for individual RPCs

Returns:



3779
3780
3781
3782
3783
3784
3785
# File 'lib/google/cloud/apigee_registry/v1/registry/client.rb', line 3779

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