google-apis-run_v2 0.44.0 → 0.46.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: b9db608bd47c31326ae57db478e4e7f72aa092e9d282c067f7d5ec1723373854
4
- data.tar.gz: e908b717a7da24191a930d810aa50a8c6cad84862618fb825064970c73b24b54
3
+ metadata.gz: 5f577033e7d24c7a3958d88e704a9e0df5114909ac8634916911e3398d011f84
4
+ data.tar.gz: aa633cf2b1921c9d835ee83f16d490fe5ac43a3f4e3d3270b758fc4bf987eeb2
5
5
  SHA512:
6
- metadata.gz: 39f0e5e6114afa601447ead1a995f183927b889d2db9780491a43118fd47c99c41c1c9e7ec85417c27072108f11f3a8e51e447d03df8e5702ff925411c0317d9
7
- data.tar.gz: a0fe95251f0cdaeeffb9efff1528a164be905750ad9936da128444e179e9ea0903f9e9d1e0471c32ca40734daadc07fe40ab32b4e28e00d0fcb3ee5768091d9a
6
+ metadata.gz: ae3a249cec42098e2d2181d6c8f348c23184f4fef8417ae47845dbe91f6821cda9ab40cf643c34c16d4273d7ce128ad35a96289673d5228dd39eb18360d70244
7
+ data.tar.gz: 35c236ebbd2a691595bbdf4ac1a74bb71d6d69817d1ac531221013302ada0f7762d7c94b653063a1b769950a80283e79480c3c7278db3e344c7041f2237f6f6b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-run_v2
2
2
 
3
+ ### v0.46.0 (2023-08-13)
4
+
5
+ * Regenerated from discovery document revision 20230806
6
+
7
+ ### v0.45.0 (2023-08-06)
8
+
9
+ * Regenerated from discovery document revision 20230730
10
+
3
11
  ### v0.44.0 (2023-07-09)
4
12
 
5
13
  * Regenerated from discovery document revision 20230702
@@ -52,6 +52,34 @@ module Google
52
52
  end
53
53
  end
54
54
 
55
+ # Request message for deleting an Execution.
56
+ class GoogleCloudRunV2CancelExecutionRequest
57
+ include Google::Apis::Core::Hashable
58
+
59
+ # A system-generated fingerprint for this version of the resource. This may be
60
+ # used to detect modification conflict during updates.
61
+ # Corresponds to the JSON property `etag`
62
+ # @return [String]
63
+ attr_accessor :etag
64
+
65
+ # Indicates that the request should be validated without actually cancelling any
66
+ # resources.
67
+ # Corresponds to the JSON property `validateOnly`
68
+ # @return [Boolean]
69
+ attr_accessor :validate_only
70
+ alias_method :validate_only?, :validate_only
71
+
72
+ def initialize(**args)
73
+ update!(**args)
74
+ end
75
+
76
+ # Update properties of this object
77
+ def update!(**args)
78
+ @etag = args[:etag] if args.key?(:etag)
79
+ @validate_only = args[:validate_only] if args.key?(:validate_only)
80
+ end
81
+ end
82
+
55
83
  # Represents a set of Cloud SQL instances. Each one will be available under /
56
84
  # cloudsql/[instance]. Visit https://cloud.google.com/sql/docs/mysql/connect-run
57
85
  # for more information on how to connect Cloud SQL and Cloud Run.
@@ -158,7 +186,7 @@ module Google
158
186
  # @return [Array<String>]
159
187
  attr_accessor :command
160
188
 
161
- # Container names which must start before this container.
189
+ # Names of the containers that must start before this container.
162
190
  # Corresponds to the JSON property `dependsOn`
163
191
  # @return [Array<String>]
164
192
  attr_accessor :depends_on
@@ -265,10 +293,9 @@ module Google
265
293
  end
266
294
  end
267
295
 
268
- # Ephemeral storage which can be backed by real disks (HD, SSD), network storage
269
- # or memory (i.e. tmpfs). For now only in memory (tmpfs) is supported. It is
270
- # ephemeral in the sense that when the sandbox is taken down, the data is
271
- # destroyed with it (it does not persist across sandbox runs).
296
+ # In memory (tmpfs) ephemeral storage. It is ephemeral in the sense that when
297
+ # the sandbox is taken down, the data is destroyed with it (it does not persist
298
+ # across sandbox runs).
272
299
  class GoogleCloudRunV2EmptyDirVolumeSource
273
300
  include Google::Apis::Core::Hashable
274
301
 
@@ -282,11 +309,10 @@ module Google
282
309
  # Limit on the storage usable by this EmptyDir volume. The size limit is also
283
310
  # applicable for memory medium. The maximum usage on memory medium EmptyDir
284
311
  # would be the minimum value between the SizeLimit specified here and the sum of
285
- # memory limits of all containers in a pod. This field's values are of the '
286
- # Quantity' k8s type: https://kubernetes.io/docs/reference/kubernetes-api/common-
287
- # definitions/quantity/. The default is nil which means that the limit is
288
- # undefined. More info: https://kubernetes.io/docs/concepts/storage/volumes/#
289
- # emptydir
312
+ # memory limits of all containers. The default is nil which means that the limit
313
+ # is undefined. More info: https://cloud.google.com/run/docs/configuring/in-
314
+ # memory-volumes#configure-volume. Info in Kubernetes: https://kubernetes.io/
315
+ # docs/concepts/storage/volumes/#emptydir
290
316
  # Corresponds to the JSON property `sizeLimit`
291
317
  # @return [String]
292
318
  attr_accessor :size_limit
@@ -1877,6 +1903,13 @@ module Google
1877
1903
  # @return [Array<Google::Apis::RunV2::GoogleCloudRunV2TrafficTargetStatus>]
1878
1904
  attr_accessor :traffic_statuses
1879
1905
 
1906
+ # Optional. Override the traffic tag threshold limit. Garbage collection will
1907
+ # start cleaning up non-serving tagged traffic targets based on creation item.
1908
+ # The default value is 2000.
1909
+ # Corresponds to the JSON property `trafficTagsCleanupThreshold`
1910
+ # @return [Fixnum]
1911
+ attr_accessor :traffic_tags_cleanup_threshold
1912
+
1880
1913
  # Output only. Server assigned unique identifier for the trigger. The value is a
1881
1914
  # UUID4 string and guaranteed to remain unchanged until the resource is deleted.
1882
1915
  # Corresponds to the JSON property `uid`
@@ -1926,6 +1959,7 @@ module Google
1926
1959
  @terminal_condition = args[:terminal_condition] if args.key?(:terminal_condition)
1927
1960
  @traffic = args[:traffic] if args.key?(:traffic)
1928
1961
  @traffic_statuses = args[:traffic_statuses] if args.key?(:traffic_statuses)
1962
+ @traffic_tags_cleanup_threshold = args[:traffic_tags_cleanup_threshold] if args.key?(:traffic_tags_cleanup_threshold)
1929
1963
  @uid = args[:uid] if args.key?(:uid)
1930
1964
  @update_time = args[:update_time] if args.key?(:update_time)
1931
1965
  @uri = args[:uri] if args.key?(:uri)
@@ -1981,9 +2015,8 @@ module Google
1981
2015
  # @return [Array<Google::Apis::RunV2::GoogleCloudRunV2Container>]
1982
2016
  attr_accessor :containers
1983
2017
 
1984
- # Output only. Represents time when the task was created by the job controller.
1985
- # It is not guaranteed to be set in happens-before order across separate
1986
- # operations.
2018
+ # Output only. Represents time when the task was created by the system. It is
2019
+ # not guaranteed to be set in happens-before order across separate operations.
1987
2020
  # Corresponds to the JSON property `createTime`
1988
2021
  # @return [String]
1989
2022
  attr_accessor :create_time
@@ -2421,10 +2454,9 @@ module Google
2421
2454
  # @return [Google::Apis::RunV2::GoogleCloudRunV2CloudSqlInstance]
2422
2455
  attr_accessor :cloud_sql_instance
2423
2456
 
2424
- # Ephemeral storage which can be backed by real disks (HD, SSD), network storage
2425
- # or memory (i.e. tmpfs). For now only in memory (tmpfs) is supported. It is
2426
- # ephemeral in the sense that when the sandbox is taken down, the data is
2427
- # destroyed with it (it does not persist across sandbox runs).
2457
+ # In memory (tmpfs) ephemeral storage. It is ephemeral in the sense that when
2458
+ # the sandbox is taken down, the data is destroyed with it (it does not persist
2459
+ # across sandbox runs).
2428
2460
  # Corresponds to the JSON property `emptyDir`
2429
2461
  # @return [Google::Apis::RunV2::GoogleCloudRunV2EmptyDirVolumeSource]
2430
2462
  attr_accessor :empty_dir
@@ -2671,22 +2703,22 @@ module Google
2671
2703
  # evaluates to `true`. A condition can add constraints based on attributes of
2672
2704
  # the request, the resource, or both. To learn which resources support
2673
2705
  # conditions in their IAM policies, see the [IAM documentation](https://cloud.
2674
- # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
2706
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ``` ` "
2675
2707
  # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
2676
2708
  # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
2677
2709
  # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
2678
2710
  # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
2679
2711
  # ], "condition": ` "title": "expirable access", "description": "Does not grant
2680
2712
  # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
2681
- # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
2682
- # bindings: - members: - user:mike@example.com - group:admins@example.com -
2683
- # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
2684
- # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
2685
- # com role: roles/resourcemanager.organizationViewer condition: title: expirable
2686
- # access description: Does not grant access after Sep 2020 expression: request.
2687
- # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
2688
- # a description of IAM and its features, see the [IAM documentation](https://
2689
- # cloud.google.com/iam/docs/).
2713
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` ``` **YAML
2714
+ # example:** ``` bindings: - members: - user:mike@example.com - group:admins@
2715
+ # example.com - domain:google.com - serviceAccount:my-project-id@appspot.
2716
+ # gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: -
2717
+ # user:eve@example.com role: roles/resourcemanager.organizationViewer condition:
2718
+ # title: expirable access description: Does not grant access after Sep 2020
2719
+ # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag:
2720
+ # BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the
2721
+ # [IAM documentation](https://cloud.google.com/iam/docs/).
2690
2722
  class GoogleIamV1Policy
2691
2723
  include Google::Apis::Core::Hashable
2692
2724
 
@@ -2770,22 +2802,22 @@ module Google
2770
2802
  # evaluates to `true`. A condition can add constraints based on attributes of
2771
2803
  # the request, the resource, or both. To learn which resources support
2772
2804
  # conditions in their IAM policies, see the [IAM documentation](https://cloud.
2773
- # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
2805
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ``` ` "
2774
2806
  # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
2775
2807
  # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
2776
2808
  # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
2777
2809
  # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
2778
2810
  # ], "condition": ` "title": "expirable access", "description": "Does not grant
2779
2811
  # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
2780
- # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
2781
- # bindings: - members: - user:mike@example.com - group:admins@example.com -
2782
- # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
2783
- # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
2784
- # com role: roles/resourcemanager.organizationViewer condition: title: expirable
2785
- # access description: Does not grant access after Sep 2020 expression: request.
2786
- # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
2787
- # a description of IAM and its features, see the [IAM documentation](https://
2788
- # cloud.google.com/iam/docs/).
2812
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` ``` **YAML
2813
+ # example:** ``` bindings: - members: - user:mike@example.com - group:admins@
2814
+ # example.com - domain:google.com - serviceAccount:my-project-id@appspot.
2815
+ # gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: -
2816
+ # user:eve@example.com role: roles/resourcemanager.organizationViewer condition:
2817
+ # title: expirable access description: Does not grant access after Sep 2020
2818
+ # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag:
2819
+ # BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the
2820
+ # [IAM documentation](https://cloud.google.com/iam/docs/).
2789
2821
  # Corresponds to the JSON property `policy`
2790
2822
  # @return [Google::Apis::RunV2::GoogleIamV1Policy]
2791
2823
  attr_accessor :policy
@@ -2910,13 +2942,13 @@ module Google
2910
2942
  # @return [String]
2911
2943
  attr_accessor :name
2912
2944
 
2913
- # The normal response of the operation in case of success. If the original
2914
- # method returns no data on success, such as `Delete`, the response is `google.
2915
- # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
2916
- # the response should be the resource. For other methods, the response should
2917
- # have the type `XxxResponse`, where `Xxx` is the original method name. For
2918
- # example, if the original method name is `TakeSnapshot()`, the inferred
2919
- # response type is `TakeSnapshotResponse`.
2945
+ # The normal, successful response of the operation. If the original method
2946
+ # returns no data on success, such as `Delete`, the response is `google.protobuf.
2947
+ # Empty`. If the original method is standard `Get`/`Create`/`Update`, the
2948
+ # response should be the resource. For other methods, the response should have
2949
+ # the type `XxxResponse`, where `Xxx` is the original method name. For example,
2950
+ # if the original method name is `TakeSnapshot()`, the inferred response type is
2951
+ # `TakeSnapshotResponse`.
2920
2952
  # Corresponds to the JSON property `response`
2921
2953
  # @return [Hash<String,Object>]
2922
2954
  attr_accessor :response
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module RunV2
18
18
  # Version of the google-apis-run_v2 gem
19
- GEM_VERSION = "0.44.0"
19
+ GEM_VERSION = "0.46.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 = "20230702"
25
+ REVISION = "20230806"
26
26
  end
27
27
  end
28
28
  end
@@ -28,6 +28,12 @@ module Google
28
28
  include Google::Apis::Core::JsonObjectSupport
29
29
  end
30
30
 
31
+ class GoogleCloudRunV2CancelExecutionRequest
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
31
37
  class GoogleCloudRunV2CloudSqlInstance
32
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
39
 
@@ -342,6 +348,14 @@ module Google
342
348
  end
343
349
  end
344
350
 
351
+ class GoogleCloudRunV2CancelExecutionRequest
352
+ # @private
353
+ class Representation < Google::Apis::Core::JsonRepresentation
354
+ property :etag, as: 'etag'
355
+ property :validate_only, as: 'validateOnly'
356
+ end
357
+ end
358
+
345
359
  class GoogleCloudRunV2CloudSqlInstance
346
360
  # @private
347
361
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -741,6 +755,7 @@ module Google
741
755
 
742
756
  collection :traffic_statuses, as: 'trafficStatuses', class: Google::Apis::RunV2::GoogleCloudRunV2TrafficTargetStatus, decorator: Google::Apis::RunV2::GoogleCloudRunV2TrafficTargetStatus::Representation
743
757
 
758
+ property :traffic_tags_cleanup_threshold, :numeric_string => true, as: 'trafficTagsCleanupThreshold'
744
759
  property :uid, as: 'uid'
745
760
  property :update_time, as: 'updateTime'
746
761
  property :uri, as: 'uri'
@@ -400,6 +400,41 @@ module Google
400
400
  execute_or_queue_command(command, &block)
401
401
  end
402
402
 
403
+ # Cancels an Execution.
404
+ # @param [String] name
405
+ # Required. The name of the Execution to cancel. Format: projects/`project`/
406
+ # locations/`location`/jobs/`job`/executions/`execution`, where `project` can be
407
+ # project id or number.
408
+ # @param [Google::Apis::RunV2::GoogleCloudRunV2CancelExecutionRequest] google_cloud_run_v2_cancel_execution_request_object
409
+ # @param [String] fields
410
+ # Selector specifying which fields to include in a partial response.
411
+ # @param [String] quota_user
412
+ # Available to use for quota purposes for server-side applications. Can be any
413
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
414
+ # @param [Google::Apis::RequestOptions] options
415
+ # Request-specific options
416
+ #
417
+ # @yield [result, err] Result & error if block supplied
418
+ # @yieldparam result [Google::Apis::RunV2::GoogleLongrunningOperation] parsed result object
419
+ # @yieldparam err [StandardError] error object if request failed
420
+ #
421
+ # @return [Google::Apis::RunV2::GoogleLongrunningOperation]
422
+ #
423
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
424
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
425
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
426
+ def cancel_project_location_job_execution(name, google_cloud_run_v2_cancel_execution_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
427
+ command = make_simple_command(:post, 'v2/{+name}:cancel', options)
428
+ command.request_representation = Google::Apis::RunV2::GoogleCloudRunV2CancelExecutionRequest::Representation
429
+ command.request_object = google_cloud_run_v2_cancel_execution_request_object
430
+ command.response_representation = Google::Apis::RunV2::GoogleLongrunningOperation::Representation
431
+ command.response_class = Google::Apis::RunV2::GoogleLongrunningOperation
432
+ command.params['name'] = name unless name.nil?
433
+ command.query['fields'] = fields unless fields.nil?
434
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
435
+ execute_or_queue_command(command, &block)
436
+ end
437
+
403
438
  # Deletes an Execution.
404
439
  # @param [String] name
405
440
  # Required. The name of the Execution to delete. Format: projects/`project`/
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-run_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.44.0
4
+ version: 0.46.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-07-09 00:00:00.000000000 Z
11
+ date: 2023-08-20 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-run_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-run_v2/v0.44.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-run_v2/v0.46.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-run_v2
63
63
  post_install_message:
64
64
  rdoc_options: []