google-cloud-security-private_ca-v1 0.4.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.
Files changed (23) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +1 -1
  3. data/README.md +2 -2
  4. data/lib/google/cloud/security/private_ca/v1/bindings_override.rb +185 -0
  5. data/lib/google/cloud/security/private_ca/v1/certificate_authority_service/client.rb +415 -330
  6. data/lib/google/cloud/security/private_ca/v1/certificate_authority_service/operations.rb +12 -14
  7. data/lib/google/cloud/security/private_ca/v1/certificate_authority_service/rest/client.rb +2877 -0
  8. data/lib/google/cloud/security/private_ca/v1/certificate_authority_service/rest/operations.rb +795 -0
  9. data/lib/google/cloud/security/private_ca/v1/certificate_authority_service/rest/service_stub.rb +1776 -0
  10. data/lib/google/cloud/security/private_ca/v1/certificate_authority_service/rest.rb +58 -0
  11. data/lib/google/cloud/security/private_ca/v1/certificate_authority_service.rb +10 -3
  12. data/lib/google/cloud/security/private_ca/v1/rest.rb +40 -0
  13. data/lib/google/cloud/security/private_ca/v1/version.rb +1 -1
  14. data/lib/google/cloud/security/private_ca/v1.rb +7 -2
  15. data/lib/google/cloud/security/privateca/v1/resources_pb.rb +14 -0
  16. data/lib/google/cloud/security/privateca/v1/service_services_pb.rb +64 -32
  17. data/proto_docs/google/api/client.rb +318 -0
  18. data/proto_docs/google/api/launch_stage.rb +71 -0
  19. data/proto_docs/google/cloud/security/privateca/v1/resources.rb +588 -302
  20. data/proto_docs/google/cloud/security/privateca/v1/service.rb +297 -223
  21. data/proto_docs/google/protobuf/empty.rb +0 -2
  22. data/proto_docs/google/rpc/status.rb +4 -2
  23. metadata +22 -12
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c0d2fa1c58177d32ba29744ff241652464d3b88d689c00db9add329a7c8845c4
4
- data.tar.gz: dd5dc68264cb32370cc36cd3ca2d6266e5371d151250a108ce297dbf4d716644
3
+ metadata.gz: 58084b2bd3dbcab64029ee0b38ceaaafc2af9df59e748bdb0953145607691c65
4
+ data.tar.gz: 555e1f7567b1e89e24d9ff5337e4a1600ce5e7597c967e9d967c86de5e0bff1b
5
5
  SHA512:
6
- metadata.gz: 5d398c2823a265cc02db64655d16c08082a1cbac1d4f7e9ab46eac4eb3363e544a72d912a67e087ca3bfffec59da3b8073af3c17979235f7de02dd201b43127b
7
- data.tar.gz: ca0b5d7da06b051e2599bbb07f38df8433ad71a48f9ef9b2d87b9adce5a249d947f695ffd6127b2f25522ce4fe0bb7b91d1fd430009321524724e0f1732157ea
6
+ metadata.gz: 762a68d3616ab499b87b8195a2e49b605a96bd8a433bf1493b315a87722c718017d8dfa9c5e92229547d3a44fefaa26bb7bb2ed2ebf7d1ba87bad90080cafc5c
7
+ data.tar.gz: 9cc9a52be3d6acad60466fc5005a8dfd68321c8b57408cf609572151df7d4fc785f7bf98d226d5df963908d7de0ed374bda28b3450caa259034342b7e1c18245
data/AUTHENTICATION.md CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
114
114
  To configure your system for this, simply:
115
115
 
116
116
  1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
117
- 2. Authenticate using OAuth 2.0 `$ gcloud auth login`
117
+ 2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
118
118
  3. Write code as if already authenticated.
119
119
 
120
120
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
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
 
@@ -46,7 +46,7 @@ for general usage information.
46
46
  ## Enabling Logging
47
47
 
48
48
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
49
- The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
49
+ The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
50
50
  or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
51
51
  that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
52
52
  and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
@@ -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