google-cloud-security-private_ca-v1 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 54a4f6d31f5a7703d5e9813db0ef593e43507aa01f5d7749ff77c82a2f54126b
4
- data.tar.gz: 1af1c59ed8e15480060c1d1e8150659e9362a949b0cf19a91dc297a25092f583
3
+ metadata.gz: 58084b2bd3dbcab64029ee0b38ceaaafc2af9df59e748bdb0953145607691c65
4
+ data.tar.gz: 555e1f7567b1e89e24d9ff5337e4a1600ce5e7597c967e9d967c86de5e0bff1b
5
5
  SHA512:
6
- metadata.gz: 7e73c8623be189781c9364b510f322ab9ed75132018b20a724e7c068353ba66712c0f6bb353e17bb12dc36ca0c73febc603e4a845502827642a2da90c989c9a7
7
- data.tar.gz: 17750f37731b00d05b82f7c76178d7a9573d8f700169584e9c46956d4d3444de629be3fd385ce91a85da633a3aff7c1b053b0959184c9ea555510288332fc168
6
+ metadata.gz: 762a68d3616ab499b87b8195a2e49b605a96bd8a433bf1493b315a87722c718017d8dfa9c5e92229547d3a44fefaa26bb7bb2ed2ebf7d1ba87bad90080cafc5c
7
+ data.tar.gz: 9cc9a52be3d6acad60466fc5005a8dfd68321c8b57408cf609572151df7d4fc785f7bf98d226d5df963908d7de0ed374bda28b3450caa259034342b7e1c18245
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Ruby Client for the Ceritificate Authority Service V1 API
2
2
 
3
- API Client library for the Ceritificate Authority Service V1 API
3
+ The Certificate Authority Service API is a highly-available, scalable service that enables you to simplify and automate the management of private certificate authorities (CAs) while staying in control of your private keys.
4
4
 
5
5
  Certificate Authority Service is a highly available, scalable Google Cloud service that enables you to simplify, automate, and customize the deployment, management, and security of private certificate authorities (CA).
6
6
 
@@ -0,0 +1,185 @@
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 Security
24
+ module PrivateCA
25
+ ##
26
+ # @example Loading just the REST part of this package, including all its services, and instantiating a REST client
27
+ #
28
+ # require "google/cloud/security/private_ca/v1/rest"
29
+ # client = ::Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Rest::Client.new
30
+ #
31
+ module V1
32
+ ##
33
+ # @private
34
+ # Initialize the mixin bindings configuration
35
+ #
36
+ def self.configure
37
+ @configure ||= begin
38
+ namespace = ["Google", "Cloud", "Security", "PrivateCA"]
39
+ parent_config = while namespace.any?
40
+ parent_name = namespace.join "::"
41
+ parent_const = const_get parent_name
42
+ break parent_const.configure if parent_const.respond_to? :configure
43
+ namespace.pop
44
+ end
45
+
46
+ default_config = Configuration.new parent_config
47
+ default_config.bindings_override["google.cloud.location.Locations.GetLocation"] = [
48
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
49
+ uri_method: :get,
50
+ uri_template: "/v1/{name}",
51
+ matches: [
52
+ ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
53
+ ],
54
+ body: nil
55
+ )
56
+ ]
57
+ default_config.bindings_override["google.cloud.location.Locations.ListLocations"] = [
58
+
59
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
60
+ uri_method: :get,
61
+ uri_template: "/v1/{name}/locations",
62
+ matches: [
63
+ ["name", %r{^projects/[^/]+/?$}, false]
64
+ ],
65
+ body: nil
66
+ )
67
+ ]
68
+ default_config.bindings_override["google.iam.v1.IAMPolicy.GetIamPolicy"] = [
69
+
70
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
71
+ uri_method: :get,
72
+ uri_template: "/v1/{resource}:getIamPolicy",
73
+ matches: [
74
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/caPools/[^/]+/?$}, false]
75
+ ],
76
+ body: nil
77
+ ),
78
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
79
+ uri_method: :get,
80
+ uri_template: "/v1/{resource}:getIamPolicy",
81
+ matches: [
82
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/certificateTemplates/[^/]+/?$}, false]
83
+ ],
84
+ body: nil
85
+ ),
86
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
87
+ uri_method: :get,
88
+ uri_template: "/v1/{resource}:getIamPolicy",
89
+ matches: [
90
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/caPools/[^/]+/certificateAuthorities/[^/]+/certificateRevocationLists/[^/]+/?$}, false]
91
+ ],
92
+ body: nil
93
+ )
94
+ ]
95
+ default_config.bindings_override["google.iam.v1.IAMPolicy.SetIamPolicy"] = [
96
+
97
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
98
+ uri_method: :post,
99
+ uri_template: "/v1/{resource}:setIamPolicy",
100
+ matches: [
101
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/caPools/[^/]+/?$}, false]
102
+ ],
103
+ body: "*"
104
+ ),
105
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
106
+ uri_method: :post,
107
+ uri_template: "/v1/{resource}:setIamPolicy",
108
+ matches: [
109
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/certificateTemplates/[^/]+/?$}, false]
110
+ ],
111
+ body: "*"
112
+ ),
113
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
114
+ uri_method: :post,
115
+ uri_template: "/v1/{resource}:setIamPolicy",
116
+ matches: [
117
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/caPools/[^/]+/certificateAuthorities/[^/]+/certificateRevocationLists/[^/]+/?$}, false]
118
+ ],
119
+ body: "*"
120
+ )
121
+ ]
122
+ default_config.bindings_override["google.iam.v1.IAMPolicy.TestIamPermissions"] = [
123
+
124
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
125
+ uri_method: :post,
126
+ uri_template: "/v1/{resource}:testIamPermissions",
127
+ matches: [
128
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/caPools/[^/]+/?$}, false]
129
+ ],
130
+ body: "*"
131
+ ),
132
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
133
+ uri_method: :post,
134
+ uri_template: "/v1/{resource}:testIamPermissions",
135
+ matches: [
136
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/certificateTemplates/[^/]+/?$}, false]
137
+ ],
138
+ body: "*"
139
+ ),
140
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
141
+ uri_method: :post,
142
+ uri_template: "/v1/{resource}:testIamPermissions",
143
+ matches: [
144
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/caPools/[^/]+/certificateAuthorities/[^/]+/certificateRevocationLists/[^/]+/?$}, false]
145
+ ],
146
+ body: "*"
147
+ )
148
+ ]
149
+ default_config
150
+ end
151
+ yield @configure if block_given?
152
+ @configure
153
+ end
154
+
155
+ ##
156
+ # @private
157
+ # Configuration class for the google.cloud.security.privateca.v1 package.
158
+ #
159
+ # This class contains common configuration for all services
160
+ # of the google.cloud.security.privateca.v1 package.
161
+ #
162
+ # This configuration is for internal use of the client library classes,
163
+ # and it is not intended that the end-users will read or change it.
164
+ #
165
+ class Configuration
166
+ extend ::Gapic::Config
167
+
168
+ # @private
169
+ # Overrides for http bindings for the RPC of the mixins for this package.
170
+ # Services in this package should use these when creating clients for the mixin services.
171
+ # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
172
+ config_attr :bindings_override, {}, ::Hash, nil
173
+
174
+ # @private
175
+ def initialize parent_config = nil
176
+ @parent_config = parent_config unless parent_config.nil?
177
+
178
+ yield self if block_given?
179
+ end
180
+ end
181
+ end
182
+ end
183
+ end
184
+ end
185
+ end