Class: Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client::Configuration
- Inherits:
-
Object
- Object
- Google::Cloud::ApigeeRegistry::V1::Registry::Rest::Client::Configuration
- Extended by:
- Gapic::Config
- Defined in:
- lib/google/cloud/apigee_registry/v1/registry/rest/client.rb
Overview
Configuration class for the Registry REST API.
This class represents the configuration for Registry REST, providing control over timeouts, retry behavior, logging, transport parameters, and other low-level controls. Certain parameters can also be applied individually to specific RPCs. See Rpcs for a list of RPCs that can be configured independently.
Configuration can be applied globally to all clients, or to a single client on construction.
Defined Under Namespace
Classes: Rpcs
Instance Attribute Summary collapse
-
#credentials ⇒ ::Object
Credentials to send with calls.
-
#endpoint ⇒ ::String?
A custom service endpoint, as a hostname or hostname:port.
-
#lib_name ⇒ ::String
The library name as recorded in instrumentation and logging.
-
#lib_version ⇒ ::String
The library version as recorded in instrumentation and logging.
-
#metadata ⇒ ::Hash{::Symbol=>::String}
Additional headers to be sent with the call.
-
#quota_project ⇒ ::String
A separate project against which to charge quota.
-
#retry_policy ⇒ ::Hash
The retry policy.
-
#scope ⇒ ::Array<::String>
The OAuth scopes.
-
#timeout ⇒ ::Numeric
The call timeout in seconds.
-
#universe_domain ⇒ ::String?
The universe domain within which to make requests.
Instance Method Summary collapse
-
#rpcs ⇒ Rpcs
Configurations for individual RPCs.
Instance Attribute Details
#credentials ⇒ ::Object
Credentials to send with calls. You may provide any of the following types:
- (
String
) The path to a service account key file in JSON format - (
Hash
) A service account key as a Hash - (
Google::Auth::Credentials
) A googleauth credentials object (see the googleauth docs) - (
Signet::OAuth2::Client
) A signet oauth2 client object (see the signet docs) - (
nil
) indicating no credentials
3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 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 |
# File 'lib/google/cloud/apigee_registry/v1/registry/rest/client.rb', line 3485 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.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil # @private # Overrides for http bindings for the RPCs of this service # are only used when this service is used as mixin, and only # by the host service. # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}] config_attr :bindings_override, {}, ::Hash, nil # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration RPC class for the 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 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.
3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 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 |
# File 'lib/google/cloud/apigee_registry/v1/registry/rest/client.rb', line 3485 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.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil # @private # Overrides for http bindings for the RPCs of this service # are only used when this service is used as mixin, and only # by the host service. # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}] config_attr :bindings_override, {}, ::Hash, nil # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration RPC class for the 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 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
3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 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 |
# File 'lib/google/cloud/apigee_registry/v1/registry/rest/client.rb', line 3485 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.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil # @private # Overrides for http bindings for the RPCs of this service # are only used when this service is used as mixin, and only # by the host service. # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}] config_attr :bindings_override, {}, ::Hash, nil # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration RPC class for the 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 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
3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 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 |
# File 'lib/google/cloud/apigee_registry/v1/registry/rest/client.rb', line 3485 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.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil # @private # Overrides for http bindings for the RPCs of this service # are only used when this service is used as mixin, and only # by the host service. # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}] config_attr :bindings_override, {}, ::Hash, nil # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration RPC class for the 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 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 headers to be sent with the call.
3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 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 |
# File 'lib/google/cloud/apigee_registry/v1/registry/rest/client.rb', line 3485 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.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil # @private # Overrides for http bindings for the RPCs of this service # are only used when this service is used as mixin, and only # by the host service. # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}] config_attr :bindings_override, {}, ::Hash, nil # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration RPC class for the 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 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.
3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 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 |
# File 'lib/google/cloud/apigee_registry/v1/registry/rest/client.rb', line 3485 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.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil # @private # Overrides for http bindings for the RPCs of this service # are only used when this service is used as mixin, and only # by the host service. # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}] config_attr :bindings_override, {}, ::Hash, nil # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration RPC class for the 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 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.
3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 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 |
# File 'lib/google/cloud/apigee_registry/v1/registry/rest/client.rb', line 3485 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.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil # @private # Overrides for http bindings for the RPCs of this service # are only used when this service is used as mixin, and only # by the host service. # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}] config_attr :bindings_override, {}, ::Hash, nil # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration RPC class for the 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 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
3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 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 |
# File 'lib/google/cloud/apigee_registry/v1/registry/rest/client.rb', line 3485 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.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil # @private # Overrides for http bindings for the RPCs of this service # are only used when this service is used as mixin, and only # by the host service. # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}] config_attr :bindings_override, {}, ::Hash, nil # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration RPC class for the 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 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.
3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 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 |
# File 'lib/google/cloud/apigee_registry/v1/registry/rest/client.rb', line 3485 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.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil # @private # Overrides for http bindings for the RPCs of this service # are only used when this service is used as mixin, and only # by the host service. # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}] config_attr :bindings_override, {}, ::Hash, nil # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration RPC class for the 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 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).
3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 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 |
# File 'lib/google/cloud/apigee_registry/v1/registry/rest/client.rb', line 3485 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.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil config_attr :universe_domain, nil, ::String, nil # @private # Overrides for http bindings for the RPCs of this service # are only used when this service is used as mixin, and only # by the host service. # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}] config_attr :bindings_override, {}, ::Hash, nil # @private def initialize parent_config = nil @parent_config = parent_config unless parent_config.nil? yield self if block_given? end ## # Configurations for individual RPCs # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## # Configuration RPC class for the 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 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
#rpcs ⇒ Rpcs
Configurations for individual RPCs
3524 3525 3526 3527 3528 3529 3530 |
# File 'lib/google/cloud/apigee_registry/v1/registry/rest/client.rb', line 3524 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 |