google-apis-serviceusage_v1 0.42.0 → 0.44.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: d05eabc9008c5d385778a6c8a48591b0a5f9f3d6dba9c3d811d27e9434975be3
4
- data.tar.gz: c4172764270829c82094a5463c11b68c4669e6c34d8028995803db1a73888c2d
3
+ metadata.gz: b45a8422878b28c61ecbc79c5f5a1fc03c04de223ca47416bd23b584afdeb34b
4
+ data.tar.gz: 4fe2eba01e584635c20cc9891252ed57d5489cc0bf9770697c8477445651d179
5
5
  SHA512:
6
- metadata.gz: 79d82421a237b620ccb5e2e6992573b33db2ed6c1083aca3e48307079dce854bf2116d9dd0fc8ca689f8ca75ede17b6522076b3d72c507065f70576c05a15d2a
7
- data.tar.gz: 7d07f664509d0f02894165654aabf5d0b561c0727818a293c5e1f94cee0ea5f537698caaa3322da9dfb4a81ab23a960d6eb91dc3d488e17d81ecfbf91bb0a5b3
6
+ metadata.gz: 6cb2f2c7dab0c36d836b14ee5e6b4d5cd2608ca4cb00a1e5734d054fb8d9d0dff9603963c7f0c8a720fdd413db81ed088657f26dff4a531f57c93c42440abf5f
7
+ data.tar.gz: 464f480b5e274aed73d9d83e43ef0ff2ea81a25481f2a78a3d8e52975f30c41cdb901abf6161420f3e41020dcae82ff984f3b4bc3a6b2457868a22008efbf46c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-serviceusage_v1
2
2
 
3
+ ### v0.44.0 (2023-11-19)
4
+
5
+ * Regenerated from discovery document revision 20231113
6
+
7
+ ### v0.43.0 (2023-09-10)
8
+
9
+ * Regenerated from discovery document revision 20230907
10
+
3
11
  ### v0.42.0 (2023-08-13)
4
12
 
5
13
  * Regenerated from discovery document revision 20230806
@@ -35,7 +35,7 @@ module Google
35
35
  end
36
36
  end
37
37
 
38
- # The response message of "AddEnableRules" method.
38
+ # The response message of `AddEnableRules` method.
39
39
  class AddEnableRulesResponse
40
40
  include Google::Apis::Core::Hashable
41
41
 
@@ -836,10 +836,10 @@ module Google
836
836
  # @return [String]
837
837
  attr_accessor :etag
838
838
 
839
- # Output only. The resource name of the policy. For example, We only allow
840
- # consumer policy name as "default" for now: `projects/12345/consumerPolicies/
841
- # default`, `folders/12345/consumerPolicies/default`, `organizations/12345/
842
- # consumerPolicies/default`. Legacy format: `projects/12345/consumerPoly`
839
+ # Output only. The resource name of the policy. We only allow consumer policy
840
+ # name as `default` for now: `projects/12345/consumerPolicies/default`, `folders/
841
+ # 12345/consumerPolicies/default`, `organizations/12345/consumerPolicies/default`
842
+ # .
843
843
  # Corresponds to the JSON property `name`
844
844
  # @return [String]
845
845
  attr_accessor :name
@@ -1401,7 +1401,7 @@ module Google
1401
1401
 
1402
1402
  # DEPRECATED: Please use field `values`. Service group should have prefix `
1403
1403
  # groups/`. The names of the service groups that are enabled (Not Implemented).
1404
- # go/predefined-service-groups. Example: `groups/googleServices`.
1404
+ # Example: `groups/googleServices`.
1405
1405
  # Corresponds to the JSON property `groups`
1406
1406
  # @return [Array<String>]
1407
1407
  attr_accessor :groups
@@ -1413,7 +1413,8 @@ module Google
1413
1413
  attr_accessor :services
1414
1414
 
1415
1415
  # The names of the services or service groups that are enabled. Example: `
1416
- # services/storage.googleapis.com`, groups/googleServices`, groups/allServices`.
1416
+ # services/storage.googleapis.com`, `groups/googleServices`, `groups/allServices`
1417
+ # .
1417
1418
  # Corresponds to the JSON property `values`
1418
1419
  # @return [Array<String>]
1419
1420
  attr_accessor :values
@@ -2374,6 +2375,112 @@ module Google
2374
2375
  end
2375
2376
  end
2376
2377
 
2378
+ # Consumer Policy is a set of rules that define what services or service groups
2379
+ # can be used for a cloud resource hierarchy.
2380
+ class GoogleApiServiceusageV2alphaConsumerPolicy
2381
+ include Google::Apis::Core::Hashable
2382
+
2383
+ # Optional. Annotations is an unstructured key-value map stored with a policy
2384
+ # that may be set by external tools to store and retrieve arbitrary metadata.
2385
+ # They are not queryable and should be preserved when modifying objects. [AIP-
2386
+ # 128](https://google.aip.dev/128#annotations)
2387
+ # Corresponds to the JSON property `annotations`
2388
+ # @return [Hash<String,String>]
2389
+ attr_accessor :annotations
2390
+
2391
+ # Output only. The time the policy was created. For singleton policies, this is
2392
+ # the first touch of the policy.
2393
+ # Corresponds to the JSON property `createTime`
2394
+ # @return [String]
2395
+ attr_accessor :create_time
2396
+
2397
+ # Enable rules define usable services, groups, and categories. There can
2398
+ # currently be at most one `EnableRule`. This restriction will be lifted in
2399
+ # later releases.
2400
+ # Corresponds to the JSON property `enableRules`
2401
+ # @return [Array<Google::Apis::ServiceusageV1::GoogleApiServiceusageV2alphaEnableRule>]
2402
+ attr_accessor :enable_rules
2403
+
2404
+ # Output only. An opaque tag indicating the current version of the policy, used
2405
+ # for concurrency control.
2406
+ # Corresponds to the JSON property `etag`
2407
+ # @return [String]
2408
+ attr_accessor :etag
2409
+
2410
+ # Output only. The resource name of the policy. Only the `default` policy is
2411
+ # supported: `projects/12345/consumerPolicies/default`, `folders/12345/
2412
+ # consumerPolicies/default`, `organizations/12345/consumerPolicies/default`.
2413
+ # Corresponds to the JSON property `name`
2414
+ # @return [String]
2415
+ attr_accessor :name
2416
+
2417
+ # Output only. The time the policy was last updated.
2418
+ # Corresponds to the JSON property `updateTime`
2419
+ # @return [String]
2420
+ attr_accessor :update_time
2421
+
2422
+ def initialize(**args)
2423
+ update!(**args)
2424
+ end
2425
+
2426
+ # Update properties of this object
2427
+ def update!(**args)
2428
+ @annotations = args[:annotations] if args.key?(:annotations)
2429
+ @create_time = args[:create_time] if args.key?(:create_time)
2430
+ @enable_rules = args[:enable_rules] if args.key?(:enable_rules)
2431
+ @etag = args[:etag] if args.key?(:etag)
2432
+ @name = args[:name] if args.key?(:name)
2433
+ @update_time = args[:update_time] if args.key?(:update_time)
2434
+ end
2435
+ end
2436
+
2437
+ # The consumer policy rule that defines enabled services, groups, and categories.
2438
+ class GoogleApiServiceusageV2alphaEnableRule
2439
+ include Google::Apis::Core::Hashable
2440
+
2441
+ # The names of the categories that are enabled. Example: `categories/
2442
+ # googleServices`.
2443
+ # Corresponds to the JSON property `categories`
2444
+ # @return [Array<String>]
2445
+ attr_accessor :categories
2446
+
2447
+ # The names of the service groups that are enabled. Example: `services/container.
2448
+ # googleapis.com/groups/dependencies`.
2449
+ # Corresponds to the JSON property `groups`
2450
+ # @return [Array<String>]
2451
+ attr_accessor :groups
2452
+
2453
+ # The names of the services that are enabled. Example: `services/storage.
2454
+ # googleapis.com`.
2455
+ # Corresponds to the JSON property `services`
2456
+ # @return [Array<String>]
2457
+ attr_accessor :services
2458
+
2459
+ def initialize(**args)
2460
+ update!(**args)
2461
+ end
2462
+
2463
+ # Update properties of this object
2464
+ def update!(**args)
2465
+ @categories = args[:categories] if args.key?(:categories)
2466
+ @groups = args[:groups] if args.key?(:groups)
2467
+ @services = args[:services] if args.key?(:services)
2468
+ end
2469
+ end
2470
+
2471
+ # Metadata for the `UpdateConsumerPolicy` method.
2472
+ class GoogleApiServiceusageV2alphaUpdateConsumerPolicyMetadata
2473
+ include Google::Apis::Core::Hashable
2474
+
2475
+ def initialize(**args)
2476
+ update!(**args)
2477
+ end
2478
+
2479
+ # Update properties of this object
2480
+ def update!(**args)
2481
+ end
2482
+ end
2483
+
2377
2484
  # Defines the HTTP configuration for an API service. It contains a list of
2378
2485
  # HttpRule, each specifying the mapping of an RPC method to one or more HTTP
2379
2486
  # REST API methods.
@@ -4139,7 +4246,7 @@ module Google
4139
4246
  end
4140
4247
  end
4141
4248
 
4142
- # The response message of "RemoveEnableRules" method.
4249
+ # The response message of `RemoveEnableRules` method.
4143
4250
  class RemoveEnableRulesResponse
4144
4251
  include Google::Apis::Core::Hashable
4145
4252
 
@@ -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.42.0"
19
+ GEM_VERSION = "0.44.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 = "20230806"
25
+ REVISION = "20231113"
26
26
  end
27
27
  end
28
28
  end
@@ -346,6 +346,24 @@ module Google
346
346
  include Google::Apis::Core::JsonObjectSupport
347
347
  end
348
348
 
349
+ class GoogleApiServiceusageV2alphaConsumerPolicy
350
+ class Representation < Google::Apis::Core::JsonRepresentation; end
351
+
352
+ include Google::Apis::Core::JsonObjectSupport
353
+ end
354
+
355
+ class GoogleApiServiceusageV2alphaEnableRule
356
+ class Representation < Google::Apis::Core::JsonRepresentation; end
357
+
358
+ include Google::Apis::Core::JsonObjectSupport
359
+ end
360
+
361
+ class GoogleApiServiceusageV2alphaUpdateConsumerPolicyMetadata
362
+ class Representation < Google::Apis::Core::JsonRepresentation; end
363
+
364
+ include Google::Apis::Core::JsonObjectSupport
365
+ end
366
+
349
367
  class Http
350
368
  class Representation < Google::Apis::Core::JsonRepresentation; end
351
369
 
@@ -1255,6 +1273,34 @@ module Google
1255
1273
  end
1256
1274
  end
1257
1275
 
1276
+ class GoogleApiServiceusageV2alphaConsumerPolicy
1277
+ # @private
1278
+ class Representation < Google::Apis::Core::JsonRepresentation
1279
+ hash :annotations, as: 'annotations'
1280
+ property :create_time, as: 'createTime'
1281
+ collection :enable_rules, as: 'enableRules', class: Google::Apis::ServiceusageV1::GoogleApiServiceusageV2alphaEnableRule, decorator: Google::Apis::ServiceusageV1::GoogleApiServiceusageV2alphaEnableRule::Representation
1282
+
1283
+ property :etag, as: 'etag'
1284
+ property :name, as: 'name'
1285
+ property :update_time, as: 'updateTime'
1286
+ end
1287
+ end
1288
+
1289
+ class GoogleApiServiceusageV2alphaEnableRule
1290
+ # @private
1291
+ class Representation < Google::Apis::Core::JsonRepresentation
1292
+ collection :categories, as: 'categories'
1293
+ collection :groups, as: 'groups'
1294
+ collection :services, as: 'services'
1295
+ end
1296
+ end
1297
+
1298
+ class GoogleApiServiceusageV2alphaUpdateConsumerPolicyMetadata
1299
+ # @private
1300
+ class Representation < Google::Apis::Core::JsonRepresentation
1301
+ end
1302
+ end
1303
+
1258
1304
  class Http
1259
1305
  # @private
1260
1306
  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.42.0
4
+ version: 0.44.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-08-20 00:00:00.000000000 Z
11
+ date: 2023-11-19 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.42.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-serviceusage_v1/v0.44.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: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.4.2
78
+ rubygems_version: 3.4.19
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Service Usage API V1