google-apis-cloudbuild_v1 0.39.0 → 0.40.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: 744a9a2fb5b060d983956af67ae1bc6290f95c2e12b601aa66022d2449b19688
4
- data.tar.gz: d4382a2bad1ed4931f627b14d4dd79a43b35852c25e5f765669624ad3d66b0dc
3
+ metadata.gz: 9e068b5019d14dd32e13fe7255981770a26dc4b66b0da83236b49f7ca9442a3e
4
+ data.tar.gz: 2f1d6d2955af9a35f74391006fc184016d4283dd72214872c3d01ad02165888f
5
5
  SHA512:
6
- metadata.gz: dac74d4a6578553b2ed2933438edd6c6d98e4965e6048eb5c77c3d269e2e1bb958f4b49db6b370abd833b435bfaa5cd9f23ce6acedbd52e356ac579501fdf3e4
7
- data.tar.gz: 18a94d5431d0512e34ab8471c8d7ee7ee4ad431a48dd9a79e06e26ee4fadddd62c5918b72dfa141da7c14a952e2a8f79097c38efd25512161076a30fb10e30be
6
+ metadata.gz: 7dc8dab5c6418c4e5c82d936d11ecc9a8c7f3270f6dd4c52f11fc84bf6e1a72b5f1a2db4b6008edf00993a11b8bd7fe5ee44438468f3382d47d2abb7a58e8904
7
+ data.tar.gz: fd68bad30a299166abfd345b3e50878800d0c69a1c5db615cbfe4ba7d0b5af5aa71247ce057ea5ed83c177c0d2f2cd93eaa63aee16bdc672f5ac890328a026a9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-cloudbuild_v1
2
2
 
3
+ ### v0.40.0 (2022-10-11)
4
+
5
+ * Regenerated from discovery document revision 20220928
6
+
3
7
  ### v0.39.0 (2022-09-22)
4
8
 
5
9
  * Regenerated from discovery document revision 20220916
@@ -187,12 +187,29 @@ module Google
187
187
  # @return [Array<String>]
188
188
  attr_accessor :images
189
189
 
190
+ # A list of Maven artifacts to be uploaded to Artifact Registry upon successful
191
+ # completion of all build steps. Artifacts in the workspace matching specified
192
+ # paths globs will be uploaded to the specified Artifact Registry repository
193
+ # using the builder service account's credentials. If any artifacts fail to be
194
+ # pushed, the build is marked FAILURE.
195
+ # Corresponds to the JSON property `mavenArtifacts`
196
+ # @return [Array<Google::Apis::CloudbuildV1::MavenArtifact>]
197
+ attr_accessor :maven_artifacts
198
+
190
199
  # Files in the workspace to upload to Cloud Storage upon successful completion
191
200
  # of all build steps.
192
201
  # Corresponds to the JSON property `objects`
193
202
  # @return [Google::Apis::CloudbuildV1::ArtifactObjects]
194
203
  attr_accessor :objects
195
204
 
205
+ # A list of Python packages to be uploaded to Artifact Registry upon successful
206
+ # completion of all build steps. The build service account credentials will be
207
+ # used to perform the upload. If any objects fail to be pushed, the build is
208
+ # marked FAILURE.
209
+ # Corresponds to the JSON property `pythonPackages`
210
+ # @return [Array<Google::Apis::CloudbuildV1::PythonPackage>]
211
+ attr_accessor :python_packages
212
+
196
213
  def initialize(**args)
197
214
  update!(**args)
198
215
  end
@@ -200,7 +217,9 @@ module Google
200
217
  # Update properties of this object
201
218
  def update!(**args)
202
219
  @images = args[:images] if args.key?(:images)
220
+ @maven_artifacts = args[:maven_artifacts] if args.key?(:maven_artifacts)
203
221
  @objects = args[:objects] if args.key?(:objects)
222
+ @python_packages = args[:python_packages] if args.key?(:python_packages)
204
223
  end
205
224
  end
206
225
 
@@ -2834,6 +2853,55 @@ module Google
2834
2853
  end
2835
2854
  end
2836
2855
 
2856
+ # A Maven artifact to upload to Artifact Registry upon successful completion of
2857
+ # all build steps.
2858
+ class MavenArtifact
2859
+ include Google::Apis::Core::Hashable
2860
+
2861
+ # Maven `artifactId` value used when uploading the artifact to Artifact Registry.
2862
+ # Corresponds to the JSON property `artifactId`
2863
+ # @return [String]
2864
+ attr_accessor :artifact_id
2865
+
2866
+ # Maven `groupId` value used when uploading the artifact to Artifact Registry.
2867
+ # Corresponds to the JSON property `groupId`
2868
+ # @return [String]
2869
+ attr_accessor :group_id
2870
+
2871
+ # Path to an artifact in the build's workspace to be uploaded to Artifact
2872
+ # Registry. This can be either an absolute path, e.g. /workspace/my-app/target/
2873
+ # my-app-1.0.SNAPSHOT.jar or a relative path from /workspace, e.g. my-app/target/
2874
+ # my-app-1.0.SNAPSHOT.jar.
2875
+ # Corresponds to the JSON property `path`
2876
+ # @return [String]
2877
+ attr_accessor :path
2878
+
2879
+ # Artifact Registry repository, in the form "https://$REGION-maven.pkg.dev/$
2880
+ # PROJECT/$REPOSITORY" Artifact in the workspace specified by path will be
2881
+ # uploaded to Artifact Registry with this location as a prefix.
2882
+ # Corresponds to the JSON property `repository`
2883
+ # @return [String]
2884
+ attr_accessor :repository
2885
+
2886
+ # Maven `version` value used when uploading the artifact to Artifact Registry.
2887
+ # Corresponds to the JSON property `version`
2888
+ # @return [String]
2889
+ attr_accessor :version
2890
+
2891
+ def initialize(**args)
2892
+ update!(**args)
2893
+ end
2894
+
2895
+ # Update properties of this object
2896
+ def update!(**args)
2897
+ @artifact_id = args[:artifact_id] if args.key?(:artifact_id)
2898
+ @group_id = args[:group_id] if args.key?(:group_id)
2899
+ @path = args[:path] if args.key?(:path)
2900
+ @repository = args[:repository] if args.key?(:repository)
2901
+ @version = args[:version] if args.key?(:version)
2902
+ end
2903
+ end
2904
+
2837
2905
  # Defines the network configuration for the pool.
2838
2906
  class NetworkConfig
2839
2907
  include Google::Apis::Core::Hashable
@@ -3371,6 +3439,36 @@ module Google
3371
3439
  end
3372
3440
  end
3373
3441
 
3442
+ # Python package to upload to Artifact Registry upon successful completion of
3443
+ # all build steps. A package can encapsulate multiple objects to be uploaded to
3444
+ # a single repository.
3445
+ class PythonPackage
3446
+ include Google::Apis::Core::Hashable
3447
+
3448
+ # Path globs used to match files in the build's workspace. For Python/ Twine,
3449
+ # this is usually `dist/*`, and sometimes additionally an `.asc` file.
3450
+ # Corresponds to the JSON property `paths`
3451
+ # @return [Array<String>]
3452
+ attr_accessor :paths
3453
+
3454
+ # Artifact Registry repository, in the form "https://$REGION-python.pkg.dev/$
3455
+ # PROJECT/$REPOSITORY" Files in the workspace matching any path pattern will be
3456
+ # uploaded to Artifact Registry with this location as a prefix.
3457
+ # Corresponds to the JSON property `repository`
3458
+ # @return [String]
3459
+ attr_accessor :repository
3460
+
3461
+ def initialize(**args)
3462
+ update!(**args)
3463
+ end
3464
+
3465
+ # Update properties of this object
3466
+ def update!(**args)
3467
+ @paths = args[:paths] if args.key?(:paths)
3468
+ @repository = args[:repository] if args.key?(:repository)
3469
+ end
3470
+ end
3471
+
3374
3472
  # ReceiveTriggerWebhookResponse [Experimental] is the response object for the
3375
3473
  # ReceiveTriggerWebhook method.
3376
3474
  class ReceiveTriggerWebhookResponse
@@ -3528,11 +3626,21 @@ module Google
3528
3626
  # @return [Array<Google::Apis::CloudbuildV1::BuiltImage>]
3529
3627
  attr_accessor :images
3530
3628
 
3629
+ # Maven artifacts uploaded to Artifact Registry at the end of the build.
3630
+ # Corresponds to the JSON property `mavenArtifacts`
3631
+ # @return [Array<Google::Apis::CloudbuildV1::UploadedMavenArtifact>]
3632
+ attr_accessor :maven_artifacts
3633
+
3531
3634
  # Number of artifacts uploaded. Only populated when artifacts are uploaded.
3532
3635
  # Corresponds to the JSON property `numArtifacts`
3533
3636
  # @return [Fixnum]
3534
3637
  attr_accessor :num_artifacts
3535
3638
 
3639
+ # Python artifacts uploaded to Artifact Registry at the end of the build.
3640
+ # Corresponds to the JSON property `pythonPackages`
3641
+ # @return [Array<Google::Apis::CloudbuildV1::UploadedPythonPackage>]
3642
+ attr_accessor :python_packages
3643
+
3536
3644
  def initialize(**args)
3537
3645
  update!(**args)
3538
3646
  end
@@ -3544,7 +3652,9 @@ module Google
3544
3652
  @build_step_images = args[:build_step_images] if args.key?(:build_step_images)
3545
3653
  @build_step_outputs = args[:build_step_outputs] if args.key?(:build_step_outputs)
3546
3654
  @images = args[:images] if args.key?(:images)
3655
+ @maven_artifacts = args[:maven_artifacts] if args.key?(:maven_artifacts)
3547
3656
  @num_artifacts = args[:num_artifacts] if args.key?(:num_artifacts)
3657
+ @python_packages = args[:python_packages] if args.key?(:python_packages)
3548
3658
  end
3549
3659
  end
3550
3660
 
@@ -4192,6 +4302,70 @@ module Google
4192
4302
  end
4193
4303
  end
4194
4304
 
4305
+ # A Maven artifact uploaded using the MavenArtifact directive.
4306
+ class UploadedMavenArtifact
4307
+ include Google::Apis::Core::Hashable
4308
+
4309
+ # Container message for hashes of byte content of files, used in
4310
+ # SourceProvenance messages to verify integrity of source input to the build.
4311
+ # Corresponds to the JSON property `fileHashes`
4312
+ # @return [Google::Apis::CloudbuildV1::FileHashes]
4313
+ attr_accessor :file_hashes
4314
+
4315
+ # Start and end times for a build execution phase.
4316
+ # Corresponds to the JSON property `pushTiming`
4317
+ # @return [Google::Apis::CloudbuildV1::TimeSpan]
4318
+ attr_accessor :push_timing
4319
+
4320
+ # URI of the uploaded artifact.
4321
+ # Corresponds to the JSON property `uri`
4322
+ # @return [String]
4323
+ attr_accessor :uri
4324
+
4325
+ def initialize(**args)
4326
+ update!(**args)
4327
+ end
4328
+
4329
+ # Update properties of this object
4330
+ def update!(**args)
4331
+ @file_hashes = args[:file_hashes] if args.key?(:file_hashes)
4332
+ @push_timing = args[:push_timing] if args.key?(:push_timing)
4333
+ @uri = args[:uri] if args.key?(:uri)
4334
+ end
4335
+ end
4336
+
4337
+ # Artifact uploaded using the PythonPackage directive.
4338
+ class UploadedPythonPackage
4339
+ include Google::Apis::Core::Hashable
4340
+
4341
+ # Container message for hashes of byte content of files, used in
4342
+ # SourceProvenance messages to verify integrity of source input to the build.
4343
+ # Corresponds to the JSON property `fileHashes`
4344
+ # @return [Google::Apis::CloudbuildV1::FileHashes]
4345
+ attr_accessor :file_hashes
4346
+
4347
+ # Start and end times for a build execution phase.
4348
+ # Corresponds to the JSON property `pushTiming`
4349
+ # @return [Google::Apis::CloudbuildV1::TimeSpan]
4350
+ attr_accessor :push_timing
4351
+
4352
+ # URI of the uploaded artifact.
4353
+ # Corresponds to the JSON property `uri`
4354
+ # @return [String]
4355
+ attr_accessor :uri
4356
+
4357
+ def initialize(**args)
4358
+ update!(**args)
4359
+ end
4360
+
4361
+ # Update properties of this object
4362
+ def update!(**args)
4363
+ @file_hashes = args[:file_hashes] if args.key?(:file_hashes)
4364
+ @push_timing = args[:push_timing] if args.key?(:push_timing)
4365
+ @uri = args[:uri] if args.key?(:uri)
4366
+ end
4367
+ end
4368
+
4195
4369
  # Volume describes a Docker container volume which is mounted into build steps
4196
4370
  # in order to persist files across build step execution.
4197
4371
  class Volume
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module CloudbuildV1
18
18
  # Version of the google-apis-cloudbuild_v1 gem
19
- GEM_VERSION = "0.39.0"
19
+ GEM_VERSION = "0.40.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.10.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220916"
25
+ REVISION = "20220928"
26
26
  end
27
27
  end
28
28
  end
@@ -412,6 +412,12 @@ module Google
412
412
  include Google::Apis::Core::JsonObjectSupport
413
413
  end
414
414
 
415
+ class MavenArtifact
416
+ class Representation < Google::Apis::Core::JsonRepresentation; end
417
+
418
+ include Google::Apis::Core::JsonObjectSupport
419
+ end
420
+
415
421
  class NetworkConfig
416
422
  class Representation < Google::Apis::Core::JsonRepresentation; end
417
423
 
@@ -502,6 +508,12 @@ module Google
502
508
  include Google::Apis::Core::JsonObjectSupport
503
509
  end
504
510
 
511
+ class PythonPackage
512
+ class Representation < Google::Apis::Core::JsonRepresentation; end
513
+
514
+ include Google::Apis::Core::JsonObjectSupport
515
+ end
516
+
505
517
  class ReceiveTriggerWebhookResponse
506
518
  class Representation < Google::Apis::Core::JsonRepresentation; end
507
519
 
@@ -646,6 +658,18 @@ module Google
646
658
  include Google::Apis::Core::JsonObjectSupport
647
659
  end
648
660
 
661
+ class UploadedMavenArtifact
662
+ class Representation < Google::Apis::Core::JsonRepresentation; end
663
+
664
+ include Google::Apis::Core::JsonObjectSupport
665
+ end
666
+
667
+ class UploadedPythonPackage
668
+ class Representation < Google::Apis::Core::JsonRepresentation; end
669
+
670
+ include Google::Apis::Core::JsonObjectSupport
671
+ end
672
+
649
673
  class Volume
650
674
  class Representation < Google::Apis::Core::JsonRepresentation; end
651
675
 
@@ -725,8 +749,12 @@ module Google
725
749
  # @private
726
750
  class Representation < Google::Apis::Core::JsonRepresentation
727
751
  collection :images, as: 'images'
752
+ collection :maven_artifacts, as: 'mavenArtifacts', class: Google::Apis::CloudbuildV1::MavenArtifact, decorator: Google::Apis::CloudbuildV1::MavenArtifact::Representation
753
+
728
754
  property :objects, as: 'objects', class: Google::Apis::CloudbuildV1::ArtifactObjects, decorator: Google::Apis::CloudbuildV1::ArtifactObjects::Representation
729
755
 
756
+ collection :python_packages, as: 'pythonPackages', class: Google::Apis::CloudbuildV1::PythonPackage, decorator: Google::Apis::CloudbuildV1::PythonPackage::Representation
757
+
730
758
  end
731
759
  end
732
760
 
@@ -1410,6 +1438,17 @@ module Google
1410
1438
  end
1411
1439
  end
1412
1440
 
1441
+ class MavenArtifact
1442
+ # @private
1443
+ class Representation < Google::Apis::Core::JsonRepresentation
1444
+ property :artifact_id, as: 'artifactId'
1445
+ property :group_id, as: 'groupId'
1446
+ property :path, as: 'path'
1447
+ property :repository, as: 'repository'
1448
+ property :version, as: 'version'
1449
+ end
1450
+ end
1451
+
1413
1452
  class NetworkConfig
1414
1453
  # @private
1415
1454
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1556,6 +1595,14 @@ module Google
1556
1595
  end
1557
1596
  end
1558
1597
 
1598
+ class PythonPackage
1599
+ # @private
1600
+ class Representation < Google::Apis::Core::JsonRepresentation
1601
+ collection :paths, as: 'paths'
1602
+ property :repository, as: 'repository'
1603
+ end
1604
+ end
1605
+
1559
1606
  class ReceiveTriggerWebhookResponse
1560
1607
  # @private
1561
1608
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1602,7 +1649,11 @@ module Google
1602
1649
  collection :build_step_outputs, as: 'buildStepOutputs'
1603
1650
  collection :images, as: 'images', class: Google::Apis::CloudbuildV1::BuiltImage, decorator: Google::Apis::CloudbuildV1::BuiltImage::Representation
1604
1651
 
1652
+ collection :maven_artifacts, as: 'mavenArtifacts', class: Google::Apis::CloudbuildV1::UploadedMavenArtifact, decorator: Google::Apis::CloudbuildV1::UploadedMavenArtifact::Representation
1653
+
1605
1654
  property :num_artifacts, :numeric_string => true, as: 'numArtifacts'
1655
+ collection :python_packages, as: 'pythonPackages', class: Google::Apis::CloudbuildV1::UploadedPythonPackage, decorator: Google::Apis::CloudbuildV1::UploadedPythonPackage::Representation
1656
+
1606
1657
  end
1607
1658
  end
1608
1659
 
@@ -1789,6 +1840,28 @@ module Google
1789
1840
  end
1790
1841
  end
1791
1842
 
1843
+ class UploadedMavenArtifact
1844
+ # @private
1845
+ class Representation < Google::Apis::Core::JsonRepresentation
1846
+ property :file_hashes, as: 'fileHashes', class: Google::Apis::CloudbuildV1::FileHashes, decorator: Google::Apis::CloudbuildV1::FileHashes::Representation
1847
+
1848
+ property :push_timing, as: 'pushTiming', class: Google::Apis::CloudbuildV1::TimeSpan, decorator: Google::Apis::CloudbuildV1::TimeSpan::Representation
1849
+
1850
+ property :uri, as: 'uri'
1851
+ end
1852
+ end
1853
+
1854
+ class UploadedPythonPackage
1855
+ # @private
1856
+ class Representation < Google::Apis::Core::JsonRepresentation
1857
+ property :file_hashes, as: 'fileHashes', class: Google::Apis::CloudbuildV1::FileHashes, decorator: Google::Apis::CloudbuildV1::FileHashes::Representation
1858
+
1859
+ property :push_timing, as: 'pushTiming', class: Google::Apis::CloudbuildV1::TimeSpan, decorator: Google::Apis::CloudbuildV1::TimeSpan::Representation
1860
+
1861
+ property :uri, as: 'uri'
1862
+ end
1863
+ end
1864
+
1792
1865
  class Volume
1793
1866
  # @private
1794
1867
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-cloudbuild_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.39.0
4
+ version: 0.40.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-26 00:00:00.000000000 Z
11
+ date: 2022-10-17 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-cloudbuild_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-cloudbuild_v1/v0.39.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-cloudbuild_v1/v0.40.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudbuild_v1
63
63
  post_install_message:
64
64
  rdoc_options: []