google-apis-run_v2 0.45.0 → 0.46.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/run_v2/classes.rb +65 -30
- data/lib/google/apis/run_v2/gem_version.rb +2 -2
- data/lib/google/apis/run_v2/representations.rb +15 -0
- data/lib/google/apis/run_v2/service.rb +35 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f577033e7d24c7a3958d88e704a9e0df5114909ac8634916911e3398d011f84
|
4
|
+
data.tar.gz: aa633cf2b1921c9d835ee83f16d490fe5ac43a3f4e3d3270b758fc4bf987eeb2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae3a249cec42098e2d2181d6c8f348c23184f4fef8417ae47845dbe91f6821cda9ab40cf643c34c16d4273d7ce128ad35a96289673d5228dd39eb18360d70244
|
7
|
+
data.tar.gz: 35c236ebbd2a691595bbdf4ac1a74bb71d6d69817d1ac531221013302ada0f7762d7c94b653063a1b769950a80283e79480c3c7278db3e344c7041f2237f6f6b
|
data/CHANGELOG.md
CHANGED
@@ -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.
|
@@ -1875,6 +1903,13 @@ module Google
|
|
1875
1903
|
# @return [Array<Google::Apis::RunV2::GoogleCloudRunV2TrafficTargetStatus>]
|
1876
1904
|
attr_accessor :traffic_statuses
|
1877
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
|
+
|
1878
1913
|
# Output only. Server assigned unique identifier for the trigger. The value is a
|
1879
1914
|
# UUID4 string and guaranteed to remain unchanged until the resource is deleted.
|
1880
1915
|
# Corresponds to the JSON property `uid`
|
@@ -1924,6 +1959,7 @@ module Google
|
|
1924
1959
|
@terminal_condition = args[:terminal_condition] if args.key?(:terminal_condition)
|
1925
1960
|
@traffic = args[:traffic] if args.key?(:traffic)
|
1926
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)
|
1927
1963
|
@uid = args[:uid] if args.key?(:uid)
|
1928
1964
|
@update_time = args[:update_time] if args.key?(:update_time)
|
1929
1965
|
@uri = args[:uri] if args.key?(:uri)
|
@@ -1979,9 +2015,8 @@ module Google
|
|
1979
2015
|
# @return [Array<Google::Apis::RunV2::GoogleCloudRunV2Container>]
|
1980
2016
|
attr_accessor :containers
|
1981
2017
|
|
1982
|
-
# Output only. Represents time when the task was created by the
|
1983
|
-
#
|
1984
|
-
# 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.
|
1985
2020
|
# Corresponds to the JSON property `createTime`
|
1986
2021
|
# @return [String]
|
1987
2022
|
attr_accessor :create_time
|
@@ -2668,22 +2703,22 @@ module Google
|
|
2668
2703
|
# evaluates to `true`. A condition can add constraints based on attributes of
|
2669
2704
|
# the request, the resource, or both. To learn which resources support
|
2670
2705
|
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
2671
|
-
# google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
|
2706
|
+
# google.com/iam/help/conditions/resource-policies). **JSON example:** ``` ` "
|
2672
2707
|
# bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
|
2673
2708
|
# "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
|
2674
2709
|
# serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
|
2675
2710
|
# roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
|
2676
2711
|
# ], "condition": ` "title": "expirable access", "description": "Does not grant
|
2677
2712
|
# access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
|
2678
|
-
# 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML
|
2679
|
-
# bindings: - members: - user:mike@example.com - group:admins@
|
2680
|
-
# domain:google.com - serviceAccount:my-project-id@appspot.
|
2681
|
-
# role: roles/resourcemanager.organizationAdmin - members: -
|
2682
|
-
# com role: roles/resourcemanager.organizationViewer condition:
|
2683
|
-
# access description: Does not grant access after Sep 2020
|
2684
|
-
# time < timestamp('2020-10-01T00:00:00.000Z') etag:
|
2685
|
-
# a description of IAM and its features, see the
|
2686
|
-
# 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/).
|
2687
2722
|
class GoogleIamV1Policy
|
2688
2723
|
include Google::Apis::Core::Hashable
|
2689
2724
|
|
@@ -2767,22 +2802,22 @@ module Google
|
|
2767
2802
|
# evaluates to `true`. A condition can add constraints based on attributes of
|
2768
2803
|
# the request, the resource, or both. To learn which resources support
|
2769
2804
|
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
2770
|
-
# google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
|
2805
|
+
# google.com/iam/help/conditions/resource-policies). **JSON example:** ``` ` "
|
2771
2806
|
# bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
|
2772
2807
|
# "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
|
2773
2808
|
# serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
|
2774
2809
|
# roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
|
2775
2810
|
# ], "condition": ` "title": "expirable access", "description": "Does not grant
|
2776
2811
|
# access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
|
2777
|
-
# 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML
|
2778
|
-
# bindings: - members: - user:mike@example.com - group:admins@
|
2779
|
-
# domain:google.com - serviceAccount:my-project-id@appspot.
|
2780
|
-
# role: roles/resourcemanager.organizationAdmin - members: -
|
2781
|
-
# com role: roles/resourcemanager.organizationViewer condition:
|
2782
|
-
# access description: Does not grant access after Sep 2020
|
2783
|
-
# time < timestamp('2020-10-01T00:00:00.000Z') etag:
|
2784
|
-
# a description of IAM and its features, see the
|
2785
|
-
# 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/).
|
2786
2821
|
# Corresponds to the JSON property `policy`
|
2787
2822
|
# @return [Google::Apis::RunV2::GoogleIamV1Policy]
|
2788
2823
|
attr_accessor :policy
|
@@ -2907,13 +2942,13 @@ module Google
|
|
2907
2942
|
# @return [String]
|
2908
2943
|
attr_accessor :name
|
2909
2944
|
|
2910
|
-
# The normal response of the operation
|
2911
|
-
#
|
2912
|
-
#
|
2913
|
-
#
|
2914
|
-
#
|
2915
|
-
#
|
2916
|
-
#
|
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`.
|
2917
2952
|
# Corresponds to the JSON property `response`
|
2918
2953
|
# @return [Hash<String,Object>]
|
2919
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.
|
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 = "
|
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.
|
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-08-
|
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.
|
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: []
|