google-cloud-security-private_ca-v1 1.1.0 → 2.0.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: 3be935887978acdcd37f8bed808890428445c3d400071b0a2e025f9d4edb9de1
4
- data.tar.gz: 89bbcf3a743b97264eebcb6488fb15ea00b58f9924b3a594166481f766120d9f
3
+ metadata.gz: 93dae9f053eeeaab933da33dd97cf73dc96d4d21be43f9ac11de438b53361e22
4
+ data.tar.gz: 1cdea993568d35afcf3908eae2e11d20ed508869972504d049dd22b8bff098ea
5
5
  SHA512:
6
- metadata.gz: f5fb65d2882d7f43ffd4d0caadbd80ec185142397041beda2caf9847ffdaad5fe7165ce7f569794960bdc38851a689682bc795b14ef485f79a6ea5584e810370
7
- data.tar.gz: 6c8383a1f83b6638aad28facccb5691ea14c1ff2144480137bccaa78739bade6a0f6a697696cd1f7f243ff81fdd2aa8835e339693275b7d3bff94292b2d70858
6
+ metadata.gz: bb487debb2dcd2f30822d509a29d79435e065542e8d00d701615560c7926bbd70216106d87df234fffb0569266815b1c19424902c91e7697a1d2cbd642f81866
7
+ data.tar.gz: 679b2456d38cd53c8a0c7b41f4fbfbabff35fc98f7c42d47c1fb683a30745768c1cb7176cf94552e4f933a32e9857c8c8eee1a64a8aa2879f5501f4810d35697
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
@@ -3444,6 +3444,13 @@ module Google
3444
3444
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
3445
3445
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
3446
3446
  # * (`nil`) indicating no credentials
3447
+ #
3448
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
3449
+ # external source for authentication to Google Cloud, you must validate it before
3450
+ # providing it to a Google API client library. Providing an unvalidated credential
3451
+ # configuration to Google APIs can compromise the security of your systems and data.
3452
+ # For more information, refer to [Validate credential configurations from external
3453
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
3447
3454
  # @return [::Object]
3448
3455
  # @!attribute [rw] scope
3449
3456
  # 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
@@ -490,10 +490,10 @@ module Google
490
490
  # supported fields and syntax, see [Certificates Sorting
491
491
  # documentation](https://cloud.google.com/certificate-authority-service/docs/sorting-filtering-certificates#sorting_support).
492
492
  # @yield [result, operation] Access the result along with the TransportOperation object
493
- # @yieldparam result [::Google::Cloud::Security::PrivateCA::V1::ListCertificatesResponse]
493
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Security::PrivateCA::V1::Certificate>]
494
494
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
495
495
  #
496
- # @return [::Google::Cloud::Security::PrivateCA::V1::ListCertificatesResponse]
496
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Security::PrivateCA::V1::Certificate>]
497
497
  #
498
498
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
499
499
  #
@@ -545,7 +545,9 @@ module Google
545
545
  retry_policy: @config.retry_policy
546
546
 
547
547
  @certificate_authority_service_stub.list_certificates request, options do |result, operation|
548
+ result = ::Gapic::Rest::PagedEnumerable.new @certificate_authority_service_stub, :list_certificates, "certificates", request, result, options
548
549
  yield result, operation if block_given?
550
+ throw :response, result
549
551
  end
550
552
  rescue ::Gapic::Rest::Error => e
551
553
  raise ::Google::Cloud::Error.from_error(e)
@@ -1403,10 +1405,10 @@ module Google
1403
1405
  # @param order_by [::String]
1404
1406
  # Optional. Specify how the results should be sorted.
1405
1407
  # @yield [result, operation] Access the result along with the TransportOperation object
1406
- # @yieldparam result [::Google::Cloud::Security::PrivateCA::V1::ListCertificateAuthoritiesResponse]
1408
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Security::PrivateCA::V1::CertificateAuthority>]
1407
1409
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1408
1410
  #
1409
- # @return [::Google::Cloud::Security::PrivateCA::V1::ListCertificateAuthoritiesResponse]
1411
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Security::PrivateCA::V1::CertificateAuthority>]
1410
1412
  #
1411
1413
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1412
1414
  #
@@ -1458,7 +1460,9 @@ module Google
1458
1460
  retry_policy: @config.retry_policy
1459
1461
 
1460
1462
  @certificate_authority_service_stub.list_certificate_authorities request, options do |result, operation|
1463
+ result = ::Gapic::Rest::PagedEnumerable.new @certificate_authority_service_stub, :list_certificate_authorities, "certificate_authorities", request, result, options
1461
1464
  yield result, operation if block_given?
1465
+ throw :response, result
1462
1466
  end
1463
1467
  rescue ::Gapic::Rest::Error => e
1464
1468
  raise ::Google::Cloud::Error.from_error(e)
@@ -2121,10 +2125,10 @@ module Google
2121
2125
  # @param order_by [::String]
2122
2126
  # Optional. Specify how the results should be sorted.
2123
2127
  # @yield [result, operation] Access the result along with the TransportOperation object
2124
- # @yieldparam result [::Google::Cloud::Security::PrivateCA::V1::ListCaPoolsResponse]
2128
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Security::PrivateCA::V1::CaPool>]
2125
2129
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
2126
2130
  #
2127
- # @return [::Google::Cloud::Security::PrivateCA::V1::ListCaPoolsResponse]
2131
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Security::PrivateCA::V1::CaPool>]
2128
2132
  #
2129
2133
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2130
2134
  #
@@ -2176,7 +2180,9 @@ module Google
2176
2180
  retry_policy: @config.retry_policy
2177
2181
 
2178
2182
  @certificate_authority_service_stub.list_ca_pools request, options do |result, operation|
2183
+ result = ::Gapic::Rest::PagedEnumerable.new @certificate_authority_service_stub, :list_ca_pools, "ca_pools", request, result, options
2179
2184
  yield result, operation if block_given?
2185
+ throw :response, result
2180
2186
  end
2181
2187
  rescue ::Gapic::Rest::Error => e
2182
2188
  raise ::Google::Cloud::Error.from_error(e)
@@ -2510,10 +2516,10 @@ module Google
2510
2516
  # @param order_by [::String]
2511
2517
  # Optional. Specify how the results should be sorted.
2512
2518
  # @yield [result, operation] Access the result along with the TransportOperation object
2513
- # @yieldparam result [::Google::Cloud::Security::PrivateCA::V1::ListCertificateRevocationListsResponse]
2519
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Security::PrivateCA::V1::CertificateRevocationList>]
2514
2520
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
2515
2521
  #
2516
- # @return [::Google::Cloud::Security::PrivateCA::V1::ListCertificateRevocationListsResponse]
2522
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Security::PrivateCA::V1::CertificateRevocationList>]
2517
2523
  #
2518
2524
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2519
2525
  #
@@ -2565,7 +2571,9 @@ module Google
2565
2571
  retry_policy: @config.retry_policy
2566
2572
 
2567
2573
  @certificate_authority_service_stub.list_certificate_revocation_lists request, options do |result, operation|
2574
+ result = ::Gapic::Rest::PagedEnumerable.new @certificate_authority_service_stub, :list_certificate_revocation_lists, "certificate_revocation_lists", request, result, options
2568
2575
  yield result, operation if block_given?
2576
+ throw :response, result
2569
2577
  end
2570
2578
  rescue ::Gapic::Rest::Error => e
2571
2579
  raise ::Google::Cloud::Error.from_error(e)
@@ -3015,10 +3023,10 @@ module Google
3015
3023
  # @param order_by [::String]
3016
3024
  # Optional. Specify how the results should be sorted.
3017
3025
  # @yield [result, operation] Access the result along with the TransportOperation object
3018
- # @yieldparam result [::Google::Cloud::Security::PrivateCA::V1::ListCertificateTemplatesResponse]
3026
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Security::PrivateCA::V1::CertificateTemplate>]
3019
3027
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
3020
3028
  #
3021
- # @return [::Google::Cloud::Security::PrivateCA::V1::ListCertificateTemplatesResponse]
3029
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Security::PrivateCA::V1::CertificateTemplate>]
3022
3030
  #
3023
3031
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3024
3032
  #
@@ -3070,7 +3078,9 @@ module Google
3070
3078
  retry_policy: @config.retry_policy
3071
3079
 
3072
3080
  @certificate_authority_service_stub.list_certificate_templates request, options do |result, operation|
3081
+ result = ::Gapic::Rest::PagedEnumerable.new @certificate_authority_service_stub, :list_certificate_templates, "certificate_templates", request, result, options
3073
3082
  yield result, operation if block_given?
3083
+ throw :response, result
3074
3084
  end
3075
3085
  rescue ::Gapic::Rest::Error => e
3076
3086
  raise ::Google::Cloud::Error.from_error(e)
@@ -3224,6 +3234,13 @@ module Google
3224
3234
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
3225
3235
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
3226
3236
  # * (`nil`) indicating no credentials
3237
+ #
3238
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
3239
+ # external source for authentication to Google Cloud, you must validate it before
3240
+ # providing it to a Google API client library. Providing an unvalidated credential
3241
+ # configuration to Google APIs can compromise the security of your systems and data.
3242
+ # For more information, refer to [Validate credential configurations from external
3243
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
3227
3244
  # @return [::Object]
3228
3245
  # @!attribute [rw] scope
3229
3246
  # 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 V1
25
- VERSION = "1.1.0"
25
+ VERSION = "2.0.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
@@ -166,11 +166,15 @@ module Google
166
166
  # `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`.
167
167
  # This option enables full flexibility in the key's capabilities and
168
168
  # properties.
169
+ #
170
+ # 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.
169
171
  # @!attribute [rw] algorithm
170
172
  # @return [::Google::Cloud::Security::PrivateCA::V1::CertificateAuthority::SignHashAlgorithm]
171
173
  # The algorithm to use for creating a managed Cloud KMS key for a for a
172
174
  # simplified experience. All managed keys will be have their
173
175
  # [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] as `HSM`.
176
+ #
177
+ # 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.
174
178
  class KeyVersionSpec
175
179
  include ::Google::Protobuf::MessageExts
176
180
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -453,9 +457,13 @@ module Google
453
457
  # @!attribute [rw] rsa
454
458
  # @return [::Google::Cloud::Security::PrivateCA::V1::CaPool::IssuancePolicy::AllowedKeyType::RsaKeyType]
455
459
  # Represents an allowed RSA key type.
460
+ #
461
+ # Note: The following fields are mutually exclusive: `rsa`, `elliptic_curve`. If a field in that set is populated, all other fields in the set will automatically be cleared.
456
462
  # @!attribute [rw] elliptic_curve
457
463
  # @return [::Google::Cloud::Security::PrivateCA::V1::CaPool::IssuancePolicy::AllowedKeyType::EcKeyType]
458
464
  # Represents an allowed Elliptic Curve key type.
465
+ #
466
+ # Note: The following fields are mutually exclusive: `elliptic_curve`, `rsa`. If a field in that set is populated, all other fields in the set will automatically be cleared.
459
467
  class AllowedKeyType
460
468
  include ::Google::Protobuf::MessageExts
461
469
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -667,10 +675,14 @@ module Google
667
675
  # @!attribute [rw] pem_csr
668
676
  # @return [::String]
669
677
  # Immutable. A pem-encoded X.509 certificate signing request (CSR).
678
+ #
679
+ # 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.
670
680
  # @!attribute [rw] config
671
681
  # @return [::Google::Cloud::Security::PrivateCA::V1::CertificateConfig]
672
682
  # Immutable. A description of the certificate and key that does not require
673
683
  # X.509 or ASN.1.
684
+ #
685
+ # 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.
674
686
  # @!attribute [r] issuer_certificate_authority
675
687
  # @return [::String]
676
688
  # Output only. The resource name of the issuing
@@ -971,11 +983,15 @@ module Google
971
983
  # This field is used for information and usability purposes only. The
972
984
  # resource name is in the format
973
985
  # `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
986
+ #
987
+ # 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.
974
988
  # @!attribute [rw] pem_issuer_chain
975
989
  # @return [::Google::Cloud::Security::PrivateCA::V1::SubordinateConfig::SubordinateConfigChain]
976
990
  # Required. Contains the PEM certificate chain for the issuers of this
977
991
  # {::Google::Cloud::Security::PrivateCA::V1::CertificateAuthority CertificateAuthority},
978
992
  # but not pem certificate for this CA itself.
993
+ #
994
+ # 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.
979
995
  class SubordinateConfig
980
996
  include ::Google::Protobuf::MessageExts
981
997
  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-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 2.0.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
@@ -135,7 +134,6 @@ homepage: https://github.com/googleapis/google-cloud-ruby
135
134
  licenses:
136
135
  - Apache-2.0
137
136
  metadata: {}
138
- post_install_message:
139
137
  rdoc_options: []
140
138
  require_paths:
141
139
  - lib
@@ -143,15 +141,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
143
141
  requirements:
144
142
  - - ">="
145
143
  - !ruby/object:Gem::Version
146
- version: '2.7'
144
+ version: '3.0'
147
145
  required_rubygems_version: !ruby/object:Gem::Requirement
148
146
  requirements:
149
147
  - - ">="
150
148
  - !ruby/object:Gem::Version
151
149
  version: '0'
152
150
  requirements: []
153
- rubygems_version: 3.5.23
154
- signing_key:
151
+ rubygems_version: 3.6.3
155
152
  specification_version: 4
156
153
  summary: The Certificate Authority Service API is a highly-available, scalable service
157
154
  that enables you to simplify and automate the management of private certificate