google-apis-run_v1 0.47.0 → 0.49.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: f803e469ed8a6583992520db54a7f7da6ab955a3af2f2b9fadf28a21ee9f030c
4
- data.tar.gz: d7cc71deb1e11f04799a77b2c944043a8ed2c3594e94acae1e3113835460e18d
3
+ metadata.gz: 5e10b5e737291cfff65bbd1f80643e93d1a4e156967f6186291ee9173feaf396
4
+ data.tar.gz: 4a82e2a8dcaf3083f6db757bf5fdfec79ec040ec4bd0abdf7bf842e3b92e4b2e
5
5
  SHA512:
6
- metadata.gz: 0dcae7392ea14a90ce14771e3284e672d85f6ce0b46ba639ccbbf1d94c57041a159ecf66f752b7166e05d825fcfe629cd210bcb2ad6a67fe76ee08e4b83fbe45
7
- data.tar.gz: 3c83b476ea98ba6bddb5ab96b933d6e01f3188f5fd21a7821b150299edf74a3584fd2b5d7e5dd5eaaa5d899ba08e75d7812dfbc8cdc6d3aa91b5650c5454fbbb
6
+ metadata.gz: d1b0796639397eb877ece4297042d4a887ee86b3b1e8eb663b84a25b76b015cf3ed9b633cc9a49142c3dd11a6c73a23742fbbbf0fd9a5b65f7d753b099e47473
7
+ data.tar.gz: 297dd7c965c41db445f9972630c25206077085d76c5702b9f0d26c65e04a516ec61d05f02c335ebff94a813b000c1ae68bb675bdc1c3ca58617d35a1ce3a7b42
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-run_v1
2
2
 
3
+ ### v0.49.0 (2023-04-16)
4
+
5
+ * Regenerated from discovery document revision 20230409
6
+
7
+ ### v0.48.0 (2023-03-26)
8
+
9
+ * Regenerated from discovery document revision 20230305
10
+
3
11
  ### v0.47.0 (2023-02-26)
4
12
 
5
13
  * Regenerated from discovery document revision 20230219
@@ -629,12 +629,45 @@ module Google
629
629
  end
630
630
  end
631
631
 
632
+ # Per container override specification.
633
+ class ContainerOverride
634
+ include Google::Apis::Core::Hashable
635
+
636
+ # Arguments to the entrypoint. Will replace existing args for override.
637
+ # Corresponds to the JSON property `args`
638
+ # @return [Array<String>]
639
+ attr_accessor :args
640
+
641
+ # List of environment variables to set in the container. Will be merged with
642
+ # existing env for override.
643
+ # Corresponds to the JSON property `env`
644
+ # @return [Array<Google::Apis::RunV1::EnvVar>]
645
+ attr_accessor :env
646
+
647
+ # The name of the container specified as a DNS_LABEL.
648
+ # Corresponds to the JSON property `name`
649
+ # @return [String]
650
+ attr_accessor :name
651
+
652
+ def initialize(**args)
653
+ update!(**args)
654
+ end
655
+
656
+ # Update properties of this object
657
+ def update!(**args)
658
+ @args = args[:args] if args.key?(:args)
659
+ @env = args[:env] if args.key?(:env)
660
+ @name = args[:name] if args.key?(:name)
661
+ end
662
+ end
663
+
632
664
  # ContainerPort represents a network port in a single container.
633
665
  class ContainerPort
634
666
  include Google::Apis::Core::Hashable
635
667
 
636
- # Port number the container listens on. This must be a valid port number, 0 < x <
637
- # 65536.
668
+ # Port number the container listens on. If present, this must be a valid port
669
+ # number, 0 < x < 65536. If not present, it will default to port 8080. For more
670
+ # information, see https://cloud.google.com/run/docs/container-contract#port
638
671
  # Corresponds to the JSON property `containerPort`
639
672
  # @return [Fixnum]
640
673
  attr_accessor :container_port
@@ -2072,19 +2105,20 @@ module Google
2072
2105
  # Service, Job, * `run.googleapis.com/binary-authorization`: Service, Job,
2073
2106
  # Execution. * `run.googleapis.com/client-name`: All resources. * `run.
2074
2107
  # googleapis.com/cloudsql-instances`: Revision, Execution. * `run.googleapis.com/
2075
- # cpu-throttling`: Revision. * `run.googleapis.com/custom-audiences`: Service. *
2076
- # `run.googleapis.com/description`: Service. * `run.googleapis.com/encryption-
2077
- # key-shutdown-hours`: Revision * `run.googleapis.com/encryption-key`: Revision,
2078
- # Execution. * `run.googleapis.com/execution-environment`: Revision, Execution. *
2079
- # `run.googleapis.com/gc-traffic-tags`: Service. * `run.googleapis.com/ingress`:
2080
- # Service. * `run.googleapis.com/network-interfaces`: Revision, Execution. * `
2081
- # run.googleapis.com/post-key-revocation-action-type`: Revision. * `run.
2082
- # googleapis.com/secrets`: Revision, Execution. * `run.googleapis.com/secure-
2083
- # session-agent`: Revision. * `run.googleapis.com/sessionAffinity`: Revision. * `
2084
- # run.googleapis.com/startup-cpu-boost`: Revision. * `run.googleapis.com/vpc-
2085
- # access-connector`: Revision, Execution. * `run.googleapis.com/vpc-access-
2086
- # egress`: Revision, Execution. Execution. More info: https://kubernetes.io/docs/
2087
- # user-guide/annotations
2108
+ # container-dependencies`: Revision. * `run.googleapis.com/cpu-throttling`:
2109
+ # Revision. * `run.googleapis.com/custom-audiences`: Service. * `run.googleapis.
2110
+ # com/description`: Service. * `run.googleapis.com/encryption-key-shutdown-hours`
2111
+ # : Revision * `run.googleapis.com/encryption-key`: Revision, Execution. * `run.
2112
+ # googleapis.com/execution-environment`: Revision, Execution. * `run.googleapis.
2113
+ # com/gc-traffic-tags`: Service. * `run.googleapis.com/ingress`: Service. * `run.
2114
+ # googleapis.com/launch-stage`: Service, Job. * `run.googleapis.com/network-
2115
+ # interfaces`: Revision, Execution. * `run.googleapis.com/post-key-revocation-
2116
+ # action-type`: Revision. * `run.googleapis.com/secrets`: Revision, Execution. *
2117
+ # `run.googleapis.com/secure-session-agent`: Revision. * `run.googleapis.com/
2118
+ # sessionAffinity`: Revision. * `run.googleapis.com/startup-cpu-boost`: Revision.
2119
+ # * `run.googleapis.com/vpc-access-connector`: Revision, Execution. * `run.
2120
+ # googleapis.com/vpc-access-egress`: Revision, Execution. Execution. More info:
2121
+ # https://kubernetes.io/docs/user-guide/annotations
2088
2122
  # Corresponds to the JSON property `annotations`
2089
2123
  # @return [Hash<String,String>]
2090
2124
  attr_accessor :annotations
@@ -2201,6 +2235,40 @@ module Google
2201
2235
  end
2202
2236
  end
2203
2237
 
2238
+ # RunJob Overrides that contains Execution fields to be overridden on the go.
2239
+ class Overrides
2240
+ include Google::Apis::Core::Hashable
2241
+
2242
+ # Per container override specification.
2243
+ # Corresponds to the JSON property `containerOverrides`
2244
+ # @return [Array<Google::Apis::RunV1::ContainerOverride>]
2245
+ attr_accessor :container_overrides
2246
+
2247
+ # The desired number of tasks the execution should run. Will replace existing
2248
+ # task_count value.
2249
+ # Corresponds to the JSON property `taskCount`
2250
+ # @return [Fixnum]
2251
+ attr_accessor :task_count
2252
+
2253
+ # Duration in seconds the task may be active before the system will actively try
2254
+ # to mark it failed and kill associated containers. Will replace existing
2255
+ # timeout_seconds value.
2256
+ # Corresponds to the JSON property `timeoutSeconds`
2257
+ # @return [Fixnum]
2258
+ attr_accessor :timeout_seconds
2259
+
2260
+ def initialize(**args)
2261
+ update!(**args)
2262
+ end
2263
+
2264
+ # Update properties of this object
2265
+ def update!(**args)
2266
+ @container_overrides = args[:container_overrides] if args.key?(:container_overrides)
2267
+ @task_count = args[:task_count] if args.key?(:task_count)
2268
+ @timeout_seconds = args[:timeout_seconds] if args.key?(:timeout_seconds)
2269
+ end
2270
+ end
2271
+
2204
2272
  # This is not supported or used by Cloud Run.
2205
2273
  class OwnerReference
2206
2274
  include Google::Apis::Core::Hashable
@@ -2822,12 +2890,18 @@ module Google
2822
2890
  class RunJobRequest
2823
2891
  include Google::Apis::Core::Hashable
2824
2892
 
2893
+ # RunJob Overrides that contains Execution fields to be overridden on the go.
2894
+ # Corresponds to the JSON property `overrides`
2895
+ # @return [Google::Apis::RunV1::Overrides]
2896
+ attr_accessor :overrides
2897
+
2825
2898
  def initialize(**args)
2826
2899
  update!(**args)
2827
2900
  end
2828
2901
 
2829
2902
  # Update properties of this object
2830
2903
  def update!(**args)
2904
+ @overrides = args[:overrides] if args.key?(:overrides)
2831
2905
  end
2832
2906
  end
2833
2907
 
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module RunV1
18
18
  # Version of the google-apis-run_v1 gem
19
- GEM_VERSION = "0.47.0"
19
+ GEM_VERSION = "0.49.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 = "20230219"
25
+ REVISION = "20230409"
26
26
  end
27
27
  end
28
28
  end
@@ -100,6 +100,12 @@ module Google
100
100
  include Google::Apis::Core::JsonObjectSupport
101
101
  end
102
102
 
103
+ class ContainerOverride
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
103
109
  class ContainerPort
104
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
111
 
@@ -322,6 +328,12 @@ module Google
322
328
  include Google::Apis::Core::JsonObjectSupport
323
329
  end
324
330
 
331
+ class Overrides
332
+ class Representation < Google::Apis::Core::JsonRepresentation; end
333
+
334
+ include Google::Apis::Core::JsonObjectSupport
335
+ end
336
+
325
337
  class OwnerReference
326
338
  class Representation < Google::Apis::Core::JsonRepresentation; end
327
339
 
@@ -677,6 +689,16 @@ module Google
677
689
  end
678
690
  end
679
691
 
692
+ class ContainerOverride
693
+ # @private
694
+ class Representation < Google::Apis::Core::JsonRepresentation
695
+ collection :args, as: 'args'
696
+ collection :env, as: 'env', class: Google::Apis::RunV1::EnvVar, decorator: Google::Apis::RunV1::EnvVar::Representation
697
+
698
+ property :name, as: 'name'
699
+ end
700
+ end
701
+
680
702
  class ContainerPort
681
703
  # @private
682
704
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1093,6 +1115,16 @@ module Google
1093
1115
  end
1094
1116
  end
1095
1117
 
1118
+ class Overrides
1119
+ # @private
1120
+ class Representation < Google::Apis::Core::JsonRepresentation
1121
+ collection :container_overrides, as: 'containerOverrides', class: Google::Apis::RunV1::ContainerOverride, decorator: Google::Apis::RunV1::ContainerOverride::Representation
1122
+
1123
+ property :task_count, as: 'taskCount'
1124
+ property :timeout_seconds, as: 'timeoutSeconds'
1125
+ end
1126
+ end
1127
+
1096
1128
  class OwnerReference
1097
1129
  # @private
1098
1130
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1244,6 +1276,8 @@ module Google
1244
1276
  class RunJobRequest
1245
1277
  # @private
1246
1278
  class Representation < Google::Apis::Core::JsonRepresentation
1279
+ property :overrides, as: 'overrides', class: Google::Apis::RunV1::Overrides, decorator: Google::Apis::RunV1::Overrides::Representation
1280
+
1247
1281
  end
1248
1282
  end
1249
1283
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-run_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.47.0
4
+ version: 0.49.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-02-26 00:00:00.000000000 Z
11
+ date: 2023-04-16 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_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-run_v1/v0.47.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-run_v1/v0.49.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-run_v1
63
63
  post_install_message:
64
64
  rdoc_options: []