google-apis-run_v2 0.45.0 → 0.47.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: 57de418f6672504aff717ce59385ff633f45ca34a6a8587282a36cc7e28af28a
4
- data.tar.gz: 58321f7679503b2ccebaa5a06f4d52dba5cb393c16995a753f7854119e9a3d1c
3
+ metadata.gz: db658075ffd12c8b3c060fa6bbcefe914f28cbccbeac0755408ca1c36ddfe513
4
+ data.tar.gz: fe1ba994015c1587fa3894a4eac6a707b2b0dce7fab8ff2ecdff52a87cb6210f
5
5
  SHA512:
6
- metadata.gz: 88c4742431a314c60ed26e49707d3fe08e51799b9977ad89ecf61463d6cfbcbff772ec7b9a1909560b4f3fc19471a67fbf852a55e953c5ae245b6e3ae3743c66
7
- data.tar.gz: e7d71073d10db8deb62584c937477388f5e4e06c80635d827e19dbc9d58505f05ad617eb06b0d21e6af835e78b3f9d5aca8a01636539c2c4fe691a24855b55ac
6
+ metadata.gz: e5c3b42a471636ff16d947974b4c2a242addccbd063044bee0018215269e85ffd3a3040fc3357f31cb5cb552b4ee9e1405d5ae651771dd0aa1798f8e53110a39
7
+ data.tar.gz: a091629fbdde5caf67208c18b5f8213e3ea6473f36dd1e0c8f3ac96da865e22df07b98a9212435b79785b30afeda9c95987c0b14278dcbb1fcfcd037874fcd4b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-run_v2
2
2
 
3
+ ### v0.47.0 (2023-09-17)
4
+
5
+ * Regenerated from discovery document revision 20230910
6
+
7
+ ### v0.46.0 (2023-08-13)
8
+
9
+ * Regenerated from discovery document revision 20230806
10
+
3
11
  ### v0.45.0 (2023-08-06)
4
12
 
5
13
  * Regenerated from discovery document revision 20230730
@@ -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.
@@ -679,7 +707,7 @@ module Google
679
707
  attr_accessor :port
680
708
 
681
709
  # Service is the name of the service to place in the gRPC HealthCheckRequest (
682
- # see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this
710
+ # see https://github.com/grpc/grpc/blob/master/doc/health-checking.md ). If this
683
711
  # is not specified, the default behavior is defined by gRPC.
684
712
  # Corresponds to the JSON property `service`
685
713
  # @return [String]
@@ -1091,6 +1119,37 @@ module Google
1091
1119
  end
1092
1120
  end
1093
1121
 
1122
+ # VPC network settings.
1123
+ class GoogleCloudRunV2NetworkInterface
1124
+ include Google::Apis::Core::Hashable
1125
+
1126
+ # The VPC network name to access to. Defaults to "default" network.
1127
+ # Corresponds to the JSON property `network`
1128
+ # @return [String]
1129
+ attr_accessor :network
1130
+
1131
+ # The VPC subnetwork name to access to. Defaults to the same vaule of network.
1132
+ # Corresponds to the JSON property `subnetwork`
1133
+ # @return [String]
1134
+ attr_accessor :subnetwork
1135
+
1136
+ # Network tags applied to this VPC network.
1137
+ # Corresponds to the JSON property `tags`
1138
+ # @return [Array<String>]
1139
+ attr_accessor :tags
1140
+
1141
+ def initialize(**args)
1142
+ update!(**args)
1143
+ end
1144
+
1145
+ # Update properties of this object
1146
+ def update!(**args)
1147
+ @network = args[:network] if args.key?(:network)
1148
+ @subnetwork = args[:subnetwork] if args.key?(:subnetwork)
1149
+ @tags = args[:tags] if args.key?(:tags)
1150
+ end
1151
+ end
1152
+
1094
1153
  # Probe describes a health check to be performed against a container to
1095
1154
  # determine whether it is alive or ready to receive traffic.
1096
1155
  class GoogleCloudRunV2Probe
@@ -1875,6 +1934,13 @@ module Google
1875
1934
  # @return [Array<Google::Apis::RunV2::GoogleCloudRunV2TrafficTargetStatus>]
1876
1935
  attr_accessor :traffic_statuses
1877
1936
 
1937
+ # Optional. Override the traffic tag threshold limit. Garbage collection will
1938
+ # start cleaning up non-serving tagged traffic targets based on creation item.
1939
+ # The default value is 2000.
1940
+ # Corresponds to the JSON property `trafficTagsCleanupThreshold`
1941
+ # @return [Fixnum]
1942
+ attr_accessor :traffic_tags_cleanup_threshold
1943
+
1878
1944
  # Output only. Server assigned unique identifier for the trigger. The value is a
1879
1945
  # UUID4 string and guaranteed to remain unchanged until the resource is deleted.
1880
1946
  # Corresponds to the JSON property `uid`
@@ -1924,6 +1990,7 @@ module Google
1924
1990
  @terminal_condition = args[:terminal_condition] if args.key?(:terminal_condition)
1925
1991
  @traffic = args[:traffic] if args.key?(:traffic)
1926
1992
  @traffic_statuses = args[:traffic_statuses] if args.key?(:traffic_statuses)
1993
+ @traffic_tags_cleanup_threshold = args[:traffic_tags_cleanup_threshold] if args.key?(:traffic_tags_cleanup_threshold)
1927
1994
  @uid = args[:uid] if args.key?(:uid)
1928
1995
  @update_time = args[:update_time] if args.key?(:update_time)
1929
1996
  @uri = args[:uri] if args.key?(:uri)
@@ -1979,9 +2046,8 @@ module Google
1979
2046
  # @return [Array<Google::Apis::RunV2::GoogleCloudRunV2Container>]
1980
2047
  attr_accessor :containers
1981
2048
 
1982
- # Output only. Represents time when the task was created by the job controller.
1983
- # It is not guaranteed to be set in happens-before order across separate
1984
- # operations.
2049
+ # Output only. Represents time when the task was created by the system. It is
2050
+ # not guaranteed to be set in happens-before order across separate operations.
1985
2051
  # Corresponds to the JSON property `createTime`
1986
2052
  # @return [String]
1987
2053
  attr_accessor :create_time
@@ -2499,6 +2565,11 @@ module Google
2499
2565
  # @return [String]
2500
2566
  attr_accessor :egress
2501
2567
 
2568
+ # VPC network to access to. Currently only single network interface is supported.
2569
+ # Corresponds to the JSON property `networkInterfaces`
2570
+ # @return [Array<Google::Apis::RunV2::GoogleCloudRunV2NetworkInterface>]
2571
+ attr_accessor :network_interfaces
2572
+
2502
2573
  def initialize(**args)
2503
2574
  update!(**args)
2504
2575
  end
@@ -2507,6 +2578,7 @@ module Google
2507
2578
  def update!(**args)
2508
2579
  @connector = args[:connector] if args.key?(:connector)
2509
2580
  @egress = args[:egress] if args.key?(:egress)
2581
+ @network_interfaces = args[:network_interfaces] if args.key?(:network_interfaces)
2510
2582
  end
2511
2583
  end
2512
2584
 
@@ -2668,22 +2740,22 @@ module Google
2668
2740
  # evaluates to `true`. A condition can add constraints based on attributes of
2669
2741
  # the request, the resource, or both. To learn which resources support
2670
2742
  # conditions in their IAM policies, see the [IAM documentation](https://cloud.
2671
- # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
2743
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ``` ` "
2672
2744
  # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
2673
2745
  # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
2674
2746
  # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
2675
2747
  # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
2676
2748
  # ], "condition": ` "title": "expirable access", "description": "Does not grant
2677
2749
  # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
2678
- # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
2679
- # bindings: - members: - user:mike@example.com - group:admins@example.com -
2680
- # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
2681
- # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
2682
- # com role: roles/resourcemanager.organizationViewer condition: title: expirable
2683
- # access description: Does not grant access after Sep 2020 expression: request.
2684
- # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
2685
- # a description of IAM and its features, see the [IAM documentation](https://
2686
- # cloud.google.com/iam/docs/).
2750
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` ``` **YAML
2751
+ # example:** ``` bindings: - members: - user:mike@example.com - group:admins@
2752
+ # example.com - domain:google.com - serviceAccount:my-project-id@appspot.
2753
+ # gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: -
2754
+ # user:eve@example.com role: roles/resourcemanager.organizationViewer condition:
2755
+ # title: expirable access description: Does not grant access after Sep 2020
2756
+ # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag:
2757
+ # BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the
2758
+ # [IAM documentation](https://cloud.google.com/iam/docs/).
2687
2759
  class GoogleIamV1Policy
2688
2760
  include Google::Apis::Core::Hashable
2689
2761
 
@@ -2767,22 +2839,22 @@ module Google
2767
2839
  # evaluates to `true`. A condition can add constraints based on attributes of
2768
2840
  # the request, the resource, or both. To learn which resources support
2769
2841
  # conditions in their IAM policies, see the [IAM documentation](https://cloud.
2770
- # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
2842
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ``` ` "
2771
2843
  # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
2772
2844
  # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
2773
2845
  # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
2774
2846
  # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
2775
2847
  # ], "condition": ` "title": "expirable access", "description": "Does not grant
2776
2848
  # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
2777
- # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
2778
- # bindings: - members: - user:mike@example.com - group:admins@example.com -
2779
- # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
2780
- # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
2781
- # com role: roles/resourcemanager.organizationViewer condition: title: expirable
2782
- # access description: Does not grant access after Sep 2020 expression: request.
2783
- # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
2784
- # a description of IAM and its features, see the [IAM documentation](https://
2785
- # cloud.google.com/iam/docs/).
2849
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` ``` **YAML
2850
+ # example:** ``` bindings: - members: - user:mike@example.com - group:admins@
2851
+ # example.com - domain:google.com - serviceAccount:my-project-id@appspot.
2852
+ # gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: -
2853
+ # user:eve@example.com role: roles/resourcemanager.organizationViewer condition:
2854
+ # title: expirable access description: Does not grant access after Sep 2020
2855
+ # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag:
2856
+ # BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the
2857
+ # [IAM documentation](https://cloud.google.com/iam/docs/).
2786
2858
  # Corresponds to the JSON property `policy`
2787
2859
  # @return [Google::Apis::RunV2::GoogleIamV1Policy]
2788
2860
  attr_accessor :policy
@@ -2907,13 +2979,13 @@ module Google
2907
2979
  # @return [String]
2908
2980
  attr_accessor :name
2909
2981
 
2910
- # The normal response of the operation in case of success. If the original
2911
- # method returns no data on success, such as `Delete`, the response is `google.
2912
- # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
2913
- # the response should be the resource. For other methods, the response should
2914
- # have the type `XxxResponse`, where `Xxx` is the original method name. For
2915
- # example, if the original method name is `TakeSnapshot()`, the inferred
2916
- # response type is `TakeSnapshotResponse`.
2982
+ # The normal, successful response of the operation. If the original method
2983
+ # returns no data on success, such as `Delete`, the response is `google.protobuf.
2984
+ # Empty`. If the original method is standard `Get`/`Create`/`Update`, the
2985
+ # response should be the resource. For other methods, the response should have
2986
+ # the type `XxxResponse`, where `Xxx` is the original method name. For example,
2987
+ # if the original method name is `TakeSnapshot()`, the inferred response type is
2988
+ # `TakeSnapshotResponse`.
2917
2989
  # Corresponds to the JSON property `response`
2918
2990
  # @return [Hash<String,Object>]
2919
2991
  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.45.0"
19
+ GEM_VERSION = "0.47.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 = "20230730"
25
+ REVISION = "20230910"
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
 
@@ -142,6 +148,12 @@ module Google
142
148
  include Google::Apis::Core::JsonObjectSupport
143
149
  end
144
150
 
151
+ class GoogleCloudRunV2NetworkInterface
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
145
157
  class GoogleCloudRunV2Probe
146
158
  class Representation < Google::Apis::Core::JsonRepresentation; end
147
159
 
@@ -342,6 +354,14 @@ module Google
342
354
  end
343
355
  end
344
356
 
357
+ class GoogleCloudRunV2CancelExecutionRequest
358
+ # @private
359
+ class Representation < Google::Apis::Core::JsonRepresentation
360
+ property :etag, as: 'etag'
361
+ property :validate_only, as: 'validateOnly'
362
+ end
363
+ end
364
+
345
365
  class GoogleCloudRunV2CloudSqlInstance
346
366
  # @private
347
367
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -583,6 +603,15 @@ module Google
583
603
  end
584
604
  end
585
605
 
606
+ class GoogleCloudRunV2NetworkInterface
607
+ # @private
608
+ class Representation < Google::Apis::Core::JsonRepresentation
609
+ property :network, as: 'network'
610
+ property :subnetwork, as: 'subnetwork'
611
+ collection :tags, as: 'tags'
612
+ end
613
+ end
614
+
586
615
  class GoogleCloudRunV2Probe
587
616
  # @private
588
617
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -741,6 +770,7 @@ module Google
741
770
 
742
771
  collection :traffic_statuses, as: 'trafficStatuses', class: Google::Apis::RunV2::GoogleCloudRunV2TrafficTargetStatus, decorator: Google::Apis::RunV2::GoogleCloudRunV2TrafficTargetStatus::Representation
743
772
 
773
+ property :traffic_tags_cleanup_threshold, :numeric_string => true, as: 'trafficTagsCleanupThreshold'
744
774
  property :uid, as: 'uid'
745
775
  property :update_time, as: 'updateTime'
746
776
  property :uri, as: 'uri'
@@ -877,6 +907,8 @@ module Google
877
907
  class Representation < Google::Apis::Core::JsonRepresentation
878
908
  property :connector, as: 'connector'
879
909
  property :egress, as: 'egress'
910
+ collection :network_interfaces, as: 'networkInterfaces', class: Google::Apis::RunV2::GoogleCloudRunV2NetworkInterface, decorator: Google::Apis::RunV2::GoogleCloudRunV2NetworkInterface::Representation
911
+
880
912
  end
881
913
  end
882
914
 
@@ -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.45.0
4
+ version: 0.47.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-06 00:00:00.000000000 Z
11
+ date: 2023-09-17 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.45.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-run_v2/v0.47.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: []
@@ -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 Cloud Run Admin API V2