google-apis-run_v2 0.36.0 → 0.37.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: c40d9fe3fbdc1cd4b13b2b5166d1948ecf9703e7af7016462e78be6b63607243
4
- data.tar.gz: 571608e89a8d7685419c3c2e0ce19917272637928f81bf27a58328e3d7e2389a
3
+ metadata.gz: 9b9efcd8403690548cebf82ff079b0cb857d26c58afa85d2ef0eb0d7480a8ce5
4
+ data.tar.gz: 2d927293d0de19de056a0f294b91709aebc0aa36c785823939281bd4b8283619
5
5
  SHA512:
6
- metadata.gz: 7de98082ca34e47c11cc08f40994240f83bbf472123d6f633598864172432d28ca48abb115e61dade59376c570b71d63e858df8c272f8fac80b604ca2d32a728
7
- data.tar.gz: 2757965eb7c9980af78bfb5535ce8dbc28c04f4cd133174dd72caac309f48f9e9b610902983e8363303cc0b0b9bbbe4c8a86d832cae9b3610816bdb954e74031
6
+ metadata.gz: 8569f5aa7ced41a526ff26b7c1adbcce3e6c83ac671678f371efeb6118ad682179c5e6ca87a926cf3fbf1f8a803514ac0fa065c8d2c90ad1e9ddba2c7b1d66f1
7
+ data.tar.gz: 290a1a6d76563beae00b75f284f0b5b4449ff74a5afe9057a9fce905a3839b554de02fa4f275215075910dc5622b32d1429dcf787154c375ba736fa6dbc7f3b5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-run_v2
2
2
 
3
+ ### v0.37.0 (2023-04-23)
4
+
5
+ * Regenerated from discovery document revision 20230416
6
+
3
7
  ### v0.36.0 (2023-03-19)
4
8
 
5
9
  * Regenerated from discovery document revision 20230312
@@ -147,25 +147,13 @@ module Google
147
147
  include Google::Apis::Core::Hashable
148
148
 
149
149
  # Arguments to the entrypoint. The docker image's CMD is used if this is not
150
- # provided. Variable references $(VAR_NAME) are expanded using the container's
151
- # environment. If a variable cannot be resolved, the reference in the input
152
- # string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $
153
- # $, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of
154
- # whether the variable exists or not. More info: https://kubernetes.io/docs/
155
- # tasks/inject-data-application/define-command-argument-container/#running-a-
156
- # command-in-a-shell
150
+ # provided.
157
151
  # Corresponds to the JSON property `args`
158
152
  # @return [Array<String>]
159
153
  attr_accessor :args
160
154
 
161
155
  # Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT
162
- # is used if this is not provided. Variable references $(VAR_NAME) are expanded
163
- # using the container's environment. If a variable cannot be resolved, the
164
- # reference in the input string will be unchanged. The $(VAR_NAME) syntax can be
165
- # escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be
166
- # expanded, regardless of whether the variable exists or not. More info: https://
167
- # kubernetes.io/docs/tasks/inject-data-application/define-command-argument-
168
- # container/#running-a-command-in-a-shell
156
+ # is used if this is not provided.
169
157
  # Corresponds to the JSON property `command`
170
158
  # @return [Array<String>]
171
159
  attr_accessor :command
@@ -177,7 +165,7 @@ module Google
177
165
 
178
166
  # Required. Name of the container image in Dockerhub, Google Artifact Registry,
179
167
  # or Google Container Registry. If the host is not provided, Dockerhub is
180
- # assumed. More info: https://kubernetes.io/docs/concepts/containers/images
168
+ # assumed.
181
169
  # Corresponds to the JSON property `image`
182
170
  # @return [String]
183
171
  attr_accessor :image
@@ -436,8 +424,7 @@ module Google
436
424
  # should run at any given time. Must be <= task_count. The actual number of
437
425
  # tasks running in steady state will be less than this number when ((.spec.
438
426
  # task_count - .status.successful) < .spec.parallelism), i.e. when the work left
439
- # to do is less than max parallelism. More info: https://kubernetes.io/docs/
440
- # concepts/workloads/controllers/jobs-run-to-completion/
427
+ # to do is less than max parallelism.
441
428
  # Corresponds to the JSON property `parallelism`
442
429
  # @return [Fixnum]
443
430
  attr_accessor :parallelism
@@ -479,8 +466,7 @@ module Google
479
466
 
480
467
  # Output only. Specifies the desired number of tasks the execution should run.
481
468
  # Setting to 1 means that parallelism is limited to 1 and the success of that
482
- # task signals the success of the execution. More info: https://kubernetes.io/
483
- # docs/concepts/workloads/controllers/jobs-run-to-completion/
469
+ # task signals the success of the execution.
484
470
  # Corresponds to the JSON property `taskCount`
485
471
  # @return [Fixnum]
486
472
  attr_accessor :task_count
@@ -727,9 +713,9 @@ module Google
727
713
  # and should be preserved when modifying objects. Cloud Run API v2 does not
728
714
  # support annotations with `run.googleapis.com`, `cloud.googleapis.com`, `
729
715
  # serving.knative.dev`, or `autoscaling.knative.dev` namespaces, and they will
730
- # be rejected. All system annotations in v1 now have a corresponding field in v2
731
- # Job. This field follows Kubernetes annotations' namespacing, limits, and rules.
732
- # More info: https://kubernetes.io/docs/user-guide/annotations
716
+ # be rejected on new resources. All system annotations in v1 now have a
717
+ # corresponding field in v2 Job. This field follows Kubernetes annotations'
718
+ # namespacing, limits, and rules.
733
719
  # Corresponds to the JSON property `annotations`
734
720
  # @return [Hash<String,String>]
735
721
  attr_accessor :annotations
@@ -1077,9 +1063,7 @@ module Google
1077
1063
 
1078
1064
  # Number of seconds after the container has started before the probe is
1079
1065
  # initiated. Defaults to 0 seconds. Minimum value is 0. Maximum value for
1080
- # liveness probe is 3600. Maximum value for startup probe is 240. More info:
1081
- # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-
1082
- # probes
1066
+ # liveness probe is 3600. Maximum value for startup probe is 240.
1083
1067
  # Corresponds to the JSON property `initialDelaySeconds`
1084
1068
  # @return [Fixnum]
1085
1069
  attr_accessor :initial_delay_seconds
@@ -1098,8 +1082,6 @@ module Google
1098
1082
 
1099
1083
  # Number of seconds after which the probe times out. Defaults to 1 second.
1100
1084
  # Minimum value is 1. Maximum value is 3600. Must be smaller than period_seconds.
1101
- # More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#
1102
- # container-probes
1103
1085
  # Corresponds to the JSON property `timeoutSeconds`
1104
1086
  # @return [Fixnum]
1105
1087
  attr_accessor :timeout_seconds
@@ -1130,15 +1112,23 @@ module Google
1130
1112
  attr_accessor :cpu_idle
1131
1113
  alias_method :cpu_idle?, :cpu_idle
1132
1114
 
1133
- # Only memory and CPU are supported. Note: The only supported values for CPU are
1134
- # '1', '2', '4', and '8'. Setting 4 CPU requires at least 2Gi of memory. The
1135
- # values of the map is string form of the 'quantity' k8s type: https://github.
1136
- # com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/
1137
- # resource/quantity.go
1115
+ # Only ´memory´ and 'cpu' are supported. Notes: * The only supported values for
1116
+ # CPU are '1', '2', '4', and '8'. Setting 4 CPU requires at least 2Gi of memory.
1117
+ # For more information, go to https://cloud.google.com/run/docs/configuring/cpu.
1118
+ # * For supported 'memory' values and syntax, go to https://cloud.google.com/run/
1119
+ # docs/configuring/memory-limits
1138
1120
  # Corresponds to the JSON property `limits`
1139
1121
  # @return [Hash<String,String>]
1140
1122
  attr_accessor :limits
1141
1123
 
1124
+ # Determines whether CPU should be boosted on startup of a new container
1125
+ # instance above the requested CPU threshold, this can help reduce cold-start
1126
+ # latency.
1127
+ # Corresponds to the JSON property `startupCpuBoost`
1128
+ # @return [Boolean]
1129
+ attr_accessor :startup_cpu_boost
1130
+ alias_method :startup_cpu_boost?, :startup_cpu_boost
1131
+
1142
1132
  def initialize(**args)
1143
1133
  update!(**args)
1144
1134
  end
@@ -1147,6 +1137,7 @@ module Google
1147
1137
  def update!(**args)
1148
1138
  @cpu_idle = args[:cpu_idle] if args.key?(:cpu_idle)
1149
1139
  @limits = args[:limits] if args.key?(:limits)
1140
+ @startup_cpu_boost = args[:startup_cpu_boost] if args.key?(:startup_cpu_boost)
1150
1141
  end
1151
1142
  end
1152
1143
 
@@ -1610,10 +1601,10 @@ module Google
1610
1601
  # arbitrary metadata. They are not queryable and should be preserved when
1611
1602
  # modifying objects. Cloud Run API v2 does not support annotations with `run.
1612
1603
  # googleapis.com`, `cloud.googleapis.com`, `serving.knative.dev`, or `
1613
- # autoscaling.knative.dev` namespaces, and they will be rejected. All system
1614
- # annotations in v1 now have a corresponding field in v2 Service. This field
1615
- # follows Kubernetes annotations' namespacing, limits, and rules. More info:
1616
- # https://kubernetes.io/docs/user-guide/annotations
1604
+ # autoscaling.knative.dev` namespaces, and they will be rejected in new
1605
+ # resources. All system annotations in v1 now have a corresponding field in v2
1606
+ # Service. This field follows Kubernetes annotations' namespacing, limits, and
1607
+ # rules.
1617
1608
  # Corresponds to the JSON property `annotations`
1618
1609
  # @return [Hash<String,String>]
1619
1610
  attr_accessor :annotations
@@ -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.36.0"
19
+ GEM_VERSION = "0.37.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 = "20230312"
25
+ REVISION = "20230416"
26
26
  end
27
27
  end
28
28
  end
@@ -589,6 +589,7 @@ module Google
589
589
  class Representation < Google::Apis::Core::JsonRepresentation
590
590
  property :cpu_idle, as: 'cpuIdle'
591
591
  hash :limits, as: 'limits'
592
+ property :startup_cpu_boost, as: 'startupCpuBoost'
592
593
  end
593
594
  end
594
595
 
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.36.0
4
+ version: 0.37.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-03-19 00:00:00.000000000 Z
11
+ date: 2023-04-23 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.36.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-run_v2/v0.37.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: []