google-apis-serviceusage_v1 0.43.0 → 0.45.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: 989df56645458e51ce021805c1dc993b9fdc378dbfd9c9a85dc1730cbf4dfd99
4
- data.tar.gz: 8fe083b79659f3c4b46ff7b07c5bd3f668de7911ebb472249bec7f24205480f2
3
+ metadata.gz: afad4ae8cb3df6ad6221b52a56cdbd9e42188aa77711011e332eb0ee00cf8ad7
4
+ data.tar.gz: 0bf0e65b3e551ec82f77cff3db72074e930ccc5a2891080ba140d820023c1a7c
5
5
  SHA512:
6
- metadata.gz: 7669ab3cf67c81b119570d65fa4bf798bdca6216892bdee350812a64d5513c029bc78290b5032808476467d06c100d0981cf39b865e9a502f1a3992cc6aaa110
7
- data.tar.gz: f595a34bc0396cd4f0bc7fdec385e997f610554bedd0ddb0fbf61aaca57263028136866955102759383e7fddf5c77df66e8f084cc4a7a834ada9c84993ce2fa0
6
+ metadata.gz: 45c55b68e6c5c2d2a6c6e104567733e18d1937dff41f0ac865d91374865e53f585046cbf14b7167b7c8894d62db80d1d4fa86b4d23dc46430918100489c17baf
7
+ data.tar.gz: 99d01e235c0edabb5ed26f16f3e06b663f16c375c08e92774831a71e528b320226360c740c7062251ab12e04ffd2882d5c4ed715ca6217a9d468ccba36c70380
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-serviceusage_v1
2
2
 
3
+ ### v0.45.0 (2023-12-03)
4
+
5
+ * Regenerated from discovery document revision 20231128
6
+
7
+ ### v0.44.0 (2023-11-19)
8
+
9
+ * Regenerated from discovery document revision 20231113
10
+
3
11
  ### v0.43.0 (2023-09-10)
4
12
 
5
13
  * Regenerated from discovery document revision 20230907
@@ -2375,6 +2375,112 @@ module Google
2375
2375
  end
2376
2376
  end
2377
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
+
2378
2484
  # Defines the HTTP configuration for an API service. It contains a list of
2379
2485
  # HttpRule, each specifying the mapping of an RPC method to one or more HTTP
2380
2486
  # REST API methods.
@@ -3130,6 +3236,15 @@ module Google
3130
3236
  class MethodSettings
3131
3237
  include Google::Apis::Core::Hashable
3132
3238
 
3239
+ # List of top-level fields of the request message, that should be automatically
3240
+ # populated by the client libraries based on their (google.api.field_info).
3241
+ # format. Currently supported format: UUID4. Example of a YAML configuration:
3242
+ # publishing: method_settings: - selector: google.example.v1.ExampleService.
3243
+ # CreateExample auto_populated_fields: - request_id
3244
+ # Corresponds to the JSON property `autoPopulatedFields`
3245
+ # @return [Array<String>]
3246
+ attr_accessor :auto_populated_fields
3247
+
3133
3248
  # Describes settings to use when generating API methods that use the long-
3134
3249
  # running operation pattern. All default values below are from those used in the
3135
3250
  # client library generators (e.g. [Java](https://github.com/googleapis/gapic-
@@ -3151,6 +3266,7 @@ module Google
3151
3266
 
3152
3267
  # Update properties of this object
3153
3268
  def update!(**args)
3269
+ @auto_populated_fields = args[:auto_populated_fields] if args.key?(:auto_populated_fields)
3154
3270
  @long_running = args[:long_running] if args.key?(:long_running)
3155
3271
  @selector = args[:selector] if args.key?(:selector)
3156
3272
  end
@@ -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.43.0"
19
+ GEM_VERSION = "0.45.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 = "20230907"
25
+ REVISION = "20231128"
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
@@ -1436,6 +1482,7 @@ module Google
1436
1482
  class MethodSettings
1437
1483
  # @private
1438
1484
  class Representation < Google::Apis::Core::JsonRepresentation
1485
+ collection :auto_populated_fields, as: 'autoPopulatedFields'
1439
1486
  property :long_running, as: 'longRunning', class: Google::Apis::ServiceusageV1::LongRunning, decorator: Google::Apis::ServiceusageV1::LongRunning::Representation
1440
1487
 
1441
1488
  property :selector, as: 'selector'
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.43.0
4
+ version: 0.45.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-09-10 00:00:00.000000000 Z
11
+ date: 2023-12-03 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.43.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-serviceusage_v1/v0.45.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: []