google-apis-run_v2 0.35.0 → 0.37.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: dfe7af20f29ca7113905d6646724e4458dd5f074145d7a0cb383787f4aea59e1
4
- data.tar.gz: 6a16f9880ca16a5c006f830015970121518127f38a6e2be155b928eee030bb52
3
+ metadata.gz: 9b9efcd8403690548cebf82ff079b0cb857d26c58afa85d2ef0eb0d7480a8ce5
4
+ data.tar.gz: 2d927293d0de19de056a0f294b91709aebc0aa36c785823939281bd4b8283619
5
5
  SHA512:
6
- metadata.gz: b7f38d4402e8fce070f5efdf43e12fb7c805811c82746e565ec20572f9696508857457db0c89434a33463a6dc37d3f857a7208554f7f1f7e1f7e7fce1217dc47
7
- data.tar.gz: c8fb334a1180add82d41f4892e9010f50786f8ee2a1f6bb26c3f77edd1f0f7840f7fa8a44cc18a463f3b4c505d5936bee890400b6900197357397ad45dc54e6c
6
+ metadata.gz: 8569f5aa7ced41a526ff26b7c1adbcce3e6c83ac671678f371efeb6118ad682179c5e6ca87a926cf3fbf1f8a803514ac0fa065c8d2c90ad1e9ddba2c7b1d66f1
7
+ data.tar.gz: 290a1a6d76563beae00b75f284f0b5b4449ff74a5afe9057a9fce905a3839b554de02fa4f275215075910dc5622b32d1429dcf787154c375ba736fa6dbc7f3b5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
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
+
7
+ ### v0.36.0 (2023-03-19)
8
+
9
+ * Regenerated from discovery document revision 20230312
10
+
3
11
  ### v0.35.0 (2023-03-12)
4
12
 
5
13
  * Regenerated from discovery document revision 20230305
@@ -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
@@ -406,10 +394,12 @@ module Google
406
394
  # @return [Hash<String,String>]
407
395
  attr_accessor :labels
408
396
 
409
- # Set the launch stage to a preview stage on write to allow use of preview
410
- # features in that stage. On read, describes whether the resource uses preview
411
- # features. Launch Stages are defined at [Google Cloud Platform Launch Stages](
412
- # https://cloud.google.com/terms/launch-stages).
397
+ # The least stable launch stage needed to create this resource, as defined by [
398
+ # Google Cloud Platform Launch Stages](https://cloud.google.com/terms/launch-
399
+ # stages). Cloud Run supports `ALPHA`, `BETA`, and `GA`. Note that this value
400
+ # might not be what was used as input. For example, if ALPHA was provided as
401
+ # input in the parent resource, but only BETA and GA-level features are were,
402
+ # this field will be BETA.
413
403
  # Corresponds to the JSON property `launchStage`
414
404
  # @return [String]
415
405
  attr_accessor :launch_stage
@@ -434,8 +424,7 @@ module Google
434
424
  # should run at any given time. Must be <= task_count. The actual number of
435
425
  # tasks running in steady state will be less than this number when ((.spec.
436
426
  # task_count - .status.successful) < .spec.parallelism), i.e. when the work left
437
- # to do is less than max parallelism. More info: https://kubernetes.io/docs/
438
- # concepts/workloads/controllers/jobs-run-to-completion/
427
+ # to do is less than max parallelism.
439
428
  # Corresponds to the JSON property `parallelism`
440
429
  # @return [Fixnum]
441
430
  attr_accessor :parallelism
@@ -477,8 +466,7 @@ module Google
477
466
 
478
467
  # Output only. Specifies the desired number of tasks the execution should run.
479
468
  # Setting to 1 means that parallelism is limited to 1 and the success of that
480
- # task signals the success of the execution. More info: https://kubernetes.io/
481
- # docs/concepts/workloads/controllers/jobs-run-to-completion/
469
+ # task signals the success of the execution.
482
470
  # Corresponds to the JSON property `taskCount`
483
471
  # @return [Fixnum]
484
472
  attr_accessor :task_count
@@ -725,9 +713,9 @@ module Google
725
713
  # and should be preserved when modifying objects. Cloud Run API v2 does not
726
714
  # support annotations with `run.googleapis.com`, `cloud.googleapis.com`, `
727
715
  # serving.knative.dev`, or `autoscaling.knative.dev` namespaces, and they will
728
- # be rejected. All system annotations in v1 now have a corresponding field in v2
729
- # Job. This field follows Kubernetes annotations' namespacing, limits, and rules.
730
- # 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.
731
719
  # Corresponds to the JSON property `annotations`
732
720
  # @return [Hash<String,String>]
733
721
  attr_accessor :annotations
@@ -818,7 +806,11 @@ module Google
818
806
 
819
807
  # The launch stage as defined by [Google Cloud Platform Launch Stages](https://
820
808
  # cloud.google.com/terms/launch-stages). Cloud Run supports `ALPHA`, `BETA`, and
821
- # `GA`. If no value is specified, GA is assumed.
809
+ # `GA`. If no value is specified, GA is assumed. Set the launch stage to a
810
+ # preview stage on input to allow use of preview features in that stage. On read
811
+ # (or output), describes whether the resource uses preview features. For example,
812
+ # if ALPHA is provided as input, but only BETA and GA-level features are used,
813
+ # this field will be BETA on output.
822
814
  # Corresponds to the JSON property `launchStage`
823
815
  # @return [String]
824
816
  attr_accessor :launch_stage
@@ -1071,9 +1063,7 @@ module Google
1071
1063
 
1072
1064
  # Number of seconds after the container has started before the probe is
1073
1065
  # initiated. Defaults to 0 seconds. Minimum value is 0. Maximum value for
1074
- # liveness probe is 3600. Maximum value for startup probe is 240. More info:
1075
- # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-
1076
- # probes
1066
+ # liveness probe is 3600. Maximum value for startup probe is 240.
1077
1067
  # Corresponds to the JSON property `initialDelaySeconds`
1078
1068
  # @return [Fixnum]
1079
1069
  attr_accessor :initial_delay_seconds
@@ -1092,8 +1082,6 @@ module Google
1092
1082
 
1093
1083
  # Number of seconds after which the probe times out. Defaults to 1 second.
1094
1084
  # Minimum value is 1. Maximum value is 3600. Must be smaller than period_seconds.
1095
- # More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#
1096
- # container-probes
1097
1085
  # Corresponds to the JSON property `timeoutSeconds`
1098
1086
  # @return [Fixnum]
1099
1087
  attr_accessor :timeout_seconds
@@ -1124,15 +1112,23 @@ module Google
1124
1112
  attr_accessor :cpu_idle
1125
1113
  alias_method :cpu_idle?, :cpu_idle
1126
1114
 
1127
- # Only memory and CPU are supported. Note: The only supported values for CPU are
1128
- # '1', '2', '4', and '8'. Setting 4 CPU requires at least 2Gi of memory. The
1129
- # values of the map is string form of the 'quantity' k8s type: https://github.
1130
- # com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/
1131
- # 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
1132
1120
  # Corresponds to the JSON property `limits`
1133
1121
  # @return [Hash<String,String>]
1134
1122
  attr_accessor :limits
1135
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
+
1136
1132
  def initialize(**args)
1137
1133
  update!(**args)
1138
1134
  end
@@ -1141,6 +1137,7 @@ module Google
1141
1137
  def update!(**args)
1142
1138
  @cpu_idle = args[:cpu_idle] if args.key?(:cpu_idle)
1143
1139
  @limits = args[:limits] if args.key?(:limits)
1140
+ @startup_cpu_boost = args[:startup_cpu_boost] if args.key?(:startup_cpu_boost)
1144
1141
  end
1145
1142
  end
1146
1143
 
@@ -1228,10 +1225,12 @@ module Google
1228
1225
  # @return [Hash<String,String>]
1229
1226
  attr_accessor :labels
1230
1227
 
1231
- # Set the launch stage to a preview stage on write to allow use of preview
1232
- # features in that stage. On read, describes whether the resource uses preview
1233
- # features. Launch Stages are defined at [Google Cloud Platform Launch Stages](
1234
- # https://cloud.google.com/terms/launch-stages).
1228
+ # The least stable launch stage needed to create this resource, as defined by [
1229
+ # Google Cloud Platform Launch Stages](https://cloud.google.com/terms/launch-
1230
+ # stages). Cloud Run supports `ALPHA`, `BETA`, and `GA`. Note that this value
1231
+ # might not be what was used as input. For example, if ALPHA was provided as
1232
+ # input in the parent resource, but only BETA and GA-level features are were,
1233
+ # this field will be BETA.
1235
1234
  # Corresponds to the JSON property `launchStage`
1236
1235
  # @return [String]
1237
1236
  attr_accessor :launch_stage
@@ -1602,10 +1601,10 @@ module Google
1602
1601
  # arbitrary metadata. They are not queryable and should be preserved when
1603
1602
  # modifying objects. Cloud Run API v2 does not support annotations with `run.
1604
1603
  # googleapis.com`, `cloud.googleapis.com`, `serving.knative.dev`, or `
1605
- # autoscaling.knative.dev` namespaces, and they will be rejected. All system
1606
- # annotations in v1 now have a corresponding field in v2 Service. This field
1607
- # follows Kubernetes annotations' namespacing, limits, and rules. More info:
1608
- # 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.
1609
1608
  # Corresponds to the JSON property `annotations`
1610
1609
  # @return [Hash<String,String>]
1611
1610
  attr_accessor :annotations
@@ -1714,7 +1713,11 @@ module Google
1714
1713
 
1715
1714
  # The launch stage as defined by [Google Cloud Platform Launch Stages](https://
1716
1715
  # cloud.google.com/terms/launch-stages). Cloud Run supports `ALPHA`, `BETA`, and
1717
- # `GA`. If no value is specified, GA is assumed.
1716
+ # `GA`. If no value is specified, GA is assumed. Set the launch stage to a
1717
+ # preview stage on input to allow use of preview features in that stage. On read
1718
+ # (or output), describes whether the resource uses preview features. For example,
1719
+ # if ALPHA is provided as input, but only BETA and GA-level features are used,
1720
+ # this field will be BETA on output.
1718
1721
  # Corresponds to the JSON property `launchStage`
1719
1722
  # @return [String]
1720
1723
  attr_accessor :launch_stage
@@ -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.35.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 = "20230305"
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
 
@@ -949,9 +949,8 @@ module Google
949
949
  # location`/services/`service_id`
950
950
  # @param [Google::Apis::RunV2::GoogleCloudRunV2Service] google_cloud_run_v2_service_object
951
951
  # @param [Boolean] allow_missing
952
- # If set to true, and if the Service does not exist, it will create a new one.
953
- # Caller must have both create and update permissions for this call if this is
954
- # set to true.
952
+ # This field is currently not used by Cloud Run; setting it does not have any
953
+ # effect.
955
954
  # @param [Boolean] validate_only
956
955
  # Indicates that the request should be validated and default values populated,
957
956
  # without persisting the request or updating any resources.
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.35.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-12 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.35.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: []