google-cloud-certificate_manager-v1 0.4.2 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c9389e4634607be587dfbe3e2109f56ce69b20e41121b50f4350d0062fa91603
4
- data.tar.gz: 5f3130a6f33b13d3cfbb0a874d21becfdf3235da5625d6f4a371c365f6d61965
3
+ metadata.gz: ee33affb06d2eed88e9f846abbb9542e5a608c1dbd9830858ff91074645ef044
4
+ data.tar.gz: 949d1dcebfc79902b3ec6957441ccde5c137159579201be22d7893f7dd22d7fb
5
5
  SHA512:
6
- metadata.gz: ae40865a7e10646cb14c496ddb91c8a3ba989ad3c36e7f3f62a1e0ce5ef5efe2c8f1d3688b2edc83392c41b387cccfb5dc9c9f01edc1daf11f2858d25a5cb0ad
7
- data.tar.gz: 780c67433299ad134e5bb86873d448ed66d4cafe31e0e02cbcdeb7eabb509cf6e13b038797321774106de1929d706c436d08a0dc0179ec821a5fc393167faafe
6
+ metadata.gz: 86bb8f70ccbb5d64a323f47259ef9b4338050881258b13db2915bae0c7104763befc9b3813ce96b547384bf3836a1f1d20b84f449ceb6cb5fcef1c249ab50028
7
+ data.tar.gz: 54216381db71f8840f8a1f2e0b480adef791be7404e076249df94e98d05dca6c61f88df1758afe056808f382622086230ef198c44d06ab4e2678ec42cd5c79a4
@@ -0,0 +1,102 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "gapic/config"
20
+
21
+ module Google
22
+ module Cloud
23
+ module CertificateManager
24
+ ##
25
+ # @example Loading just the REST part of this package, including all its services, and instantiating a REST client
26
+ #
27
+ # require "google/cloud/certificate_manager/v1/rest"
28
+ # client = ::Google::Cloud::CertificateManager::V1::CertificateManager::Rest::Client.new
29
+ #
30
+ module V1
31
+ ##
32
+ # @private
33
+ # Initialize the mixin bindings configuration
34
+ #
35
+ def self.configure
36
+ @configure ||= begin
37
+ namespace = ["Google", "Cloud", "CertificateManager"]
38
+ parent_config = while namespace.any?
39
+ parent_name = namespace.join "::"
40
+ parent_const = const_get parent_name
41
+ break parent_const.configure if parent_const.respond_to? :configure
42
+ namespace.pop
43
+ end
44
+
45
+ default_config = Configuration.new parent_config
46
+ default_config.bindings_override["google.cloud.location.Locations.GetLocation"] = [
47
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
48
+ uri_method: :get,
49
+ uri_template: "/v1/{name}",
50
+ matches: [
51
+ ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
52
+ ],
53
+ body: nil
54
+ )
55
+ ]
56
+ default_config.bindings_override["google.cloud.location.Locations.ListLocations"] = [
57
+
58
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
59
+ uri_method: :get,
60
+ uri_template: "/v1/{name}/locations",
61
+ matches: [
62
+ ["name", %r{^projects/[^/]+/?$}, false]
63
+ ],
64
+ body: nil
65
+ )
66
+ ]
67
+ default_config
68
+ end
69
+ yield @configure if block_given?
70
+ @configure
71
+ end
72
+
73
+ ##
74
+ # @private
75
+ # Configuration class for the google.cloud.certificatemanager.v1 package.
76
+ #
77
+ # This class contains common configuration for all services
78
+ # of the google.cloud.certificatemanager.v1 package.
79
+ #
80
+ # This configuration is for internal use of the client library classes,
81
+ # and it is not intended that the end-users will read or change it.
82
+ #
83
+ class Configuration
84
+ extend ::Gapic::Config
85
+
86
+ # @private
87
+ # Overrides for http bindings for the RPC of the mixins for this package.
88
+ # Services in this package should use these when creating clients for the mixin services.
89
+ # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
90
+ config_attr :bindings_override, {}, ::Hash, nil
91
+
92
+ # @private
93
+ def initialize parent_config = nil
94
+ @parent_config = parent_config unless parent_config.nil?
95
+
96
+ yield self if block_given?
97
+ end
98
+ end
99
+ end
100
+ end
101
+ end
102
+ end