google-apis-cloudbuild_v1 0.49.0 → 0.51.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: ad89ff5ba18b964c2b8c2a13503f8e15bf07a193a2cdc511f34577ad29b89481
4
- data.tar.gz: 4fb2af94777daac12a06b6fa1c211f04bc0ab1a4ba72c7f561a9b6df0b9ce67b
3
+ metadata.gz: 9f2a5b37fdc3e51f5412225e55de092c091ec501f2aae1c957c40cea5e7bc540
4
+ data.tar.gz: 4c80ba6d398132a7c4cee8ca9e9e7609b94f7e9531814bc31eb5f024ef33c135
5
5
  SHA512:
6
- metadata.gz: 53eb01279746c63c927b6480fdbc09f4731621f0758364870db1e9f1d2078f70989ef4c864268f057d540decd3d66bb33014c1619c6b7fdb9c4249e1c6d08bfe
7
- data.tar.gz: e4d507b58f80c44af63fd65afec80a1a3c966fa1a0790e5429f9577b69a2677d5a82c182acc1991e18fcfcf184f7b811fc016994fd70f5e7e8f81836d38b267d
6
+ metadata.gz: 433cc0b6fe101a5716535c8631a13f31c650dc71227d0a10f2126d34d788409ed0c471b76ab6a463e22b552e0c53bf9738b6573d8458f536d93bbb445291da3b
7
+ data.tar.gz: 0d294bc82ad7daf5efd45780f6e9b349f89eb5f82f722e9dfba54d747b39414bbbdd2da8b5d3f41e3d6b3272e99fdef113bb512a8826365f3cada47ade1f9da5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-cloudbuild_v1
2
2
 
3
+ ### v0.51.0 (2023-05-14)
4
+
5
+ * Regenerated from discovery document revision 20230505
6
+
7
+ ### v0.50.0 (2023-04-23)
8
+
9
+ * Regenerated from discovery document revision 20230417
10
+
3
11
  ### v0.49.0 (2023-04-16)
4
12
 
5
13
  * Regenerated from discovery document revision 20230406
@@ -196,6 +196,15 @@ module Google
196
196
  # @return [Array<Google::Apis::CloudbuildV1::MavenArtifact>]
197
197
  attr_accessor :maven_artifacts
198
198
 
199
+ # A list of npm packages to be uploaded to Artifact Registry upon successful
200
+ # completion of all build steps. Npm packages in the specified paths will be
201
+ # uploaded to the specified Artifact Registry repository using the builder
202
+ # service account's credentials. If any packages fail to be pushed, the build is
203
+ # marked FAILURE.
204
+ # Corresponds to the JSON property `npmPackages`
205
+ # @return [Array<Google::Apis::CloudbuildV1::NpmPackage>]
206
+ attr_accessor :npm_packages
207
+
199
208
  # Files in the workspace to upload to Cloud Storage upon successful completion
200
209
  # of all build steps.
201
210
  # Corresponds to the JSON property `objects`
@@ -218,6 +227,7 @@ module Google
218
227
  def update!(**args)
219
228
  @images = args[:images] if args.key?(:images)
220
229
  @maven_artifacts = args[:maven_artifacts] if args.key?(:maven_artifacts)
230
+ @npm_packages = args[:npm_packages] if args.key?(:npm_packages)
221
231
  @objects = args[:objects] if args.key?(:objects)
222
232
  @python_packages = args[:python_packages] if args.key?(:python_packages)
223
233
  end
@@ -1925,6 +1935,14 @@ module Google
1925
1935
  # @return [String]
1926
1936
  attr_accessor :repo_type
1927
1937
 
1938
+ # The fully qualified resource name of the Repo API repository. Either uri or
1939
+ # repository can be specified. If unspecified, the repo from which the trigger
1940
+ # invocation originated is assumed to be the repo from which to read the
1941
+ # specified path.
1942
+ # Corresponds to the JSON property `repository`
1943
+ # @return [String]
1944
+ attr_accessor :repository
1945
+
1928
1946
  # The branch, tag, arbitrary ref, or SHA version of the repo to use when
1929
1947
  # resolving the filename (optional). This field respects the same syntax/
1930
1948
  # resolution as described here: https://git-scm.com/docs/gitrevisions If
@@ -1951,6 +1969,7 @@ module Google
1951
1969
  @github_enterprise_config = args[:github_enterprise_config] if args.key?(:github_enterprise_config)
1952
1970
  @path = args[:path] if args.key?(:path)
1953
1971
  @repo_type = args[:repo_type] if args.key?(:repo_type)
1972
+ @repository = args[:repository] if args.key?(:repository)
1954
1973
  @revision = args[:revision] if args.key?(:revision)
1955
1974
  @uri = args[:uri] if args.key?(:uri)
1956
1975
  end
@@ -2466,6 +2485,12 @@ module Google
2466
2485
  # @return [String]
2467
2486
  attr_accessor :repo_type
2468
2487
 
2488
+ # The qualified resource name of the Repo API repository Either uri or
2489
+ # repository can be specified and is required.
2490
+ # Corresponds to the JSON property `repository`
2491
+ # @return [String]
2492
+ attr_accessor :repository
2493
+
2469
2494
  # The URI of the repo. Either uri or repository can be specified and is required.
2470
2495
  # Corresponds to the JSON property `uri`
2471
2496
  # @return [String]
@@ -2481,6 +2506,7 @@ module Google
2481
2506
  @github_enterprise_config = args[:github_enterprise_config] if args.key?(:github_enterprise_config)
2482
2507
  @ref = args[:ref] if args.key?(:ref)
2483
2508
  @repo_type = args[:repo_type] if args.key?(:repo_type)
2509
+ @repository = args[:repository] if args.key?(:repository)
2484
2510
  @uri = args[:uri] if args.key?(:uri)
2485
2511
  end
2486
2512
  end
@@ -2921,6 +2947,34 @@ module Google
2921
2947
  end
2922
2948
  end
2923
2949
 
2950
+ # Npm package to upload to Artifact Registry upon successful completion of all
2951
+ # build steps.
2952
+ class NpmPackage
2953
+ include Google::Apis::Core::Hashable
2954
+
2955
+ # Path to the package.json. e.g. workspace/path/to/package
2956
+ # Corresponds to the JSON property `packagePath`
2957
+ # @return [String]
2958
+ attr_accessor :package_path
2959
+
2960
+ # Artifact Registry repository, in the form "https://$REGION-npm.pkg.dev/$
2961
+ # PROJECT/$REPOSITORY" Npm package in the workspace specified by path will be
2962
+ # zipped and uploaded to Artifact Registry with this location as a prefix.
2963
+ # Corresponds to the JSON property `repository`
2964
+ # @return [String]
2965
+ attr_accessor :repository
2966
+
2967
+ def initialize(**args)
2968
+ update!(**args)
2969
+ end
2970
+
2971
+ # Update properties of this object
2972
+ def update!(**args)
2973
+ @package_path = args[:package_path] if args.key?(:package_path)
2974
+ @repository = args[:repository] if args.key?(:repository)
2975
+ end
2976
+ end
2977
+
2924
2978
  # This resource represents a long-running operation that is the result of a
2925
2979
  # network API call.
2926
2980
  class Operation
@@ -3466,6 +3520,11 @@ module Google
3466
3520
  # @return [Array<Google::Apis::CloudbuildV1::UploadedMavenArtifact>]
3467
3521
  attr_accessor :maven_artifacts
3468
3522
 
3523
+ # Npm packages uploaded to Artifact Registry at the end of the build.
3524
+ # Corresponds to the JSON property `npmPackages`
3525
+ # @return [Array<Google::Apis::CloudbuildV1::UploadedNpmPackage>]
3526
+ attr_accessor :npm_packages
3527
+
3469
3528
  # Number of non-container artifacts uploaded to Cloud Storage. Only populated
3470
3529
  # when artifacts are uploaded to Cloud Storage.
3471
3530
  # Corresponds to the JSON property `numArtifacts`
@@ -3489,6 +3548,7 @@ module Google
3489
3548
  @build_step_outputs = args[:build_step_outputs] if args.key?(:build_step_outputs)
3490
3549
  @images = args[:images] if args.key?(:images)
3491
3550
  @maven_artifacts = args[:maven_artifacts] if args.key?(:maven_artifacts)
3551
+ @npm_packages = args[:npm_packages] if args.key?(:npm_packages)
3492
3552
  @num_artifacts = args[:num_artifacts] if args.key?(:num_artifacts)
3493
3553
  @python_packages = args[:python_packages] if args.key?(:python_packages)
3494
3554
  end
@@ -4043,6 +4103,38 @@ module Google
4043
4103
  end
4044
4104
  end
4045
4105
 
4106
+ # An npm package uploaded to Artifact Registry using the NpmPackage directive.
4107
+ class UploadedNpmPackage
4108
+ include Google::Apis::Core::Hashable
4109
+
4110
+ # Container message for hashes of byte content of files, used in
4111
+ # SourceProvenance messages to verify integrity of source input to the build.
4112
+ # Corresponds to the JSON property `fileHashes`
4113
+ # @return [Google::Apis::CloudbuildV1::FileHashes]
4114
+ attr_accessor :file_hashes
4115
+
4116
+ # Start and end times for a build execution phase.
4117
+ # Corresponds to the JSON property `pushTiming`
4118
+ # @return [Google::Apis::CloudbuildV1::TimeSpan]
4119
+ attr_accessor :push_timing
4120
+
4121
+ # URI of the uploaded npm package.
4122
+ # Corresponds to the JSON property `uri`
4123
+ # @return [String]
4124
+ attr_accessor :uri
4125
+
4126
+ def initialize(**args)
4127
+ update!(**args)
4128
+ end
4129
+
4130
+ # Update properties of this object
4131
+ def update!(**args)
4132
+ @file_hashes = args[:file_hashes] if args.key?(:file_hashes)
4133
+ @push_timing = args[:push_timing] if args.key?(:push_timing)
4134
+ @uri = args[:uri] if args.key?(:uri)
4135
+ end
4136
+ end
4137
+
4046
4138
  # Artifact uploaded using the PythonPackage directive.
4047
4139
  class UploadedPythonPackage
4048
4140
  include Google::Apis::Core::Hashable
@@ -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.49.0"
19
+ GEM_VERSION = "0.51.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 = "20230406"
25
+ REVISION = "20230505"
26
26
  end
27
27
  end
28
28
  end
@@ -418,6 +418,12 @@ module Google
418
418
  include Google::Apis::Core::JsonObjectSupport
419
419
  end
420
420
 
421
+ class NpmPackage
422
+ class Representation < Google::Apis::Core::JsonRepresentation; end
423
+
424
+ include Google::Apis::Core::JsonObjectSupport
425
+ end
426
+
421
427
  class Operation
422
428
  class Representation < Google::Apis::Core::JsonRepresentation; end
423
429
 
@@ -610,6 +616,12 @@ module Google
610
616
  include Google::Apis::Core::JsonObjectSupport
611
617
  end
612
618
 
619
+ class UploadedNpmPackage
620
+ class Representation < Google::Apis::Core::JsonRepresentation; end
621
+
622
+ include Google::Apis::Core::JsonObjectSupport
623
+ end
624
+
613
625
  class UploadedPythonPackage
614
626
  class Representation < Google::Apis::Core::JsonRepresentation; end
615
627
 
@@ -697,6 +709,8 @@ module Google
697
709
  collection :images, as: 'images'
698
710
  collection :maven_artifacts, as: 'mavenArtifacts', class: Google::Apis::CloudbuildV1::MavenArtifact, decorator: Google::Apis::CloudbuildV1::MavenArtifact::Representation
699
711
 
712
+ collection :npm_packages, as: 'npmPackages', class: Google::Apis::CloudbuildV1::NpmPackage, decorator: Google::Apis::CloudbuildV1::NpmPackage::Representation
713
+
700
714
  property :objects, as: 'objects', class: Google::Apis::CloudbuildV1::ArtifactObjects, decorator: Google::Apis::CloudbuildV1::ArtifactObjects::Representation
701
715
 
702
716
  collection :python_packages, as: 'pythonPackages', class: Google::Apis::CloudbuildV1::PythonPackage, decorator: Google::Apis::CloudbuildV1::PythonPackage::Representation
@@ -1130,6 +1144,7 @@ module Google
1130
1144
  property :github_enterprise_config, as: 'githubEnterpriseConfig'
1131
1145
  property :path, as: 'path'
1132
1146
  property :repo_type, as: 'repoType'
1147
+ property :repository, as: 'repository'
1133
1148
  property :revision, as: 'revision'
1134
1149
  property :uri, as: 'uri'
1135
1150
  end
@@ -1267,6 +1282,7 @@ module Google
1267
1282
  property :github_enterprise_config, as: 'githubEnterpriseConfig'
1268
1283
  property :ref, as: 'ref'
1269
1284
  property :repo_type, as: 'repoType'
1285
+ property :repository, as: 'repository'
1270
1286
  property :uri, as: 'uri'
1271
1287
  end
1272
1288
  end
@@ -1396,6 +1412,14 @@ module Google
1396
1412
  end
1397
1413
  end
1398
1414
 
1415
+ class NpmPackage
1416
+ # @private
1417
+ class Representation < Google::Apis::Core::JsonRepresentation
1418
+ property :package_path, as: 'packagePath'
1419
+ property :repository, as: 'repository'
1420
+ end
1421
+ end
1422
+
1399
1423
  class Operation
1400
1424
  # @private
1401
1425
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1543,6 +1567,8 @@ module Google
1543
1567
 
1544
1568
  collection :maven_artifacts, as: 'mavenArtifacts', class: Google::Apis::CloudbuildV1::UploadedMavenArtifact, decorator: Google::Apis::CloudbuildV1::UploadedMavenArtifact::Representation
1545
1569
 
1570
+ collection :npm_packages, as: 'npmPackages', class: Google::Apis::CloudbuildV1::UploadedNpmPackage, decorator: Google::Apis::CloudbuildV1::UploadedNpmPackage::Representation
1571
+
1546
1572
  property :num_artifacts, :numeric_string => true, as: 'numArtifacts'
1547
1573
  collection :python_packages, as: 'pythonPackages', class: Google::Apis::CloudbuildV1::UploadedPythonPackage, decorator: Google::Apis::CloudbuildV1::UploadedPythonPackage::Representation
1548
1574
 
@@ -1711,6 +1737,17 @@ module Google
1711
1737
  end
1712
1738
  end
1713
1739
 
1740
+ class UploadedNpmPackage
1741
+ # @private
1742
+ class Representation < Google::Apis::Core::JsonRepresentation
1743
+ property :file_hashes, as: 'fileHashes', class: Google::Apis::CloudbuildV1::FileHashes, decorator: Google::Apis::CloudbuildV1::FileHashes::Representation
1744
+
1745
+ property :push_timing, as: 'pushTiming', class: Google::Apis::CloudbuildV1::TimeSpan, decorator: Google::Apis::CloudbuildV1::TimeSpan::Representation
1746
+
1747
+ property :uri, as: 'uri'
1748
+ end
1749
+ end
1750
+
1714
1751
  class UploadedPythonPackage
1715
1752
  # @private
1716
1753
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1890,6 +1890,10 @@ module Google
1890
1890
  # Required. ID of the project that owns the trigger.
1891
1891
  # @param [String] trigger_id
1892
1892
  # Required. ID of the `BuildTrigger` to update.
1893
+ # @param [String] update_mask
1894
+ # Update mask for the resource. If this is set, the server will only update the
1895
+ # fields specified in the field mask. Otherwise, a full update of the mutable
1896
+ # resource fields will be performed.
1893
1897
  # @param [String] fields
1894
1898
  # Selector specifying which fields to include in a partial response.
1895
1899
  # @param [String] quota_user
@@ -1907,7 +1911,7 @@ module Google
1907
1911
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1908
1912
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1909
1913
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1910
- def patch_project_location_trigger(resource_name, build_trigger_object = nil, project_id: nil, trigger_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1914
+ def patch_project_location_trigger(resource_name, build_trigger_object = nil, project_id: nil, trigger_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1911
1915
  command = make_simple_command(:patch, 'v1/{+resourceName}', options)
1912
1916
  command.request_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
1913
1917
  command.request_object = build_trigger_object
@@ -1916,6 +1920,7 @@ module Google
1916
1920
  command.params['resourceName'] = resource_name unless resource_name.nil?
1917
1921
  command.query['projectId'] = project_id unless project_id.nil?
1918
1922
  command.query['triggerId'] = trigger_id unless trigger_id.nil?
1923
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1919
1924
  command.query['fields'] = fields unless fields.nil?
1920
1925
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1921
1926
  execute_or_queue_command(command, &block)
@@ -2361,6 +2366,10 @@ module Google
2361
2366
  # @param [String] trigger_id
2362
2367
  # Required. ID of the `BuildTrigger` to update.
2363
2368
  # @param [Google::Apis::CloudbuildV1::BuildTrigger] build_trigger_object
2369
+ # @param [String] update_mask
2370
+ # Update mask for the resource. If this is set, the server will only update the
2371
+ # fields specified in the field mask. Otherwise, a full update of the mutable
2372
+ # resource fields will be performed.
2364
2373
  # @param [String] fields
2365
2374
  # Selector specifying which fields to include in a partial response.
2366
2375
  # @param [String] quota_user
@@ -2378,7 +2387,7 @@ module Google
2378
2387
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2379
2388
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2380
2389
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2381
- def patch_project_trigger(project_id, trigger_id, build_trigger_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2390
+ def patch_project_trigger(project_id, trigger_id, build_trigger_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2382
2391
  command = make_simple_command(:patch, 'v1/projects/{projectId}/triggers/{triggerId}', options)
2383
2392
  command.request_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
2384
2393
  command.request_object = build_trigger_object
@@ -2386,6 +2395,7 @@ module Google
2386
2395
  command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
2387
2396
  command.params['projectId'] = project_id unless project_id.nil?
2388
2397
  command.params['triggerId'] = trigger_id unless trigger_id.nil?
2398
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2389
2399
  command.query['fields'] = fields unless fields.nil?
2390
2400
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2391
2401
  execute_or_queue_command(command, &block)
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.49.0
4
+ version: 0.51.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-04-16 00:00:00.000000000 Z
11
+ date: 2023-05-14 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.49.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-cloudbuild_v1/v0.51.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: []