google-apis-serviceusage_v1 0.33.0 → 0.34.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: 18cfc0d8145a3a62071cfdffcde54b1fbf0b56862b95877e170ec3b0fdd3e422
4
- data.tar.gz: 81f5e5d1dd5306ee40dbd7cdbc987c2ae5dbda6bde140066c8afa988d705ad48
3
+ metadata.gz: 83a40e2d06fdead07fed10b2579d59ebdc1f49043331053ad2590ffe40885cc1
4
+ data.tar.gz: fe18ced5c90bf2bcd41e57432b45a78f0ef14d5800a7dc9e4e990f3ac403dfd1
5
5
  SHA512:
6
- metadata.gz: 91e0f73720928121490fae1b503f68f080fb67787e5575e96d393748e990674c000ee50e1ebca11ae58c9c702baef11d62b301b69a603461ed77b389bbf63ece
7
- data.tar.gz: 26aed5731205154e52d1c9f0cdf574a71e91389f9c110b02fd7f32cb874536853a43e7a2b90407e4cf8a5f45585facaf72c8b212f00cdf54eedb750a53eb0696
6
+ metadata.gz: eb0d010591f0b6088c5f7adb20cd349090a27c8cc008fd2c4c026d5f2c8a1a829acf9e3763bac78eabbbab75aaec69235075e8cd8c7d4bc1084be2b8e51da283
7
+ data.tar.gz: d05adb43dea80b49cb620f6a07c3037d814fbe1fc92db63ddcd4c2c2ef9ca63654432b9c1e5f9d841f2b8ed9d947624f58f909744b4d73a4d7405f058c3b0516
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-serviceusage_v1
2
2
 
3
+ ### v0.34.0 (2023-04-16)
4
+
5
+ * Regenerated from discovery document revision 20230412
6
+
3
7
  ### v0.33.0 (2023-04-02)
4
8
 
5
9
  * Regenerated from discovery document revision 20230329
@@ -772,6 +772,56 @@ module Google
772
772
  end
773
773
  end
774
774
 
775
+ # Consumer Policy is a set of rules that define what services or service groups
776
+ # can be used for a cloud resource hierarchy.
777
+ class ConsumerPolicy
778
+ include Google::Apis::Core::Hashable
779
+
780
+ # Optional. Annotations is an unstructured key-value map stored with a policy
781
+ # that may be set by external tools to store and retrieve arbitrary metadata.
782
+ # They are not queryable and should be preserved when modifying objects. [AIP-
783
+ # 128](https://google.aip.dev/128#annotations)
784
+ # Corresponds to the JSON property `annotations`
785
+ # @return [Hash<String,String>]
786
+ attr_accessor :annotations
787
+
788
+ # Enable rules define usable services and service groups.
789
+ # Corresponds to the JSON property `enableRules`
790
+ # @return [Array<Google::Apis::ServiceusageV1::EnableRule>]
791
+ attr_accessor :enable_rules
792
+
793
+ # An opaque tag indicating the current version of the policy, used for
794
+ # concurrency control.
795
+ # Corresponds to the JSON property `etag`
796
+ # @return [String]
797
+ attr_accessor :etag
798
+
799
+ # Output only. The resource name of the policy. For example, `projects/12345/
800
+ # consumerPolicy`, `folders/12345/consumerPolicy`, `organizations/12345/
801
+ # consumerPolicy`.
802
+ # Corresponds to the JSON property `name`
803
+ # @return [String]
804
+ attr_accessor :name
805
+
806
+ # The last-modified time.
807
+ # Corresponds to the JSON property `updateTime`
808
+ # @return [String]
809
+ attr_accessor :update_time
810
+
811
+ def initialize(**args)
812
+ update!(**args)
813
+ end
814
+
815
+ # Update properties of this object
816
+ def update!(**args)
817
+ @annotations = args[:annotations] if args.key?(:annotations)
818
+ @enable_rules = args[:enable_rules] if args.key?(:enable_rules)
819
+ @etag = args[:etag] if args.key?(:etag)
820
+ @name = args[:name] if args.key?(:name)
821
+ @update_time = args[:update_time] if args.key?(:update_time)
822
+ end
823
+ end
824
+
775
825
  # `Context` defines which contexts an API requests. Example: context: rules: -
776
826
  # selector: "*" requested: - google.rpc.context.ProjectContext - google.rpc.
777
827
  # context.OriginContext The above specifies that all methods in the API request `
@@ -1278,6 +1328,47 @@ module Google
1278
1328
  end
1279
1329
  end
1280
1330
 
1331
+ # The consumer policy rule that defines usable services and service groups.
1332
+ class EnableRule
1333
+ include Google::Apis::Core::Hashable
1334
+
1335
+ # Client and resource project enable type.
1336
+ # Corresponds to the JSON property `enableType`
1337
+ # @return [String]
1338
+ attr_accessor :enable_type
1339
+
1340
+ # DEPRECATED: Please use field `values`. Service group should have prefix `
1341
+ # groups/`. The names of the service groups that are enabled (Not Implemented).
1342
+ # go/predefined-service-groups. Example: `groups/googleServices`.
1343
+ # Corresponds to the JSON property `groups`
1344
+ # @return [Array<String>]
1345
+ attr_accessor :groups
1346
+
1347
+ # DEPRECATED: Please use field `values`. Service should have prefix `services/`.
1348
+ # The names of the services that are enabled. Example: `storage.googleapis.com`.
1349
+ # Corresponds to the JSON property `services`
1350
+ # @return [Array<String>]
1351
+ attr_accessor :services
1352
+
1353
+ # The names of the services or service groups that are enabled. Example: `
1354
+ # services/storage.googleapis.com`, groups/googleServices`, groups/allServices`.
1355
+ # Corresponds to the JSON property `values`
1356
+ # @return [Array<String>]
1357
+ attr_accessor :values
1358
+
1359
+ def initialize(**args)
1360
+ update!(**args)
1361
+ end
1362
+
1363
+ # Update properties of this object
1364
+ def update!(**args)
1365
+ @enable_type = args[:enable_type] if args.key?(:enable_type)
1366
+ @groups = args[:groups] if args.key?(:groups)
1367
+ @services = args[:services] if args.key?(:services)
1368
+ @values = args[:values] if args.key?(:values)
1369
+ end
1370
+ end
1371
+
1281
1372
  # Request message for the `EnableService` method.
1282
1373
  class EnableServiceRequest
1283
1374
  include Google::Apis::Core::Hashable
@@ -3620,7 +3711,7 @@ module Google
3620
3711
  # @return [Array<Google::Apis::ServiceusageV1::MethodSettings>]
3621
3712
  attr_accessor :method_settings
3622
3713
 
3623
- # Link to a place that API users can report issues. Example: https://
3714
+ # Link to a *public* URI where users can report issues. Example: https://
3624
3715
  # issuetracker.google.com/issues/new?component=190865&template=1161103
3625
3716
  # Corresponds to the JSON property `newIssueUri`
3626
3717
  # @return [String]
@@ -4192,6 +4283,19 @@ module Google
4192
4283
  end
4193
4284
  end
4194
4285
 
4286
+ # Metadata for the `UpdateConsumerPolicyLRO` method.
4287
+ class UpdateConsumerPolicyLroMetadata
4288
+ include Google::Apis::Core::Hashable
4289
+
4290
+ def initialize(**args)
4291
+ update!(**args)
4292
+ end
4293
+
4294
+ # Update properties of this object
4295
+ def update!(**args)
4296
+ end
4297
+ end
4298
+
4195
4299
  # Configuration controlling usage of a service.
4196
4300
  class Usage
4197
4301
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ServiceusageV1
18
18
  # Version of the google-apis-serviceusage_v1 gem
19
- GEM_VERSION = "0.33.0"
19
+ GEM_VERSION = "0.34.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230329"
25
+ REVISION = "20230412"
26
26
  end
27
27
  end
28
28
  end
@@ -130,6 +130,12 @@ module Google
130
130
  include Google::Apis::Core::JsonObjectSupport
131
131
  end
132
132
 
133
+ class ConsumerPolicy
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
133
139
  class Context
134
140
  class Representation < Google::Apis::Core::JsonRepresentation; end
135
141
 
@@ -226,6 +232,12 @@ module Google
226
232
  include Google::Apis::Core::JsonObjectSupport
227
233
  end
228
234
 
235
+ class EnableRule
236
+ class Representation < Google::Apis::Core::JsonRepresentation; end
237
+
238
+ include Google::Apis::Core::JsonObjectSupport
239
+ end
240
+
229
241
  class EnableServiceRequest
230
242
  class Representation < Google::Apis::Core::JsonRepresentation; end
231
243
 
@@ -604,6 +616,12 @@ module Google
604
616
  include Google::Apis::Core::JsonObjectSupport
605
617
  end
606
618
 
619
+ class UpdateConsumerPolicyLroMetadata
620
+ class Representation < Google::Apis::Core::JsonRepresentation; end
621
+
622
+ include Google::Apis::Core::JsonObjectSupport
623
+ end
624
+
607
625
  class Usage
608
626
  class Representation < Google::Apis::Core::JsonRepresentation; end
609
627
 
@@ -809,6 +827,18 @@ module Google
809
827
  end
810
828
  end
811
829
 
830
+ class ConsumerPolicy
831
+ # @private
832
+ class Representation < Google::Apis::Core::JsonRepresentation
833
+ hash :annotations, as: 'annotations'
834
+ collection :enable_rules, as: 'enableRules', class: Google::Apis::ServiceusageV1::EnableRule, decorator: Google::Apis::ServiceusageV1::EnableRule::Representation
835
+
836
+ property :etag, as: 'etag'
837
+ property :name, as: 'name'
838
+ property :update_time, as: 'updateTime'
839
+ end
840
+ end
841
+
812
842
  class Context
813
843
  # @private
814
844
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -946,6 +976,16 @@ module Google
946
976
  end
947
977
  end
948
978
 
979
+ class EnableRule
980
+ # @private
981
+ class Representation < Google::Apis::Core::JsonRepresentation
982
+ property :enable_type, as: 'enableType'
983
+ collection :groups, as: 'groups'
984
+ collection :services, as: 'services'
985
+ collection :values, as: 'values'
986
+ end
987
+ end
988
+
949
989
  class EnableServiceRequest
950
990
  # @private
951
991
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1615,6 +1655,12 @@ module Google
1615
1655
  end
1616
1656
  end
1617
1657
 
1658
+ class UpdateConsumerPolicyLroMetadata
1659
+ # @private
1660
+ class Representation < Google::Apis::Core::JsonRepresentation
1661
+ end
1662
+ end
1663
+
1618
1664
  class Usage
1619
1665
  # @private
1620
1666
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-serviceusage_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.33.0
4
+ version: 0.34.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-02 00:00:00.000000000 Z
11
+ date: 2023-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-serviceusage_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-serviceusage_v1/v0.33.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-serviceusage_v1/v0.34.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-serviceusage_v1
63
63
  post_install_message:
64
64
  rdoc_options: []