google-apis-run_v2 0.69.0 → 0.70.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: ebd2317f444e329d3cd3a2cd472abdc3855a483f1f3a00c7777604c7ce1a88b8
4
- data.tar.gz: c65a385863dc6f49fe41617bc7399fd81f82510454d26c535e37ce7b77668e60
3
+ metadata.gz: ae6b4cbe91a8c372bb5bb26949e9d414fc5ff88e283917e960c676a5f77e46af
4
+ data.tar.gz: 5bf3ee7a80d82495427382708d9ebae04c70f8b8fee977d6fe9efe0fe04e632c
5
5
  SHA512:
6
- metadata.gz: f43b17c407d337d74e23b2cbacabf91444e6e0b0bf611d20a0b83cd4c4bd155e293d5a6623720d9c43f59bbd1d08b8923981701112640171c0d07780dc35dc42
7
- data.tar.gz: c827630551dd965ac25c0de88d775e8fe9e7fffe56dba6d5ec4f1f0685f3f2194c7895dfc0baafc07e442f5a31214dff0494deb466f815eea8df1a7e17f2c7fe
6
+ metadata.gz: 822f9125ba646951cf5d7b59abd1bf189c6bfc94c6bce3d99486e77cec9379871706caa8471a20b2d874d70254b1f262b165c9539fcdcd98bc3a7e2e725fbc39
7
+ data.tar.gz: 3ded6720ab2ec1f0ca3ca2eff29d973e4ef9f9b36f1f5002a1c47669efc9e22e50e6fc7b05ad31f009f4db41c14d99c539594cddbaebbc6af16b736c6f2503af
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-run_v2
2
2
 
3
+ ### v0.70.0 (2024-08-18)
4
+
5
+ * Regenerated from discovery document revision 20240809
6
+
3
7
  ### v0.69.0 (2024-08-11)
4
8
 
5
9
  * Regenerated from discovery document revision 20240802
@@ -59,6 +59,63 @@ module Google
59
59
  end
60
60
  end
61
61
 
62
+ # Build the source using Buildpacks.
63
+ class GoogleCloudRunV2BuildpacksBuild
64
+ include Google::Apis::Core::Hashable
65
+
66
+ # Optional. The base image used to opt into automatic base image updates.
67
+ # Corresponds to the JSON property `baseImage`
68
+ # @return [String]
69
+ attr_accessor :base_image
70
+
71
+ # Optional. cache_image_uri is the GCR/AR URL where the cache image will be
72
+ # stored. cache_image_uri is optional and omitting it will disable caching. This
73
+ # URL must be stable across builds. It is used to derive a build-specific
74
+ # temporary URL by substituting the tag with the build ID. The build will clean
75
+ # up the temporary image on a best-effort basis.
76
+ # Corresponds to the JSON property `cacheImageUri`
77
+ # @return [String]
78
+ attr_accessor :cache_image_uri
79
+
80
+ # Optional. Whether or not the application container will be enrolled in
81
+ # automatic base image updates. When true, the application will be built on a
82
+ # scratch base image, so the base layers can be appended at run time.
83
+ # Corresponds to the JSON property `enableAutomaticUpdates`
84
+ # @return [Boolean]
85
+ attr_accessor :enable_automatic_updates
86
+ alias_method :enable_automatic_updates?, :enable_automatic_updates
87
+
88
+ # Optional. User-provided build-time environment variables.
89
+ # Corresponds to the JSON property `environmentVariables`
90
+ # @return [Hash<String,String>]
91
+ attr_accessor :environment_variables
92
+
93
+ # Optional. Name of the function target if the source is a function source.
94
+ # Required for function builds.
95
+ # Corresponds to the JSON property `functionTarget`
96
+ # @return [String]
97
+ attr_accessor :function_target
98
+
99
+ # The runtime name, e.g. 'go113'. Leave blank for generic builds.
100
+ # Corresponds to the JSON property `runtime`
101
+ # @return [String]
102
+ attr_accessor :runtime
103
+
104
+ def initialize(**args)
105
+ update!(**args)
106
+ end
107
+
108
+ # Update properties of this object
109
+ def update!(**args)
110
+ @base_image = args[:base_image] if args.key?(:base_image)
111
+ @cache_image_uri = args[:cache_image_uri] if args.key?(:cache_image_uri)
112
+ @enable_automatic_updates = args[:enable_automatic_updates] if args.key?(:enable_automatic_updates)
113
+ @environment_variables = args[:environment_variables] if args.key?(:environment_variables)
114
+ @function_target = args[:function_target] if args.key?(:function_target)
115
+ @runtime = args[:runtime] if args.key?(:runtime)
116
+ end
117
+ end
118
+
62
119
  # Request message for deleting an Execution.
63
120
  class GoogleCloudRunV2CancelExecutionRequest
64
121
  include Google::Apis::Core::Hashable
@@ -339,6 +396,19 @@ module Google
339
396
  end
340
397
  end
341
398
 
399
+ # Build the source using Docker. This means the source has a Dockerfile.
400
+ class GoogleCloudRunV2DockerBuild
401
+ include Google::Apis::Core::Hashable
402
+
403
+ def initialize(**args)
404
+ update!(**args)
405
+ end
406
+
407
+ # Update properties of this object
408
+ def update!(**args)
409
+ end
410
+ end
411
+
342
412
  # In memory (tmpfs) ephemeral storage. It is ephemeral in the sense that when
343
413
  # the sandbox is taken down, the data is destroyed with it (it does not persist
344
414
  # across sandbox runs).
@@ -383,13 +453,8 @@ module Google
383
453
  # @return [String]
384
454
  attr_accessor :name
385
455
 
386
- # Variable references $(VAR_NAME) are expanded using the previous defined
387
- # environment variables in the container and any route environment variables. If
388
- # a variable cannot be resolved, the reference in the input string will be
389
- # unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(
390
- # VAR_NAME). Escaped references will never be expanded, regardless of whether
391
- # the variable exists or not. Defaults to "", and the maximum length is 32768
392
- # bytes.
456
+ # Literal value of the environment variable. Defaults to "", and the maximum
457
+ # length is 32768 bytes. Variable references are not supported in Cloud Run.
393
458
  # Corresponds to the JSON property `value`
394
459
  # @return [String]
395
460
  attr_accessor :value
@@ -2433,6 +2498,128 @@ module Google
2433
2498
  end
2434
2499
  end
2435
2500
 
2501
+ # Location of the source in an archive file in Google Cloud Storage.
2502
+ class GoogleCloudRunV2StorageSource
2503
+ include Google::Apis::Core::Hashable
2504
+
2505
+ # Required. Google Cloud Storage bucket containing the source (see [Bucket Name
2506
+ # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)
2507
+ # ).
2508
+ # Corresponds to the JSON property `bucket`
2509
+ # @return [String]
2510
+ attr_accessor :bucket
2511
+
2512
+ # Optional. Google Cloud Storage generation for the object. If the generation is
2513
+ # omitted, the latest generation will be used.
2514
+ # Corresponds to the JSON property `generation`
2515
+ # @return [Fixnum]
2516
+ attr_accessor :generation
2517
+
2518
+ # Required. Google Cloud Storage object containing the source. This object must
2519
+ # be a gzipped archive file (`.tar.gz`) containing source to build.
2520
+ # Corresponds to the JSON property `object`
2521
+ # @return [String]
2522
+ attr_accessor :object
2523
+
2524
+ def initialize(**args)
2525
+ update!(**args)
2526
+ end
2527
+
2528
+ # Update properties of this object
2529
+ def update!(**args)
2530
+ @bucket = args[:bucket] if args.key?(:bucket)
2531
+ @generation = args[:generation] if args.key?(:generation)
2532
+ @object = args[:object] if args.key?(:object)
2533
+ end
2534
+ end
2535
+
2536
+ # Request message for submitting a Build.
2537
+ class GoogleCloudRunV2SubmitBuildRequest
2538
+ include Google::Apis::Core::Hashable
2539
+
2540
+ # Build the source using Buildpacks.
2541
+ # Corresponds to the JSON property `buildpackBuild`
2542
+ # @return [Google::Apis::RunV2::GoogleCloudRunV2BuildpacksBuild]
2543
+ attr_accessor :buildpack_build
2544
+
2545
+ # Build the source using Docker. This means the source has a Dockerfile.
2546
+ # Corresponds to the JSON property `dockerBuild`
2547
+ # @return [Google::Apis::RunV2::GoogleCloudRunV2DockerBuild]
2548
+ attr_accessor :docker_build
2549
+
2550
+ # Required. Artifact Registry URI to store the built image.
2551
+ # Corresponds to the JSON property `imageUri`
2552
+ # @return [String]
2553
+ attr_accessor :image_uri
2554
+
2555
+ # Optional. The service account to use for the build. If not set, the default
2556
+ # Cloud Build service account for the project will be used.
2557
+ # Corresponds to the JSON property `serviceAccount`
2558
+ # @return [String]
2559
+ attr_accessor :service_account
2560
+
2561
+ # Location of the source in an archive file in Google Cloud Storage.
2562
+ # Corresponds to the JSON property `storageSource`
2563
+ # @return [Google::Apis::RunV2::GoogleCloudRunV2StorageSource]
2564
+ attr_accessor :storage_source
2565
+
2566
+ # Optional. Additional tags to annotate the build.
2567
+ # Corresponds to the JSON property `tags`
2568
+ # @return [Array<String>]
2569
+ attr_accessor :tags
2570
+
2571
+ # Optional. Name of the Cloud Build Custom Worker Pool that should be used to
2572
+ # build the function. The format of this field is `projects/`project`/locations/`
2573
+ # region`/workerPools/`workerPool`` where `project` and `region` are the project
2574
+ # id and region respectively where the worker pool is defined and `workerPool`
2575
+ # is the short name of the worker pool.
2576
+ # Corresponds to the JSON property `workerPool`
2577
+ # @return [String]
2578
+ attr_accessor :worker_pool
2579
+
2580
+ def initialize(**args)
2581
+ update!(**args)
2582
+ end
2583
+
2584
+ # Update properties of this object
2585
+ def update!(**args)
2586
+ @buildpack_build = args[:buildpack_build] if args.key?(:buildpack_build)
2587
+ @docker_build = args[:docker_build] if args.key?(:docker_build)
2588
+ @image_uri = args[:image_uri] if args.key?(:image_uri)
2589
+ @service_account = args[:service_account] if args.key?(:service_account)
2590
+ @storage_source = args[:storage_source] if args.key?(:storage_source)
2591
+ @tags = args[:tags] if args.key?(:tags)
2592
+ @worker_pool = args[:worker_pool] if args.key?(:worker_pool)
2593
+ end
2594
+ end
2595
+
2596
+ # Response message for submitting a Build.
2597
+ class GoogleCloudRunV2SubmitBuildResponse
2598
+ include Google::Apis::Core::Hashable
2599
+
2600
+ # URI of the base builder image in Artifact Registry being used in the build.
2601
+ # Used to opt into automatic base image updates.
2602
+ # Corresponds to the JSON property `baseImageUri`
2603
+ # @return [String]
2604
+ attr_accessor :base_image_uri
2605
+
2606
+ # This resource represents a long-running operation that is the result of a
2607
+ # network API call.
2608
+ # Corresponds to the JSON property `buildOperation`
2609
+ # @return [Google::Apis::RunV2::GoogleLongrunningOperation]
2610
+ attr_accessor :build_operation
2611
+
2612
+ def initialize(**args)
2613
+ update!(**args)
2614
+ end
2615
+
2616
+ # Update properties of this object
2617
+ def update!(**args)
2618
+ @base_image_uri = args[:base_image_uri] if args.key?(:base_image_uri)
2619
+ @build_operation = args[:build_operation] if args.key?(:build_operation)
2620
+ end
2621
+ end
2622
+
2436
2623
  # TCPSocketAction describes an action based on opening a socket
2437
2624
  class GoogleCloudRunV2TcpSocketAction
2438
2625
  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.69.0"
19
+ GEM_VERSION = "0.70.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.15.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240802"
25
+ REVISION = "20240809"
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 GoogleCloudRunV2BuildpacksBuild
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
31
37
  class GoogleCloudRunV2CancelExecutionRequest
32
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
39
 
@@ -64,6 +70,12 @@ module Google
64
70
  include Google::Apis::Core::JsonObjectSupport
65
71
  end
66
72
 
73
+ class GoogleCloudRunV2DockerBuild
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
67
79
  class GoogleCloudRunV2EmptyDirVolumeSource
68
80
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
81
 
@@ -286,6 +298,24 @@ module Google
286
298
  include Google::Apis::Core::JsonObjectSupport
287
299
  end
288
300
 
301
+ class GoogleCloudRunV2StorageSource
302
+ class Representation < Google::Apis::Core::JsonRepresentation; end
303
+
304
+ include Google::Apis::Core::JsonObjectSupport
305
+ end
306
+
307
+ class GoogleCloudRunV2SubmitBuildRequest
308
+ class Representation < Google::Apis::Core::JsonRepresentation; end
309
+
310
+ include Google::Apis::Core::JsonObjectSupport
311
+ end
312
+
313
+ class GoogleCloudRunV2SubmitBuildResponse
314
+ class Representation < Google::Apis::Core::JsonRepresentation; end
315
+
316
+ include Google::Apis::Core::JsonObjectSupport
317
+ end
318
+
289
319
  class GoogleCloudRunV2TcpSocketAction
290
320
  class Representation < Google::Apis::Core::JsonRepresentation; end
291
321
 
@@ -673,6 +703,18 @@ module Google
673
703
  end
674
704
  end
675
705
 
706
+ class GoogleCloudRunV2BuildpacksBuild
707
+ # @private
708
+ class Representation < Google::Apis::Core::JsonRepresentation
709
+ property :base_image, as: 'baseImage'
710
+ property :cache_image_uri, as: 'cacheImageUri'
711
+ property :enable_automatic_updates, as: 'enableAutomaticUpdates'
712
+ hash :environment_variables, as: 'environmentVariables'
713
+ property :function_target, as: 'functionTarget'
714
+ property :runtime, as: 'runtime'
715
+ end
716
+ end
717
+
676
718
  class GoogleCloudRunV2CancelExecutionRequest
677
719
  # @private
678
720
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -745,6 +787,12 @@ module Google
745
787
  end
746
788
  end
747
789
 
790
+ class GoogleCloudRunV2DockerBuild
791
+ # @private
792
+ class Representation < Google::Apis::Core::JsonRepresentation
793
+ end
794
+ end
795
+
748
796
  class GoogleCloudRunV2EmptyDirVolumeSource
749
797
  # @private
750
798
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1223,6 +1271,40 @@ module Google
1223
1271
  end
1224
1272
  end
1225
1273
 
1274
+ class GoogleCloudRunV2StorageSource
1275
+ # @private
1276
+ class Representation < Google::Apis::Core::JsonRepresentation
1277
+ property :bucket, as: 'bucket'
1278
+ property :generation, :numeric_string => true, as: 'generation'
1279
+ property :object, as: 'object'
1280
+ end
1281
+ end
1282
+
1283
+ class GoogleCloudRunV2SubmitBuildRequest
1284
+ # @private
1285
+ class Representation < Google::Apis::Core::JsonRepresentation
1286
+ property :buildpack_build, as: 'buildpackBuild', class: Google::Apis::RunV2::GoogleCloudRunV2BuildpacksBuild, decorator: Google::Apis::RunV2::GoogleCloudRunV2BuildpacksBuild::Representation
1287
+
1288
+ property :docker_build, as: 'dockerBuild', class: Google::Apis::RunV2::GoogleCloudRunV2DockerBuild, decorator: Google::Apis::RunV2::GoogleCloudRunV2DockerBuild::Representation
1289
+
1290
+ property :image_uri, as: 'imageUri'
1291
+ property :service_account, as: 'serviceAccount'
1292
+ property :storage_source, as: 'storageSource', class: Google::Apis::RunV2::GoogleCloudRunV2StorageSource, decorator: Google::Apis::RunV2::GoogleCloudRunV2StorageSource::Representation
1293
+
1294
+ collection :tags, as: 'tags'
1295
+ property :worker_pool, as: 'workerPool'
1296
+ end
1297
+ end
1298
+
1299
+ class GoogleCloudRunV2SubmitBuildResponse
1300
+ # @private
1301
+ class Representation < Google::Apis::Core::JsonRepresentation
1302
+ property :base_image_uri, as: 'baseImageUri'
1303
+ property :build_operation, as: 'buildOperation', class: Google::Apis::RunV2::GoogleLongrunningOperation, decorator: Google::Apis::RunV2::GoogleLongrunningOperation::Representation
1304
+
1305
+ end
1306
+ end
1307
+
1226
1308
  class GoogleCloudRunV2TcpSocketAction
1227
1309
  # @private
1228
1310
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -190,6 +190,41 @@ module Google
190
190
  execute_or_queue_command(command, &block)
191
191
  end
192
192
 
193
+ # Submits a build in a given project.
194
+ # @param [String] parent
195
+ # Required. The project and location to build in. Location must be a region, e.g.
196
+ # , 'us-central1' or 'global' if the global builder is to be used. Format:
197
+ # projects/`project`/locations/`location`
198
+ # @param [Google::Apis::RunV2::GoogleCloudRunV2SubmitBuildRequest] google_cloud_run_v2_submit_build_request_object
199
+ # @param [String] fields
200
+ # Selector specifying which fields to include in a partial response.
201
+ # @param [String] quota_user
202
+ # Available to use for quota purposes for server-side applications. Can be any
203
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
204
+ # @param [Google::Apis::RequestOptions] options
205
+ # Request-specific options
206
+ #
207
+ # @yield [result, err] Result & error if block supplied
208
+ # @yieldparam result [Google::Apis::RunV2::GoogleCloudRunV2SubmitBuildResponse] parsed result object
209
+ # @yieldparam err [StandardError] error object if request failed
210
+ #
211
+ # @return [Google::Apis::RunV2::GoogleCloudRunV2SubmitBuildResponse]
212
+ #
213
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
214
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
215
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
216
+ def submit_project_location_build(parent, google_cloud_run_v2_submit_build_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
217
+ command = make_simple_command(:post, 'v2/{+parent}/builds:submit', options)
218
+ command.request_representation = Google::Apis::RunV2::GoogleCloudRunV2SubmitBuildRequest::Representation
219
+ command.request_object = google_cloud_run_v2_submit_build_request_object
220
+ command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2SubmitBuildResponse::Representation
221
+ command.response_class = Google::Apis::RunV2::GoogleCloudRunV2SubmitBuildResponse
222
+ command.params['parent'] = parent unless parent.nil?
223
+ command.query['fields'] = fields unless fields.nil?
224
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
225
+ execute_or_queue_command(command, &block)
226
+ end
227
+
193
228
  # Creates a Job.
194
229
  # @param [String] parent
195
230
  # Required. The location and project in which this Job should be created. Format:
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.69.0
4
+ version: 0.70.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: 2024-08-11 00:00:00.000000000 Z
11
+ date: 2024-08-18 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.69.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-run_v2/v0.70.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: []