google-cloud-service_usage-v1 1.1.0 → 1.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: 654c07ede43cdeca4c1006d4c79f37f1b6d8bf27aef98fedc9a04e54d81e08a0
4
- data.tar.gz: a2feec71c8f79f55db72bcc26a95edd4126cda002c543de1e865faa6892d34c5
3
+ metadata.gz: 7af019417060491fb17f7772a295fd4f80cfb4799bd86becbd66217e7ab02c05
4
+ data.tar.gz: caa053c73442447280693108b878c5d060ba8d6c07ad059df8f05e5891d26ff8
5
5
  SHA512:
6
- metadata.gz: 905d772cc40d4cebec1dafb07379536c78cbc7bce106b9c2458ca397ca6c34d489ae09325c76f5c366ce1fa558c4e1d7758abd309a8a92461cb36871ec05194d
7
- data.tar.gz: 5784697ca1ce9c935329fc7e344a017a94908052a076fcd6f9da2835ac89413787fa0db61d12ca62a06ded0aed4b8e8bd09e142c8ae3fbcc033928dc1699172b
6
+ metadata.gz: 98214ecac9324f274ae09d01540df153f00f80527bc816e90a6cb488b86189fe17b5f194812a5957a2ae5ca77376bc132d6d6155d866915fb4c32349dbb31051
7
+ data.tar.gz: 38986487be6a34d789fd5bac224995929a088abdee5df8846393f87307c83a251b3169a89b98b264b494787605a7421f88b07585ca0a4ad196cfb05db7eefdbe
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
@@ -878,6 +878,13 @@ module Google
878
878
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
879
879
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
880
880
  # * (`nil`) indicating no credentials
881
+ #
882
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
883
+ # external source for authentication to Google Cloud, you must validate it before
884
+ # providing it to a Google API client library. Providing an unvalidated credential
885
+ # configuration to Google APIs can compromise the security of your systems and data.
886
+ # For more information, refer to [Validate credential configurations from external
887
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
881
888
  # @return [::Object]
882
889
  # @!attribute [rw] scope
883
890
  # The OAuth scopes
@@ -932,8 +939,8 @@ module Google
932
939
 
933
940
  config_attr :endpoint, nil, ::String, nil
934
941
  config_attr :credentials, nil do |value|
935
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
936
- allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
942
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
943
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
937
944
  allowed.any? { |klass| klass === value }
938
945
  end
939
946
  config_attr :scope, nil, ::String, ::Array, nil
@@ -632,6 +632,13 @@ module Google
632
632
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
633
633
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
634
634
  # * (`nil`) indicating no credentials
635
+ #
636
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
637
+ # external source for authentication to Google Cloud, you must validate it before
638
+ # providing it to a Google API client library. Providing an unvalidated credential
639
+ # configuration to Google APIs can compromise the security of your systems and data.
640
+ # For more information, refer to [Validate credential configurations from external
641
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
635
642
  # @return [::Object]
636
643
  # @!attribute [rw] scope
637
644
  # The OAuth scopes
@@ -686,8 +693,8 @@ module Google
686
693
 
687
694
  config_attr :endpoint, nil, ::String, nil
688
695
  config_attr :credentials, nil do |value|
689
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
690
- allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
696
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
697
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
691
698
  allowed.any? { |klass| klass === value }
692
699
  end
693
700
  config_attr :scope, nil, ::String, ::Array, nil
@@ -827,6 +827,13 @@ module Google
827
827
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
828
828
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
829
829
  # * (`nil`) indicating no credentials
830
+ #
831
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
832
+ # external source for authentication to Google Cloud, you must validate it before
833
+ # providing it to a Google API client library. Providing an unvalidated credential
834
+ # configuration to Google APIs can compromise the security of your systems and data.
835
+ # For more information, refer to [Validate credential configurations from external
836
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
830
837
  # @return [::Object]
831
838
  # @!attribute [rw] scope
832
839
  # The OAuth scopes
@@ -874,7 +881,7 @@ module Google
874
881
 
875
882
  config_attr :endpoint, nil, ::String, nil
876
883
  config_attr :credentials, nil do |value|
877
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
884
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
878
885
  allowed.any? { |klass| klass === value }
879
886
  end
880
887
  config_attr :scope, nil, ::String, ::Array, nil
@@ -502,6 +502,13 @@ module Google
502
502
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
503
503
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
504
504
  # * (`nil`) indicating no credentials
505
+ #
506
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
507
+ # external source for authentication to Google Cloud, you must validate it before
508
+ # providing it to a Google API client library. Providing an unvalidated credential
509
+ # configuration to Google APIs can compromise the security of your systems and data.
510
+ # For more information, refer to [Validate credential configurations from external
511
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
505
512
  # @return [::Object]
506
513
  # @!attribute [rw] scope
507
514
  # The OAuth scopes
@@ -549,7 +556,7 @@ module Google
549
556
 
550
557
  config_attr :endpoint, nil, ::String, nil
551
558
  config_attr :credentials, nil do |value|
552
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
559
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
553
560
  allowed.any? { |klass| klass === value }
554
561
  end
555
562
  config_attr :scope, nil, ::String, ::Array, nil
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module ServiceUsage
23
23
  module V1
24
- VERSION = "1.1.0"
24
+ VERSION = "1.2.1"
25
25
  end
26
26
  end
27
27
  end
@@ -84,12 +84,18 @@ module Google
84
84
  # @!attribute [rw] header
85
85
  # @return [::String]
86
86
  # Specifies HTTP header name to extract JWT token.
87
+ #
88
+ # Note: The following fields are mutually exclusive: `header`, `query`, `cookie`. If a field in that set is populated, all other fields in the set will automatically be cleared.
87
89
  # @!attribute [rw] query
88
90
  # @return [::String]
89
91
  # Specifies URL query parameter name to extract JWT token.
92
+ #
93
+ # Note: The following fields are mutually exclusive: `query`, `header`, `cookie`. If a field in that set is populated, all other fields in the set will automatically be cleared.
90
94
  # @!attribute [rw] cookie
91
95
  # @return [::String]
92
96
  # Specifies cookie name to extract JWT token.
97
+ #
98
+ # Note: The following fields are mutually exclusive: `cookie`, `header`, `query`. If a field in that set is populated, all other fields in the set will automatically be cleared.
93
99
  # @!attribute [rw] value_prefix
94
100
  # @return [::String]
95
101
  # The value prefix. The value format is "value_prefix\\{token}"
@@ -221,6 +221,12 @@ module Google
221
221
  # Pythonic which are included in `protobuf>=5.29.x`. This feature will be
222
222
  # enabled by default 1 month after launching the feature in preview
223
223
  # packages.
224
+ # @!attribute [rw] unversioned_package_disabled
225
+ # @return [::Boolean]
226
+ # Disables generation of an unversioned Python package for this client
227
+ # library. This means that the module names will need to be versioned in
228
+ # import statements. For example `import google.cloud.library_v2` instead
229
+ # of `import google.cloud.library`.
224
230
  class ExperimentalFeatures
225
231
  include ::Google::Protobuf::MessageExts
226
232
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -409,6 +415,14 @@ module Google
409
415
  # @return [::Array<::String>]
410
416
  # An allowlist of the fully qualified names of RPCs that should be included
411
417
  # on public client surfaces.
418
+ # @!attribute [rw] generate_omitted_as_internal
419
+ # @return [::Boolean]
420
+ # Setting this to true indicates to the client generators that methods
421
+ # that would be excluded from the generation should instead be generated
422
+ # in a way that indicates these methods should not be consumed by
423
+ # end users. How this is expressed is up to individual language
424
+ # implementations to decide. Some examples may be: added annotations,
425
+ # obfuscated identifiers, or other language idiomatic patterns.
412
426
  class SelectiveGapicGeneration
413
427
  include ::Google::Protobuf::MessageExts
414
428
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -161,9 +161,9 @@ module Google
161
161
  # `[Java][Tutorial.Java]`.
162
162
  # @!attribute [rw] content
163
163
  # @return [::String]
164
- # The Markdown content of the page. You can use <code>&#40;== include \\{path}
165
- # ==&#41;</code> to include content from a Markdown file. The content can be
166
- # used to produce the documentation page such as HTML format page.
164
+ # The Markdown content of the page. You can use ```(== include {path}
165
+ # ==)``` to include content from a Markdown file. The content can be used
166
+ # to produce the documentation page such as HTML format page.
167
167
  # @!attribute [rw] subpages
168
168
  # @return [::Array<::Google::Api::Page>]
169
169
  # Subpages of this page. The order of subpages specified here will be
@@ -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
@@ -53,21 +53,33 @@ module Google
53
53
  # @!attribute [rw] null_value
54
54
  # @return [::Google::Protobuf::NullValue]
55
55
  # Represents a null value.
56
+ #
57
+ # Note: The following fields are mutually exclusive: `null_value`, `number_value`, `string_value`, `bool_value`, `struct_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
56
58
  # @!attribute [rw] number_value
57
59
  # @return [::Float]
58
60
  # Represents a double value.
61
+ #
62
+ # Note: The following fields are mutually exclusive: `number_value`, `null_value`, `string_value`, `bool_value`, `struct_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
59
63
  # @!attribute [rw] string_value
60
64
  # @return [::String]
61
65
  # Represents a string value.
66
+ #
67
+ # Note: The following fields are mutually exclusive: `string_value`, `null_value`, `number_value`, `bool_value`, `struct_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
62
68
  # @!attribute [rw] bool_value
63
69
  # @return [::Boolean]
64
70
  # Represents a boolean value.
71
+ #
72
+ # Note: The following fields are mutually exclusive: `bool_value`, `null_value`, `number_value`, `string_value`, `struct_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
65
73
  # @!attribute [rw] struct_value
66
74
  # @return [::Google::Protobuf::Struct]
67
75
  # Represents a structured value.
76
+ #
77
+ # Note: The following fields are mutually exclusive: `struct_value`, `null_value`, `number_value`, `string_value`, `bool_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
68
78
  # @!attribute [rw] list_value
69
79
  # @return [::Google::Protobuf::ListValue]
70
80
  # Represents a repeated `Value`.
81
+ #
82
+ # Note: The following fields are mutually exclusive: `list_value`, `null_value`, `number_value`, `string_value`, `bool_value`, `struct_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
71
83
  class Value
72
84
  include ::Google::Protobuf::MessageExts
73
85
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-service_usage-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.1
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: 1980-01-02 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
@@ -101,7 +100,6 @@ homepage: https://github.com/googleapis/google-cloud-ruby
101
100
  licenses:
102
101
  - Apache-2.0
103
102
  metadata: {}
104
- post_install_message:
105
103
  rdoc_options: []
106
104
  require_paths:
107
105
  - lib
@@ -109,15 +107,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
109
107
  requirements:
110
108
  - - ">="
111
109
  - !ruby/object:Gem::Version
112
- version: '2.7'
110
+ version: '3.0'
113
111
  required_rubygems_version: !ruby/object:Gem::Requirement
114
112
  requirements:
115
113
  - - ">="
116
114
  - !ruby/object:Gem::Version
117
115
  version: '0'
118
116
  requirements: []
119
- rubygems_version: 3.5.23
120
- signing_key:
117
+ rubygems_version: 3.6.8
121
118
  specification_version: 4
122
119
  summary: Enables services that service consumers want to use on Google Cloud Platform,
123
120
  lists the available or enabled services, or disables services that service consumers