google-cloud-security-private_ca-v1beta1 0.10.0 → 0.12.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: 377edbc266fb1350f35b5877d9ac4766850b0204f912b1fb65d9b4d199424e01
4
- data.tar.gz: 6507d61841ee8893ec9ffb38988ad12e6bd93322ac23b1538bcbdc3d9aca7061
3
+ metadata.gz: a4ad06ca2872e58ba269b31569046b1ebb6a6694edba59333b69ee3efb0e7abf
4
+ data.tar.gz: 874fa831d5d88e501199453c63b8411daffd75a26c12a64b1de58493ff304863
5
5
  SHA512:
6
- metadata.gz: 86f385d2653fd963e777f0538c4aae6c85ba7687c7b79b2d31ffc06e48385566d1e36a6fab9ebe387a51401d1a88ac800642dff62e430c915e9a680055c02dd4
7
- data.tar.gz: 0b09294c938b8a75c98d546009fd4e952f3346851a22785033e775f4b8625a39b50b22b8b8643df7c404b95d87981b9ae904384a0bc3cd0a76cc1f8ce6ec4061
6
+ metadata.gz: a371210c48e6fba13d7c732cb59896a79f8f381b2a19f9a54cdebcc4956292a85e919fe5382a8f461906ad52259f15cf7bd9ba0410e0d18a3697fd7b3865a444
7
+ data.tar.gz: d833132c1eb0c86b662900feea209f004a3b309ca0839e32c77fbc8af16669408dfd40f896710523932c4b946a3005df147d89d794b9986a5db8bdbb076b2990
data/README.md CHANGED
@@ -86,7 +86,7 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
86
86
 
87
87
  ## Supported Ruby Versions
88
88
 
89
- This library is supported on Ruby 2.7+.
89
+ This library is supported on Ruby 3.0+.
90
90
 
91
91
  Google provides official support for Ruby versions that are actively supported
92
92
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
@@ -2318,6 +2318,13 @@ module Google
2318
2318
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
2319
2319
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
2320
2320
  # * (`nil`) indicating no credentials
2321
+ #
2322
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
2323
+ # external source for authentication to Google Cloud, you must validate it before
2324
+ # providing it to a Google API client library. Providing an unvalidated credential
2325
+ # configuration to Google APIs can compromise the security of your systems and data.
2326
+ # For more information, refer to [Validate credential configurations from external
2327
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
2321
2328
  # @return [::Object]
2322
2329
  # @!attribute [rw] scope
2323
2330
  # The OAuth scopes
@@ -641,6 +641,13 @@ module Google
641
641
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
642
642
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
643
643
  # * (`nil`) indicating no credentials
644
+ #
645
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
646
+ # external source for authentication to Google Cloud, you must validate it before
647
+ # providing it to a Google API client library. Providing an unvalidated credential
648
+ # configuration to Google APIs can compromise the security of your systems and data.
649
+ # For more information, refer to [Validate credential configurations from external
650
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
644
651
  # @return [::Object]
645
652
  # @!attribute [rw] scope
646
653
  # The OAuth scopes
@@ -418,10 +418,10 @@ module Google
418
418
  # and syntax, see [Certificates Sorting
419
419
  # documentation](https://cloud.google.com/certificate-authority-service/docs/sorting-filtering-certificates#sorting_support).
420
420
  # @yield [result, operation] Access the result along with the TransportOperation object
421
- # @yieldparam result [::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificatesResponse]
421
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Security::PrivateCA::V1beta1::Certificate>]
422
422
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
423
423
  #
424
- # @return [::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificatesResponse]
424
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Security::PrivateCA::V1beta1::Certificate>]
425
425
  #
426
426
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
427
427
  #
@@ -473,7 +473,9 @@ module Google
473
473
  retry_policy: @config.retry_policy
474
474
 
475
475
  @certificate_authority_service_stub.list_certificates request, options do |result, operation|
476
+ result = ::Gapic::Rest::PagedEnumerable.new @certificate_authority_service_stub, :list_certificates, "certificates", request, result, options
476
477
  yield result, operation if block_given?
478
+ throw :response, result
477
479
  end
478
480
  rescue ::Gapic::Rest::Error => e
479
481
  raise ::Google::Cloud::Error.from_error(e)
@@ -1295,10 +1297,10 @@ module Google
1295
1297
  # @param order_by [::String]
1296
1298
  # Optional. Specify how the results should be sorted.
1297
1299
  # @yield [result, operation] Access the result along with the TransportOperation object
1298
- # @yieldparam result [::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificateAuthoritiesResponse]
1300
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority>]
1299
1301
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1300
1302
  #
1301
- # @return [::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificateAuthoritiesResponse]
1303
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority>]
1302
1304
  #
1303
1305
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1304
1306
  #
@@ -1350,7 +1352,9 @@ module Google
1350
1352
  retry_policy: @config.retry_policy
1351
1353
 
1352
1354
  @certificate_authority_service_stub.list_certificate_authorities request, options do |result, operation|
1355
+ result = ::Gapic::Rest::PagedEnumerable.new @certificate_authority_service_stub, :list_certificate_authorities, "certificate_authorities", request, result, options
1353
1356
  yield result, operation if block_given?
1357
+ throw :response, result
1354
1358
  end
1355
1359
  rescue ::Gapic::Rest::Error => e
1356
1360
  raise ::Google::Cloud::Error.from_error(e)
@@ -1779,10 +1783,10 @@ module Google
1779
1783
  # @param order_by [::String]
1780
1784
  # Optional. Specify how the results should be sorted.
1781
1785
  # @yield [result, operation] Access the result along with the TransportOperation object
1782
- # @yieldparam result [::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificateRevocationListsResponse]
1786
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Security::PrivateCA::V1beta1::CertificateRevocationList>]
1783
1787
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1784
1788
  #
1785
- # @return [::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificateRevocationListsResponse]
1789
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Security::PrivateCA::V1beta1::CertificateRevocationList>]
1786
1790
  #
1787
1791
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1788
1792
  #
@@ -1834,7 +1838,9 @@ module Google
1834
1838
  retry_policy: @config.retry_policy
1835
1839
 
1836
1840
  @certificate_authority_service_stub.list_certificate_revocation_lists request, options do |result, operation|
1841
+ result = ::Gapic::Rest::PagedEnumerable.new @certificate_authority_service_stub, :list_certificate_revocation_lists, "certificate_revocation_lists", request, result, options
1837
1842
  yield result, operation if block_given?
1843
+ throw :response, result
1838
1844
  end
1839
1845
  rescue ::Gapic::Rest::Error => e
1840
1846
  raise ::Google::Cloud::Error.from_error(e)
@@ -2058,10 +2064,10 @@ module Google
2058
2064
  # @param order_by [::String]
2059
2065
  # Optional. Specify how the results should be sorted.
2060
2066
  # @yield [result, operation] Access the result along with the TransportOperation object
2061
- # @yieldparam result [::Google::Cloud::Security::PrivateCA::V1beta1::ListReusableConfigsResponse]
2067
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Security::PrivateCA::V1beta1::ReusableConfig>]
2062
2068
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
2063
2069
  #
2064
- # @return [::Google::Cloud::Security::PrivateCA::V1beta1::ListReusableConfigsResponse]
2070
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Security::PrivateCA::V1beta1::ReusableConfig>]
2065
2071
  #
2066
2072
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2067
2073
  #
@@ -2113,7 +2119,9 @@ module Google
2113
2119
  retry_policy: @config.retry_policy
2114
2120
 
2115
2121
  @certificate_authority_service_stub.list_reusable_configs request, options do |result, operation|
2122
+ result = ::Gapic::Rest::PagedEnumerable.new @certificate_authority_service_stub, :list_reusable_configs, "reusable_configs", request, result, options
2116
2123
  yield result, operation if block_given?
2124
+ throw :response, result
2117
2125
  end
2118
2126
  rescue ::Gapic::Rest::Error => e
2119
2127
  raise ::Google::Cloud::Error.from_error(e)
@@ -2161,6 +2169,13 @@ module Google
2161
2169
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
2162
2170
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
2163
2171
  # * (`nil`) indicating no credentials
2172
+ #
2173
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
2174
+ # external source for authentication to Google Cloud, you must validate it before
2175
+ # providing it to a Google API client library. Providing an unvalidated credential
2176
+ # configuration to Google APIs can compromise the security of your systems and data.
2177
+ # For more information, refer to [Validate credential configurations from external
2178
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
2164
2179
  # @return [::Object]
2165
2180
  # @!attribute [rw] scope
2166
2181
  # The OAuth scopes
@@ -503,6 +503,13 @@ module Google
503
503
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
504
504
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
505
505
  # * (`nil`) indicating no credentials
506
+ #
507
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
508
+ # external source for authentication to Google Cloud, you must validate it before
509
+ # providing it to a Google API client library. Providing an unvalidated credential
510
+ # configuration to Google APIs can compromise the security of your systems and data.
511
+ # For more information, refer to [Validate credential configurations from external
512
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
506
513
  # @return [::Object]
507
514
  # @!attribute [rw] scope
508
515
  # The OAuth scopes
@@ -22,7 +22,7 @@ module Google
22
22
  module Security
23
23
  module PrivateCA
24
24
  module V1beta1
25
- VERSION = "0.10.0"
25
+ VERSION = "0.12.0"
26
26
  end
27
27
  end
28
28
  end
@@ -409,6 +409,14 @@ module Google
409
409
  # @return [::Array<::String>]
410
410
  # An allowlist of the fully qualified names of RPCs that should be included
411
411
  # on public client surfaces.
412
+ # @!attribute [rw] generate_omitted_as_internal
413
+ # @return [::Boolean]
414
+ # Setting this to true indicates to the client generators that methods
415
+ # that would be excluded from the generation should instead be generated
416
+ # in a way that indicates these methods should not be consumed by
417
+ # end users. How this is expressed is up to individual language
418
+ # implementations to decide. Some examples may be: added annotations,
419
+ # obfuscated identifiers, or other language idiomatic patterns.
412
420
  class SelectiveGapicGeneration
413
421
  include ::Google::Protobuf::MessageExts
414
422
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -126,11 +126,15 @@ module Google
126
126
  # @return [::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority::CertificateAuthorityPolicy::AllowedConfigList]
127
127
  # Optional. All {::Google::Cloud::Security::PrivateCA::V1beta1::Certificate Certificates} issued by the {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority CertificateAuthority}
128
128
  # must match at least one listed {::Google::Cloud::Security::PrivateCA::V1beta1::ReusableConfigWrapper ReusableConfigWrapper} in the list.
129
+ #
130
+ # Note: The following fields are mutually exclusive: `allowed_config_list`, `overwrite_config_values`. If a field in that set is populated, all other fields in the set will automatically be cleared.
129
131
  # @!attribute [rw] overwrite_config_values
130
132
  # @return [::Google::Cloud::Security::PrivateCA::V1beta1::ReusableConfigWrapper]
131
133
  # Optional. All {::Google::Cloud::Security::PrivateCA::V1beta1::Certificate Certificates} issued by the {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority CertificateAuthority}
132
134
  # will use the provided configuration values, overwriting any requested
133
135
  # configuration values.
136
+ #
137
+ # Note: The following fields are mutually exclusive: `overwrite_config_values`, `allowed_config_list`. If a field in that set is populated, all other fields in the set will automatically be cleared.
134
138
  # @!attribute [rw] allowed_locations_and_organizations
135
139
  # @return [::Array<::Google::Cloud::Security::PrivateCA::V1beta1::Subject>]
136
140
  # Optional. If any {::Google::Cloud::Security::PrivateCA::V1beta1::Subject Subject} is specified here, then all
@@ -253,11 +257,15 @@ module Google
253
257
  # `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`.
254
258
  # This option enables full flexibility in the key's capabilities and
255
259
  # properties.
260
+ #
261
+ # Note: The following fields are mutually exclusive: `cloud_kms_key_version`, `algorithm`. If a field in that set is populated, all other fields in the set will automatically be cleared.
256
262
  # @!attribute [rw] algorithm
257
263
  # @return [::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority::SignHashAlgorithm]
258
264
  # Required. The algorithm to use for creating a managed Cloud KMS key for a for a
259
265
  # simplified experience. All managed keys will be have their
260
266
  # [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`.
267
+ #
268
+ # Note: The following fields are mutually exclusive: `algorithm`, `cloud_kms_key_version`. If a field in that set is populated, all other fields in the set will automatically be cleared.
261
269
  class KeyVersionSpec
262
270
  include ::Google::Protobuf::MessageExts
263
271
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -440,10 +448,14 @@ module Google
440
448
  # @!attribute [rw] pem_csr
441
449
  # @return [::String]
442
450
  # Immutable. A pem-encoded X.509 certificate signing request (CSR).
451
+ #
452
+ # Note: The following fields are mutually exclusive: `pem_csr`, `config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
443
453
  # @!attribute [rw] config
444
454
  # @return [::Google::Cloud::Security::PrivateCA::V1beta1::CertificateConfig]
445
455
  # Immutable. A description of the certificate and key that does not require X.509 or
446
456
  # ASN.1.
457
+ #
458
+ # Note: The following fields are mutually exclusive: `config`, `pem_csr`. If a field in that set is populated, all other fields in the set will automatically be cleared.
447
459
  # @!attribute [rw] lifetime
448
460
  # @return [::Google::Protobuf::Duration]
449
461
  # Required. Immutable. The desired lifetime of a certificate. Used to create the
@@ -588,9 +600,13 @@ module Google
588
600
  # @return [::String]
589
601
  # Required. A resource path to a {::Google::Cloud::Security::PrivateCA::V1beta1::ReusableConfig ReusableConfig} in the format
590
602
  # `projects/*/locations/*/reusableConfigs/*`.
603
+ #
604
+ # Note: The following fields are mutually exclusive: `reusable_config`, `reusable_config_values`. If a field in that set is populated, all other fields in the set will automatically be cleared.
591
605
  # @!attribute [rw] reusable_config_values
592
606
  # @return [::Google::Cloud::Security::PrivateCA::V1beta1::ReusableConfigValues]
593
607
  # Required. A user-specified inline {::Google::Cloud::Security::PrivateCA::V1beta1::ReusableConfigValues ReusableConfigValues}.
608
+ #
609
+ # Note: The following fields are mutually exclusive: `reusable_config_values`, `reusable_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
594
610
  class ReusableConfigWrapper
595
611
  include ::Google::Protobuf::MessageExts
596
612
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -604,10 +620,14 @@ module Google
604
620
  # was used to create a subordinate {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority CertificateAuthority}. This field
605
621
  # is used for information and usability purposes only. The resource name
606
622
  # is in the format `projects/*/locations/*/certificateAuthorities/*`.
623
+ #
624
+ # Note: The following fields are mutually exclusive: `certificate_authority`, `pem_issuer_chain`. If a field in that set is populated, all other fields in the set will automatically be cleared.
607
625
  # @!attribute [rw] pem_issuer_chain
608
626
  # @return [::Google::Cloud::Security::PrivateCA::V1beta1::SubordinateConfig::SubordinateConfigChain]
609
627
  # Required. Contains the PEM certificate chain for the issuers of this
610
628
  # {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority CertificateAuthority}, but not pem certificate for this CA itself.
629
+ #
630
+ # Note: The following fields are mutually exclusive: `pem_issuer_chain`, `certificate_authority`. If a field in that set is populated, all other fields in the set will automatically be cleared.
611
631
  class SubordinateConfig
612
632
  include ::Google::Protobuf::MessageExts
613
633
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -40,6 +40,8 @@ module Google
40
40
  # @!attribute [rw] error
41
41
  # @return [::Google::Rpc::Status]
42
42
  # The error result of the operation in case of failure or cancellation.
43
+ #
44
+ # Note: The following fields are mutually exclusive: `error`, `response`. If a field in that set is populated, all other fields in the set will automatically be cleared.
43
45
  # @!attribute [rw] response
44
46
  # @return [::Google::Protobuf::Any]
45
47
  # The normal, successful response of the operation. If the original
@@ -50,6 +52,8 @@ module Google
50
52
  # is the original method name. For example, if the original method name
51
53
  # is `TakeSnapshot()`, the inferred response type is
52
54
  # `TakeSnapshotResponse`.
55
+ #
56
+ # Note: The following fields are mutually exclusive: `response`, `error`. If a field in that set is populated, all other fields in the set will automatically be cleared.
53
57
  class Operation
54
58
  include ::Google::Protobuf::MessageExts
55
59
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-security-private_ca-v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-12-10 00:00:00.000000000 Z
10
+ date: 2025-02-07 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: gapic-common
@@ -16,7 +15,7 @@ dependencies:
16
15
  requirements:
17
16
  - - ">="
18
17
  - !ruby/object:Gem::Version
19
- version: 0.24.0
18
+ version: 0.25.0
20
19
  - - "<"
21
20
  - !ruby/object:Gem::Version
22
21
  version: 2.a
@@ -26,7 +25,7 @@ dependencies:
26
25
  requirements:
27
26
  - - ">="
28
27
  - !ruby/object:Gem::Version
29
- version: 0.24.0
28
+ version: 0.25.0
30
29
  - - "<"
31
30
  - !ruby/object:Gem::Version
32
31
  version: 2.a
@@ -94,7 +93,6 @@ homepage: https://github.com/googleapis/google-cloud-ruby
94
93
  licenses:
95
94
  - Apache-2.0
96
95
  metadata: {}
97
- post_install_message:
98
96
  rdoc_options: []
99
97
  require_paths:
100
98
  - lib
@@ -102,15 +100,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
102
100
  requirements:
103
101
  - - ">="
104
102
  - !ruby/object:Gem::Version
105
- version: '2.7'
103
+ version: '3.0'
106
104
  required_rubygems_version: !ruby/object:Gem::Requirement
107
105
  requirements:
108
106
  - - ">="
109
107
  - !ruby/object:Gem::Version
110
108
  version: '0'
111
109
  requirements: []
112
- rubygems_version: 3.5.23
113
- signing_key:
110
+ rubygems_version: 3.6.3
114
111
  specification_version: 4
115
112
  summary: API Client library for the Certificate Authority Service V1beta1 API
116
113
  test_files: []