google-cloud-security-private_ca-v1 0.1.5 → 0.2.1

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: 616cd3347b910c3dcbcfeff5f57a88dc4d9036fe6a03d93eab2a4f166424ffbe
4
- data.tar.gz: 531cb999f2c36c594bb9e685573473a15c561216c64f11fc51c1102baf4da3b4
3
+ metadata.gz: b8274cce87bf65da452c3a2d0ffe238bacc6b54034b1a9a52364f53118e9603c
4
+ data.tar.gz: 884c76dd76690162e3f9bcf13781be5c83df460bd26c6e1bb56d4315fd32229e
5
5
  SHA512:
6
- metadata.gz: bba8c2db50f9944a05945dfd1fd77c1ec3a93f99c3626d23ea06dfb490da6d9a38ac7626048bc9bc896bd2f27ba6ad1257ab1895e0c378badc73f6a74189ddff
7
- data.tar.gz: 49f58218e00223aacaacb9b2c0330403a3484a026a798741723deb8086b635de3747fb893b2ca259148618e45caa9eb57fa52c753a071371aff475999d685907
6
+ metadata.gz: 82b9bbef244b1753993261d7c602484664a2ef5e020928f37a61a6ada09ed6efba5e70e3243fbd0956e63671e20cd5bc5d00d595f71e7cda7a08f4e3e593a860
7
+ data.tar.gz: f08dec355ae20ce5f151cd42e325c69c6500ad60f18349728717d6cd5ee859beba061a42130b5c314145a00034503386eb402f59c760d35cd9821cc915179057
data/README.md CHANGED
@@ -30,14 +30,14 @@ In order to use this library, you first need to go through the following steps:
30
30
  ## Quick Start
31
31
 
32
32
  ```ruby
33
- require "google/cloud/security/private_ca/v1"
33
+ require "google/cloud/location"
34
34
 
35
35
  client = ::Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Client.new
36
36
  request = ::Google::Cloud::Security::PrivateCA::V1::CreateCertificateRequest.new # (request fields as keyword arguments...)
37
37
  response = client.create_certificate request
38
38
  ```
39
39
 
40
- View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-security-private_ca-v1/latest)
40
+ View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest)
41
41
  for class and method documentation.
42
42
 
43
43
  See also the [Product Documentation](https://cloud.google.com/certificate-authority-service/)
@@ -142,6 +142,7 @@ module Google
142
142
 
143
143
  @operations_client = Operations.new do |config|
144
144
  config.credentials = credentials
145
+ config.quota_project = @quota_project_id
145
146
  config.endpoint = @config.endpoint
146
147
  end
147
148
 
@@ -198,11 +199,11 @@ module Google
198
199
  # already been completed. The server will guarantee that for at least 60
199
200
  # minutes since the first request.
200
201
  #
201
- # For example, consider a situation where you make an initial request and t
202
- # he request times out. If you make the request again with the same request
203
- # ID, the server can check if original operation with the same request ID
204
- # was received, and if so, will ignore the second request. This prevents
205
- # clients from accidentally creating duplicate commitments.
202
+ # For example, consider a situation where you make an initial request and the
203
+ # request times out. If you make the request again with the same request ID,
204
+ # the server can check if original operation with the same request ID was
205
+ # received, and if so, will ignore the second request. This prevents clients
206
+ # from accidentally creating duplicate commitments.
206
207
  #
207
208
  # The request ID must be a valid UUID with the exception that zero UUID is
208
209
  # not supported (00000000-0000-0000-0000-000000000000).
@@ -1545,7 +1546,7 @@ module Google
1545
1546
  # @param options [::Gapic::CallOptions, ::Hash]
1546
1547
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1547
1548
  #
1548
- # @overload delete_certificate_authority(name: nil, request_id: nil, ignore_active_certificates: nil)
1549
+ # @overload delete_certificate_authority(name: nil, request_id: nil, ignore_active_certificates: nil, skip_grace_period: nil)
1549
1550
  # Pass arguments to `delete_certificate_authority` via keyword arguments. Note that at
1550
1551
  # least one keyword argument is required. To specify no parameters, or to keep all
1551
1552
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -1570,6 +1571,10 @@ module Google
1570
1571
  # @param ignore_active_certificates [::Boolean]
1571
1572
  # Optional. This field allows the CA to be deleted even if the CA has
1572
1573
  # active certs. Active certs include both unrevoked and unexpired certs.
1574
+ # @param skip_grace_period [::Boolean]
1575
+ # Optional. If this flag is set, the Certificate Authority will be deleted as soon as
1576
+ # possible without a 30-day grace period where undeletion would have been
1577
+ # allowed. If you proceed, there will be no way to recover this CA.
1573
1578
  #
1574
1579
  # @yield [response, operation] Access the result along with the RPC operation
1575
1580
  # @yieldparam response [::Gapic::Operation]
@@ -22,7 +22,7 @@ module Google
22
22
  module Security
23
23
  module PrivateCA
24
24
  module V1
25
- VERSION = "0.1.5"
25
+ VERSION = "0.2.1"
26
26
  end
27
27
  end
28
28
  end
@@ -26,6 +26,8 @@ module Google
26
26
  ##
27
27
  # To load this package, including all its services, and instantiate a client:
28
28
  #
29
+ # @example
30
+ #
29
31
  # require "google/cloud/security/private_ca/v1"
30
32
  # client = ::Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Client.new
31
33
  #
@@ -6,7 +6,6 @@ require 'google/api/resource_pb'
6
6
  require 'google/protobuf/duration_pb'
7
7
  require 'google/protobuf/timestamp_pb'
8
8
  require 'google/type/expr_pb'
9
- require 'google/api/annotations_pb'
10
9
  require 'google/protobuf'
11
10
 
12
11
  Google::Protobuf::DescriptorPool.generated_pool.build do
@@ -7,7 +7,6 @@ require 'google/api/field_behavior_pb'
7
7
  require 'google/api/resource_pb'
8
8
  require 'google/cloud/security/privateca/v1/resources_pb'
9
9
  require 'google/longrunning/operations_pb'
10
- require 'google/protobuf/duration_pb'
11
10
  require 'google/protobuf/field_mask_pb'
12
11
  require 'google/protobuf/timestamp_pb'
13
12
  require 'google/protobuf'
@@ -96,6 +95,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
96
95
  optional :name, :string, 1
97
96
  optional :request_id, :string, 2
98
97
  optional :ignore_active_certificates, :bool, 4
98
+ optional :skip_grace_period, :bool, 5
99
99
  end
100
100
  add_message "google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest" do
101
101
  optional :certificate_authority, :message, 1, "google.cloud.security.privateca.v1.CertificateAuthority"
@@ -18,4 +18,6 @@
18
18
 
19
19
  # This gem does not autoload during Bundler.require. To load this gem,
20
20
  # issue explicit require statements for the packages desired, e.g.:
21
+ # require "google/cloud/location"
21
22
  # require "google/cloud/security/private_ca/v1"
23
+ # require "google/iam/v1"
@@ -33,11 +33,7 @@ module Google
33
33
  # // For Kubernetes resources, the format is {api group}/{kind}.
34
34
  # option (google.api.resource) = {
35
35
  # type: "pubsub.googleapis.com/Topic"
36
- # name_descriptor: {
37
- # pattern: "projects/{project}/topics/{topic}"
38
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
39
- # parent_name_extractor: "projects/{project}"
40
- # }
36
+ # pattern: "projects/{project}/topics/{topic}"
41
37
  # };
42
38
  # }
43
39
  #
@@ -45,10 +41,7 @@ module Google
45
41
  #
46
42
  # resources:
47
43
  # - type: "pubsub.googleapis.com/Topic"
48
- # name_descriptor:
49
- # - pattern: "projects/{project}/topics/{topic}"
50
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
51
- # parent_name_extractor: "projects/{project}"
44
+ # pattern: "projects/{project}/topics/{topic}"
52
45
  #
53
46
  # Sometimes, resources have multiple patterns, typically because they can
54
47
  # live under multiple parents.
@@ -58,26 +51,10 @@ module Google
58
51
  # message LogEntry {
59
52
  # option (google.api.resource) = {
60
53
  # type: "logging.googleapis.com/LogEntry"
61
- # name_descriptor: {
62
- # pattern: "projects/{project}/logs/{log}"
63
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
64
- # parent_name_extractor: "projects/{project}"
65
- # }
66
- # name_descriptor: {
67
- # pattern: "folders/{folder}/logs/{log}"
68
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
69
- # parent_name_extractor: "folders/{folder}"
70
- # }
71
- # name_descriptor: {
72
- # pattern: "organizations/{organization}/logs/{log}"
73
- # parent_type: "cloudresourcemanager.googleapis.com/Organization"
74
- # parent_name_extractor: "organizations/{organization}"
75
- # }
76
- # name_descriptor: {
77
- # pattern: "billingAccounts/{billing_account}/logs/{log}"
78
- # parent_type: "billing.googleapis.com/BillingAccount"
79
- # parent_name_extractor: "billingAccounts/{billing_account}"
80
- # }
54
+ # pattern: "projects/{project}/logs/{log}"
55
+ # pattern: "folders/{folder}/logs/{log}"
56
+ # pattern: "organizations/{organization}/logs/{log}"
57
+ # pattern: "billingAccounts/{billing_account}/logs/{log}"
81
58
  # };
82
59
  # }
83
60
  #
@@ -85,48 +62,10 @@ module Google
85
62
  #
86
63
  # resources:
87
64
  # - type: 'logging.googleapis.com/LogEntry'
88
- # name_descriptor:
89
- # - pattern: "projects/{project}/logs/{log}"
90
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
91
- # parent_name_extractor: "projects/{project}"
92
- # - pattern: "folders/{folder}/logs/{log}"
93
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
94
- # parent_name_extractor: "folders/{folder}"
95
- # - pattern: "organizations/{organization}/logs/{log}"
96
- # parent_type: "cloudresourcemanager.googleapis.com/Organization"
97
- # parent_name_extractor: "organizations/{organization}"
98
- # - pattern: "billingAccounts/{billing_account}/logs/{log}"
99
- # parent_type: "billing.googleapis.com/BillingAccount"
100
- # parent_name_extractor: "billingAccounts/{billing_account}"
101
- #
102
- # For flexible resources, the resource name doesn't contain parent names, but
103
- # the resource itself has parents for policy evaluation.
104
- #
105
- # Example:
106
- #
107
- # message Shelf {
108
- # option (google.api.resource) = {
109
- # type: "library.googleapis.com/Shelf"
110
- # name_descriptor: {
111
- # pattern: "shelves/{shelf}"
112
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
113
- # }
114
- # name_descriptor: {
115
- # pattern: "shelves/{shelf}"
116
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
117
- # }
118
- # };
119
- # }
120
- #
121
- # The ResourceDescriptor Yaml config will look like:
122
- #
123
- # resources:
124
- # - type: 'library.googleapis.com/Shelf'
125
- # name_descriptor:
126
- # - pattern: "shelves/{shelf}"
127
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
128
- # - pattern: "shelves/{shelf}"
129
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
65
+ # pattern: "projects/{project}/logs/{log}"
66
+ # pattern: "folders/{folder}/logs/{log}"
67
+ # pattern: "organizations/{organization}/logs/{log}"
68
+ # pattern: "billingAccounts/{billing_account}/logs/{log}"
130
69
  # @!attribute [rw] type
131
70
  # @return [::String]
132
71
  # The resource type. It must be in the format of
@@ -36,7 +36,7 @@ module Google
36
36
  # Required. Immutable. The config used to create a self-signed X.509 certificate or CSR.
37
37
  # @!attribute [rw] lifetime
38
38
  # @return [::Google::Protobuf::Duration]
39
- # Required. The desired lifetime of the CA certificate. Used to create the
39
+ # Required. Immutable. The desired lifetime of the CA certificate. Used to create the
40
40
  # "not_before_time" and "not_after_time" fields inside an X.509
41
41
  # certificate.
42
42
  # @!attribute [rw] key_spec
@@ -195,7 +195,7 @@ module Google
195
195
  # [CryptoKeyVersionAlgorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm]
196
196
  # values. For RSA signing algorithms, the PSS algorithms should be preferred,
197
197
  # use PKCS1 algorithms if required for compatibility. For further
198
- # recommandations, see
198
+ # recommendations, see
199
199
  # https://cloud.google.com/kms/docs/algorithms#algorithm_recommendations.
200
200
  module SignHashAlgorithm
201
201
  # Not specified.
@@ -346,14 +346,14 @@ module Google
346
346
  # a {::Google::Cloud::Security::PrivateCA::V1::CaPool CaPool}.
347
347
  # @!attribute [rw] min_modulus_size
348
348
  # @return [::Integer]
349
- # Optional. The minimum allowed RSA modulus size, in bits. If this is not set,
350
- # or if set to zero, the service-level min RSA modulus size will
351
- # continue to apply.
349
+ # Optional. The minimum allowed RSA modulus size (inclusive), in bits. If this is
350
+ # not set, or if set to zero, the service-level min RSA modulus size
351
+ # will continue to apply.
352
352
  # @!attribute [rw] max_modulus_size
353
353
  # @return [::Integer]
354
- # Optional. The maximum allowed RSA modulus size, in bits. If this is not set,
355
- # or if set to zero, the service will not enforce an explicit upper
356
- # bound on RSA modulus sizes.
354
+ # Optional. The maximum allowed RSA modulus size (inclusive), in bits. If this is
355
+ # not set, or if set to zero, the service will not enforce an explicit
356
+ # upper bound on RSA modulus sizes.
357
357
  class RsaKeyType
358
358
  include ::Google::Protobuf::MessageExts
359
359
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -701,10 +701,9 @@ module Google
701
701
  # known issuing {::Google::Cloud::Security::PrivateCA::V1::CertificateAuthority CertificateAuthority}, or a PEM issuer certificate chain.
702
702
  # @!attribute [rw] certificate_authority
703
703
  # @return [::String]
704
- # Required. This can refer to a {::Google::Cloud::Security::PrivateCA::V1::CertificateAuthority CertificateAuthority} in the same project that
705
- # was used to create a subordinate {::Google::Cloud::Security::PrivateCA::V1::CertificateAuthority CertificateAuthority}. This field
706
- # is used for information and usability purposes only. The resource name
707
- # is in the format
704
+ # Required. This can refer to a {::Google::Cloud::Security::PrivateCA::V1::CertificateAuthority CertificateAuthority} that was used to create a
705
+ # subordinate {::Google::Cloud::Security::PrivateCA::V1::CertificateAuthority CertificateAuthority}. This field is used for information
706
+ # and usability purposes only. The resource name is in the format
708
707
  # `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
709
708
  # @!attribute [rw] pem_issuer_chain
710
709
  # @return [::Google::Cloud::Security::PrivateCA::V1::SubordinateConfig::SubordinateConfigChain]
@@ -1041,6 +1040,8 @@ module Google
1041
1040
  # @!attribute [rw] custom_sans
1042
1041
  # @return [::Array<::Google::Cloud::Security::PrivateCA::V1::X509Extension>]
1043
1042
  # Contains additional subject alternative name values.
1043
+ # For each custom_san, the `value` field must contain an ASN.1 encoded
1044
+ # UTF8String.
1044
1045
  class SubjectAltNames
1045
1046
  include ::Google::Protobuf::MessageExts
1046
1047
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -43,11 +43,11 @@ module Google
43
43
  # already been completed. The server will guarantee that for at least 60
44
44
  # minutes since the first request.
45
45
  #
46
- # For example, consider a situation where you make an initial request and t
47
- # he request times out. If you make the request again with the same request
48
- # ID, the server can check if original operation with the same request ID
49
- # was received, and if so, will ignore the second request. This prevents
50
- # clients from accidentally creating duplicate commitments.
46
+ # For example, consider a situation where you make an initial request and the
47
+ # request times out. If you make the request again with the same request ID,
48
+ # the server can check if original operation with the same request ID was
49
+ # received, and if so, will ignore the second request. This prevents clients
50
+ # from accidentally creating duplicate commitments.
51
51
  #
52
52
  # The request ID must be a valid UUID with the exception that zero UUID is
53
53
  # not supported (00000000-0000-0000-0000-000000000000).
@@ -441,6 +441,11 @@ module Google
441
441
  # @return [::Boolean]
442
442
  # Optional. This field allows the CA to be deleted even if the CA has
443
443
  # active certs. Active certs include both unrevoked and unexpired certs.
444
+ # @!attribute [rw] skip_grace_period
445
+ # @return [::Boolean]
446
+ # Optional. If this flag is set, the Certificate Authority will be deleted as soon as
447
+ # possible without a 30-day grace period where undeletion would have been
448
+ # allowed. If you proceed, there will be no way to recover this CA.
444
449
  class DeleteCertificateAuthorityRequest
445
450
  include ::Google::Protobuf::MessageExts
446
451
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-security-private_ca-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-11 00:00:00.000000000 Z
11
+ date: 2022-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -44,6 +44,40 @@ dependencies:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
46
  version: '1.0'
47
+ - !ruby/object:Gem::Dependency
48
+ name: google-cloud-location
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">"
52
+ - !ruby/object:Gem::Version
53
+ version: '0.0'
54
+ - - "<"
55
+ - !ruby/object:Gem::Version
56
+ version: 2.a
57
+ type: :runtime
58
+ prerelease: false
59
+ version_requirements: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ">"
62
+ - !ruby/object:Gem::Version
63
+ version: '0.0'
64
+ - - "<"
65
+ - !ruby/object:Gem::Version
66
+ version: 2.a
67
+ - !ruby/object:Gem::Dependency
68
+ name: grpc-google-iam-v1
69
+ requirement: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - "~>"
72
+ - !ruby/object:Gem::Version
73
+ version: '1.1'
74
+ type: :runtime
75
+ prerelease: false
76
+ version_requirements: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - "~>"
79
+ - !ruby/object:Gem::Version
80
+ version: '1.1'
47
81
  - !ruby/object:Gem::Dependency
48
82
  name: google-style
49
83
  requirement: !ruby/object:Gem::Requirement
@@ -214,7 +248,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
214
248
  - !ruby/object:Gem::Version
215
249
  version: '0'
216
250
  requirements: []
217
- rubygems_version: 3.3.4
251
+ rubygems_version: 3.3.5
218
252
  signing_key:
219
253
  specification_version: 4
220
254
  summary: API Client library for the Ceritificate Authority Service V1 API