google-apis-run_v2 0.21.0 → 0.22.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: 3652b74b45ea8e6313f92ffc2b025db8cf6e942ee25c7ed7abc007d89b5be195
4
- data.tar.gz: 51f5bacbda470b7e649009ae9d17601086cea475743dea4805bc27d1dc192e73
3
+ metadata.gz: 5699a95b4949fdfe129e737bd5c1c17c42b74d18d21232f56ebddb6cf5292a34
4
+ data.tar.gz: 34358ea336b144bb50dd7bd1b17110ebc531f7f4b167be8d00c79a2c0a621ec6
5
5
  SHA512:
6
- metadata.gz: 7277adadc77745ccaf3e5aa14e0056694dfc46ea5678e5678aa225f48a2ad0888043e7ba992d61360e434b174c299b19bec9cdb38ece9f1edb4b66a475d4cc22
7
- data.tar.gz: 804604938108dfce99c13704ae407c991da63331d93a7e9121a0a48e79d8eec4f7095fa226155c456f8cd914f03f498a7a2d5b6de9ee8cf828f2cf9d54b71091
6
+ metadata.gz: 303c06ccb4745a9b85bc08410ac636d708bde11e66a97c6d8cf4daca0009c6aa7138d2fafc6a1f43488560bf2cdcb484bfe5bc42bc90ac82c753b21cef1c2ff3
7
+ data.tar.gz: d5b108e48147fc2126eab9728c2667da135a2c77e93822728238aa483120a20195344101aba31d5ecfeff52657894357314a8e8423d535046ce19409a74f0132
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-run_v2
2
2
 
3
+ ### v0.22.0 (2022-09-28)
4
+
5
+ * Regenerated from discovery document revision 20220918
6
+ * Regenerated using generator version 0.10.0
7
+
3
8
  ### v0.21.0 (2022-09-01)
4
9
 
5
10
  * Regenerated from discovery document revision 20220828
@@ -180,6 +180,12 @@ module Google
180
180
  # @return [String]
181
181
  attr_accessor :image
182
182
 
183
+ # Probe describes a health check to be performed against a container to
184
+ # determine whether it is alive or ready to receive traffic.
185
+ # Corresponds to the JSON property `livenessProbe`
186
+ # @return [Google::Apis::RunV2::GoogleCloudRunV2Probe]
187
+ attr_accessor :liveness_probe
188
+
183
189
  # Name of the container specified as a DNS_LABEL.
184
190
  # Corresponds to the JSON property `name`
185
191
  # @return [String]
@@ -199,6 +205,12 @@ module Google
199
205
  # @return [Google::Apis::RunV2::GoogleCloudRunV2ResourceRequirements]
200
206
  attr_accessor :resources
201
207
 
208
+ # Probe describes a health check to be performed against a container to
209
+ # determine whether it is alive or ready to receive traffic.
210
+ # Corresponds to the JSON property `startupProbe`
211
+ # @return [Google::Apis::RunV2::GoogleCloudRunV2Probe]
212
+ attr_accessor :startup_probe
213
+
202
214
  # Volume to mount into the container's filesystem.
203
215
  # Corresponds to the JSON property `volumeMounts`
204
216
  # @return [Array<Google::Apis::RunV2::GoogleCloudRunV2VolumeMount>]
@@ -220,9 +232,11 @@ module Google
220
232
  @command = args[:command] if args.key?(:command)
221
233
  @env = args[:env] if args.key?(:env)
222
234
  @image = args[:image] if args.key?(:image)
235
+ @liveness_probe = args[:liveness_probe] if args.key?(:liveness_probe)
223
236
  @name = args[:name] if args.key?(:name)
224
237
  @ports = args[:ports] if args.key?(:ports)
225
238
  @resources = args[:resources] if args.key?(:resources)
239
+ @startup_probe = args[:startup_probe] if args.key?(:startup_probe)
226
240
  @volume_mounts = args[:volume_mounts] if args.key?(:volume_mounts)
227
241
  @working_dir = args[:working_dir] if args.key?(:working_dir)
228
242
  end
@@ -583,6 +597,96 @@ module Google
583
597
  end
584
598
  end
585
599
 
600
+ # GRPCAction describes an action involving a GRPC port.
601
+ class GoogleCloudRunV2GrpcAction
602
+ include Google::Apis::Core::Hashable
603
+
604
+ # Port number of the gRPC service. Number must be in the range 1 to 65535.
605
+ # Corresponds to the JSON property `port`
606
+ # @return [Fixnum]
607
+ attr_accessor :port
608
+
609
+ # Service is the name of the service to place in the gRPC HealthCheckRequest (
610
+ # see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this
611
+ # is not specified, the default behavior is defined by gRPC.
612
+ # Corresponds to the JSON property `service`
613
+ # @return [String]
614
+ attr_accessor :service
615
+
616
+ def initialize(**args)
617
+ update!(**args)
618
+ end
619
+
620
+ # Update properties of this object
621
+ def update!(**args)
622
+ @port = args[:port] if args.key?(:port)
623
+ @service = args[:service] if args.key?(:service)
624
+ end
625
+ end
626
+
627
+ # HTTPGetAction describes an action based on HTTP Get requests.
628
+ class GoogleCloudRunV2HttpGetAction
629
+ include Google::Apis::Core::Hashable
630
+
631
+ # Host name to connect to, defaults to the pod IP. You probably want to set "
632
+ # Host" in httpHeaders instead.
633
+ # Corresponds to the JSON property `host`
634
+ # @return [String]
635
+ attr_accessor :host
636
+
637
+ # Custom headers to set in the request. HTTP allows repeated headers.
638
+ # Corresponds to the JSON property `httpHeaders`
639
+ # @return [Array<Google::Apis::RunV2::GoogleCloudRunV2HttpHeader>]
640
+ attr_accessor :http_headers
641
+
642
+ # Path to access on the HTTP server. Defaults to '/'.
643
+ # Corresponds to the JSON property `path`
644
+ # @return [String]
645
+ attr_accessor :path
646
+
647
+ # Scheme to use for connecting to the host. Defaults to HTTP.
648
+ # Corresponds to the JSON property `scheme`
649
+ # @return [String]
650
+ attr_accessor :scheme
651
+
652
+ def initialize(**args)
653
+ update!(**args)
654
+ end
655
+
656
+ # Update properties of this object
657
+ def update!(**args)
658
+ @host = args[:host] if args.key?(:host)
659
+ @http_headers = args[:http_headers] if args.key?(:http_headers)
660
+ @path = args[:path] if args.key?(:path)
661
+ @scheme = args[:scheme] if args.key?(:scheme)
662
+ end
663
+ end
664
+
665
+ # HTTPHeader describes a custom header to be used in HTTP probes
666
+ class GoogleCloudRunV2HttpHeader
667
+ include Google::Apis::Core::Hashable
668
+
669
+ # Required. The header field name
670
+ # Corresponds to the JSON property `name`
671
+ # @return [String]
672
+ attr_accessor :name
673
+
674
+ # Required. The header field value
675
+ # Corresponds to the JSON property `value`
676
+ # @return [String]
677
+ attr_accessor :value
678
+
679
+ def initialize(**args)
680
+ update!(**args)
681
+ end
682
+
683
+ # Update properties of this object
684
+ def update!(**args)
685
+ @name = args[:name] if args.key?(:name)
686
+ @value = args[:value] if args.key?(:value)
687
+ end
688
+ end
689
+
586
690
  # Job represents the configuration of a single job. A job an immutable resource
587
691
  # that references a container image which is run to completion.
588
692
  class GoogleCloudRunV2Job
@@ -906,6 +1010,72 @@ module Google
906
1010
  end
907
1011
  end
908
1012
 
1013
+ # Probe describes a health check to be performed against a container to
1014
+ # determine whether it is alive or ready to receive traffic.
1015
+ class GoogleCloudRunV2Probe
1016
+ include Google::Apis::Core::Hashable
1017
+
1018
+ # Minimum consecutive failures for the probe to be considered failed after
1019
+ # having succeeded. Defaults to 3. Minimum value is 1.
1020
+ # Corresponds to the JSON property `failureThreshold`
1021
+ # @return [Fixnum]
1022
+ attr_accessor :failure_threshold
1023
+
1024
+ # GRPCAction describes an action involving a GRPC port.
1025
+ # Corresponds to the JSON property `grpc`
1026
+ # @return [Google::Apis::RunV2::GoogleCloudRunV2GrpcAction]
1027
+ attr_accessor :grpc
1028
+
1029
+ # HTTPGetAction describes an action based on HTTP Get requests.
1030
+ # Corresponds to the JSON property `httpGet`
1031
+ # @return [Google::Apis::RunV2::GoogleCloudRunV2HttpGetAction]
1032
+ attr_accessor :http_get
1033
+
1034
+ # Number of seconds after the container has started before the probe is
1035
+ # initiated. Defaults to 0 seconds. Minimum value is 0. Maximum value for
1036
+ # liveness probe is 3600. Maximum value for startup probe is 240. More info:
1037
+ # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-
1038
+ # probes
1039
+ # Corresponds to the JSON property `initialDelaySeconds`
1040
+ # @return [Fixnum]
1041
+ attr_accessor :initial_delay_seconds
1042
+
1043
+ # How often (in seconds) to perform the probe. Default to 10 seconds. Minimum
1044
+ # value is 1. Maximum value for liveness probe is 3600. Maximum value for
1045
+ # startup probe is 240. Must be greater or equal than timeout_seconds.
1046
+ # Corresponds to the JSON property `periodSeconds`
1047
+ # @return [Fixnum]
1048
+ attr_accessor :period_seconds
1049
+
1050
+ # TCPSocketAction describes an action based on opening a socket
1051
+ # Corresponds to the JSON property `tcpSocket`
1052
+ # @return [Google::Apis::RunV2::GoogleCloudRunV2TcpSocketAction]
1053
+ attr_accessor :tcp_socket
1054
+
1055
+ # Number of seconds after which the probe times out. Defaults to 1 second.
1056
+ # Minimum value is 1. Maximum value is 3600. Must be smaller than period_seconds.
1057
+ # More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#
1058
+ # container-probes
1059
+ # Corresponds to the JSON property `timeoutSeconds`
1060
+ # @return [Fixnum]
1061
+ attr_accessor :timeout_seconds
1062
+
1063
+ def initialize(**args)
1064
+ update!(**args)
1065
+ end
1066
+
1067
+ # Update properties of this object
1068
+ def update!(**args)
1069
+ @failure_threshold = args[:failure_threshold] if args.key?(:failure_threshold)
1070
+ @grpc = args[:grpc] if args.key?(:grpc)
1071
+ @http_get = args[:http_get] if args.key?(:http_get)
1072
+ @initial_delay_seconds = args[:initial_delay_seconds] if args.key?(:initial_delay_seconds)
1073
+ @period_seconds = args[:period_seconds] if args.key?(:period_seconds)
1074
+ @tcp_socket = args[:tcp_socket] if args.key?(:tcp_socket)
1075
+ @timeout_seconds = args[:timeout_seconds] if args.key?(:timeout_seconds)
1076
+ end
1077
+ end
1078
+
909
1079
  # ResourceRequirements describes the compute resource requirements.
910
1080
  class GoogleCloudRunV2ResourceRequirements
911
1081
  include Google::Apis::Core::Hashable
@@ -1600,6 +1770,34 @@ module Google
1600
1770
  end
1601
1771
  end
1602
1772
 
1773
+ # TCPSocketAction describes an action based on opening a socket
1774
+ class GoogleCloudRunV2TcpSocketAction
1775
+ include Google::Apis::Core::Hashable
1776
+
1777
+ # Host name to connect to, defaults to the pod IP.
1778
+ # Corresponds to the JSON property `host`
1779
+ # @return [String]
1780
+ attr_accessor :host
1781
+
1782
+ # Number or name of the port to access on the container. Number must be in the
1783
+ # range 1 to 65535. Name must be an IANA_SVC_NAME. This field is currently
1784
+ # limited to integer types only because of proto's inability to properly support
1785
+ # the IntOrString golang type.
1786
+ # Corresponds to the JSON property `port`
1787
+ # @return [Fixnum]
1788
+ attr_accessor :port
1789
+
1790
+ def initialize(**args)
1791
+ update!(**args)
1792
+ end
1793
+
1794
+ # Update properties of this object
1795
+ def update!(**args)
1796
+ @host = args[:host] if args.key?(:host)
1797
+ @port = args[:port] if args.key?(:port)
1798
+ end
1799
+ end
1800
+
1603
1801
  # Task represents a single run of a container to completion.
1604
1802
  class GoogleCloudRunV2Task
1605
1803
  include Google::Apis::Core::Hashable
@@ -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.21.0"
19
+ GEM_VERSION = "0.22.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.9.0"
22
+ GENERATOR_VERSION = "0.10.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220828"
25
+ REVISION = "20220918"
26
26
  end
27
27
  end
28
28
  end
@@ -82,6 +82,24 @@ module Google
82
82
  include Google::Apis::Core::JsonObjectSupport
83
83
  end
84
84
 
85
+ class GoogleCloudRunV2GrpcAction
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class GoogleCloudRunV2HttpGetAction
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class GoogleCloudRunV2HttpHeader
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
85
103
  class GoogleCloudRunV2Job
86
104
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
105
 
@@ -118,6 +136,12 @@ module Google
118
136
  include Google::Apis::Core::JsonObjectSupport
119
137
  end
120
138
 
139
+ class GoogleCloudRunV2Probe
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
121
145
  class GoogleCloudRunV2ResourceRequirements
122
146
  class Representation < Google::Apis::Core::JsonRepresentation; end
123
147
 
@@ -166,6 +190,12 @@ module Google
166
190
  include Google::Apis::Core::JsonObjectSupport
167
191
  end
168
192
 
193
+ class GoogleCloudRunV2TcpSocketAction
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
169
199
  class GoogleCloudRunV2Task
170
200
  class Representation < Google::Apis::Core::JsonRepresentation; end
171
201
 
@@ -329,11 +359,15 @@ module Google
329
359
  collection :env, as: 'env', class: Google::Apis::RunV2::GoogleCloudRunV2EnvVar, decorator: Google::Apis::RunV2::GoogleCloudRunV2EnvVar::Representation
330
360
 
331
361
  property :image, as: 'image'
362
+ property :liveness_probe, as: 'livenessProbe', class: Google::Apis::RunV2::GoogleCloudRunV2Probe, decorator: Google::Apis::RunV2::GoogleCloudRunV2Probe::Representation
363
+
332
364
  property :name, as: 'name'
333
365
  collection :ports, as: 'ports', class: Google::Apis::RunV2::GoogleCloudRunV2ContainerPort, decorator: Google::Apis::RunV2::GoogleCloudRunV2ContainerPort::Representation
334
366
 
335
367
  property :resources, as: 'resources', class: Google::Apis::RunV2::GoogleCloudRunV2ResourceRequirements, decorator: Google::Apis::RunV2::GoogleCloudRunV2ResourceRequirements::Representation
336
368
 
369
+ property :startup_probe, as: 'startupProbe', class: Google::Apis::RunV2::GoogleCloudRunV2Probe, decorator: Google::Apis::RunV2::GoogleCloudRunV2Probe::Representation
370
+
337
371
  collection :volume_mounts, as: 'volumeMounts', class: Google::Apis::RunV2::GoogleCloudRunV2VolumeMount, decorator: Google::Apis::RunV2::GoogleCloudRunV2VolumeMount::Representation
338
372
 
339
373
  property :working_dir, as: 'workingDir'
@@ -418,6 +452,33 @@ module Google
418
452
  end
419
453
  end
420
454
 
455
+ class GoogleCloudRunV2GrpcAction
456
+ # @private
457
+ class Representation < Google::Apis::Core::JsonRepresentation
458
+ property :port, as: 'port'
459
+ property :service, as: 'service'
460
+ end
461
+ end
462
+
463
+ class GoogleCloudRunV2HttpGetAction
464
+ # @private
465
+ class Representation < Google::Apis::Core::JsonRepresentation
466
+ property :host, as: 'host'
467
+ collection :http_headers, as: 'httpHeaders', class: Google::Apis::RunV2::GoogleCloudRunV2HttpHeader, decorator: Google::Apis::RunV2::GoogleCloudRunV2HttpHeader::Representation
468
+
469
+ property :path, as: 'path'
470
+ property :scheme, as: 'scheme'
471
+ end
472
+ end
473
+
474
+ class GoogleCloudRunV2HttpHeader
475
+ # @private
476
+ class Representation < Google::Apis::Core::JsonRepresentation
477
+ property :name, as: 'name'
478
+ property :value, as: 'value'
479
+ end
480
+ end
481
+
421
482
  class GoogleCloudRunV2Job
422
483
  # @private
423
484
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -497,6 +558,22 @@ module Google
497
558
  end
498
559
  end
499
560
 
561
+ class GoogleCloudRunV2Probe
562
+ # @private
563
+ class Representation < Google::Apis::Core::JsonRepresentation
564
+ property :failure_threshold, as: 'failureThreshold'
565
+ property :grpc, as: 'grpc', class: Google::Apis::RunV2::GoogleCloudRunV2GrpcAction, decorator: Google::Apis::RunV2::GoogleCloudRunV2GrpcAction::Representation
566
+
567
+ property :http_get, as: 'httpGet', class: Google::Apis::RunV2::GoogleCloudRunV2HttpGetAction, decorator: Google::Apis::RunV2::GoogleCloudRunV2HttpGetAction::Representation
568
+
569
+ property :initial_delay_seconds, as: 'initialDelaySeconds'
570
+ property :period_seconds, as: 'periodSeconds'
571
+ property :tcp_socket, as: 'tcpSocket', class: Google::Apis::RunV2::GoogleCloudRunV2TcpSocketAction, decorator: Google::Apis::RunV2::GoogleCloudRunV2TcpSocketAction::Representation
572
+
573
+ property :timeout_seconds, as: 'timeoutSeconds'
574
+ end
575
+ end
576
+
500
577
  class GoogleCloudRunV2ResourceRequirements
501
578
  # @private
502
579
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -637,6 +714,14 @@ module Google
637
714
  end
638
715
  end
639
716
 
717
+ class GoogleCloudRunV2TcpSocketAction
718
+ # @private
719
+ class Representation < Google::Apis::Core::JsonRepresentation
720
+ property :host, as: 'host'
721
+ property :port, as: 'port'
722
+ end
723
+ end
724
+
640
725
  class GoogleCloudRunV2Task
641
726
  # @private
642
727
  class Representation < Google::Apis::Core::JsonRepresentation
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.21.0
4
+ version: 0.22.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: 2022-09-05 00:00:00.000000000 Z
11
+ date: 2022-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.7'
19
+ version: 0.9.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.7'
29
+ version: 0.9.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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.21.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-run_v2/v0.22.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: []