google-apis-cloudbuild_v1 0.4.0 → 0.9.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: 239516c00fb600c058808b06532f69b587e22b0863c504e347200f56ffb3913a
4
- data.tar.gz: 3c3cb7f8ddcf1f2075175f2c072e5515ddeef2d13841b701d624345253d33ff4
3
+ metadata.gz: cb13c0617978b9a1124a8c0a0c1f7d80ac5f88db1142fae012c23ebce04f08b8
4
+ data.tar.gz: a9f5773141445285fb028cfbd33b1390e4486b7cffc7ae483c4a0afc806ac432
5
5
  SHA512:
6
- metadata.gz: abccf069efdf527e64753cf532149af00c1ee9fcfa509ff27399142ce44db4880516990c588a5b370bc196e6b4638c8fe948d99d215b949a767b439e4b5c5d58
7
- data.tar.gz: 4411887cee54cba6cb7b72a65d8171eef062fa53d20af5bb1eaae7d4d283954060db811e3fe2f2444819d8dab95ac8cfdd7ab3be351cccffc62a80c59fe93de4
6
+ metadata.gz: 6f6c1cfc11f6bf5be20143118a330c41201dc3d65e08469255332e265f676d5d85bcc56b89f29dd5eda8300359f4536f11b8a0ad4a846cc97a14ae5d297b6c3e
7
+ data.tar.gz: 11fe12ff928ebd38e93cc30ab08301c20c5c79e4145204e3b8008d075fb488234ed42a230e07f30b7430ca480fbe39602f35de72965c366eba0bc344a6a55b1b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # Release history for google-apis-cloudbuild_v1
2
2
 
3
+ ### v0.9.0 (2021-06-24)
4
+
5
+ * Unspecified changes
6
+
7
+ ### v0.8.0 (2021-06-16)
8
+
9
+ * Regenerated from discovery document revision 20210613
10
+ * Regenerated using generator version 0.3.0
11
+
12
+ ### v0.7.0 (2021-05-19)
13
+
14
+ * Unspecified changes
15
+
16
+ ### v0.6.0 (2021-05-12)
17
+
18
+ * Regenerated from discovery document revision 20210511
19
+
20
+ ### v0.5.0 (2021-03-23)
21
+
22
+ * Regenerated from discovery document revision 20210319
23
+ * Regenerated using generator version 0.2.0
24
+
3
25
  ### v0.4.0 (2021-03-04)
4
26
 
5
27
  * Unspecified changes
@@ -29,7 +29,7 @@ module Google
29
29
  # This is NOT the gem version.
30
30
  VERSION = 'V1'
31
31
 
32
- # View and manage your data across Google Cloud Platform services
32
+ # See, edit, configure, and delete your Google Cloud Platform data
33
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
34
34
  end
35
35
  end
@@ -223,7 +223,7 @@ module Google
223
223
 
224
224
  # IAM service account whose credentials will be used at build runtime. Must be
225
225
  # of the format `projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT``. ACCOUNT can
226
- # be email address or uniqueId of the service account. This field is in beta.
226
+ # be email address or uniqueId of the service account.
227
227
  # Corresponds to the JSON property `serviceAccount`
228
228
  # @return [String]
229
229
  attr_accessor :service_account
@@ -285,6 +285,11 @@ module Google
285
285
  # @return [Hash<String,Google::Apis::CloudbuildV1::TimeSpan>]
286
286
  attr_accessor :timing
287
287
 
288
+ # Output only. Non-fatal problems encountered during the execution of the build.
289
+ # Corresponds to the JSON property `warnings`
290
+ # @return [Array<Google::Apis::CloudbuildV1::Warning>]
291
+ attr_accessor :warnings
292
+
288
293
  def initialize(**args)
289
294
  update!(**args)
290
295
  end
@@ -317,6 +322,7 @@ module Google
317
322
  @tags = args[:tags] if args.key?(:tags)
318
323
  @timeout = args[:timeout] if args.key?(:timeout)
319
324
  @timing = args[:timing] if args.key?(:timing)
325
+ @warnings = args[:warnings] if args.key?(:warnings)
320
326
  end
321
327
  end
322
328
 
@@ -627,6 +633,11 @@ module Google
627
633
  # @return [String]
628
634
  attr_accessor :filename
629
635
 
636
+ # Optional. A Common Expression Language string.
637
+ # Corresponds to the JSON property `filter`
638
+ # @return [String]
639
+ attr_accessor :filter
640
+
630
641
  # GitHubEventsConfig describes the configuration of a trigger that creates a
631
642
  # build whenever a GitHub event is received. This message is experimental.
632
643
  # Corresponds to the JSON property `github`
@@ -666,6 +677,19 @@ module Google
666
677
  # @return [String]
667
678
  attr_accessor :name
668
679
 
680
+ # PubsubConfig describes the configuration of a trigger that creates a build
681
+ # whenever a Pub/Sub message is published.
682
+ # Corresponds to the JSON property `pubsubConfig`
683
+ # @return [Google::Apis::CloudbuildV1::PubsubConfig]
684
+ attr_accessor :pubsub_config
685
+
686
+ # The `Trigger` name with format: `projects/`project`/locations/`location`/
687
+ # triggers/`trigger``, where `trigger` is a unique identifier generated by the
688
+ # service.
689
+ # Corresponds to the JSON property `resourceName`
690
+ # @return [String]
691
+ attr_accessor :resource_name
692
+
669
693
  # Substitutions for Build resource. The keys must match the following regular
670
694
  # expression: `^_[A-Z0-9_]+$`.
671
695
  # Corresponds to the JSON property `substitutions`
@@ -682,6 +706,12 @@ module Google
682
706
  # @return [Google::Apis::CloudbuildV1::RepoSource]
683
707
  attr_accessor :trigger_template
684
708
 
709
+ # WebhookConfig describes the configuration of a trigger that creates a build
710
+ # whenever a webhook is sent to a trigger's webhook URL.
711
+ # Corresponds to the JSON property `webhookConfig`
712
+ # @return [Google::Apis::CloudbuildV1::WebhookConfig]
713
+ attr_accessor :webhook_config
714
+
685
715
  def initialize(**args)
686
716
  update!(**args)
687
717
  end
@@ -693,14 +723,18 @@ module Google
693
723
  @description = args[:description] if args.key?(:description)
694
724
  @disabled = args[:disabled] if args.key?(:disabled)
695
725
  @filename = args[:filename] if args.key?(:filename)
726
+ @filter = args[:filter] if args.key?(:filter)
696
727
  @github = args[:github] if args.key?(:github)
697
728
  @id = args[:id] if args.key?(:id)
698
729
  @ignored_files = args[:ignored_files] if args.key?(:ignored_files)
699
730
  @included_files = args[:included_files] if args.key?(:included_files)
700
731
  @name = args[:name] if args.key?(:name)
732
+ @pubsub_config = args[:pubsub_config] if args.key?(:pubsub_config)
733
+ @resource_name = args[:resource_name] if args.key?(:resource_name)
701
734
  @substitutions = args[:substitutions] if args.key?(:substitutions)
702
735
  @tags = args[:tags] if args.key?(:tags)
703
736
  @trigger_template = args[:trigger_template] if args.key?(:trigger_template)
737
+ @webhook_config = args[:webhook_config] if args.key?(:webhook_config)
704
738
  end
705
739
  end
706
740
 
@@ -1292,6 +1326,47 @@ module Google
1292
1326
  end
1293
1327
  end
1294
1328
 
1329
+ # PubsubConfig describes the configuration of a trigger that creates a build
1330
+ # whenever a Pub/Sub message is published.
1331
+ class PubsubConfig
1332
+ include Google::Apis::Core::Hashable
1333
+
1334
+ # Service account that will make the push request.
1335
+ # Corresponds to the JSON property `serviceAccountEmail`
1336
+ # @return [String]
1337
+ attr_accessor :service_account_email
1338
+
1339
+ # Potential issues with the underlying Pub/Sub subscription configuration. Only
1340
+ # populated on get requests.
1341
+ # Corresponds to the JSON property `state`
1342
+ # @return [String]
1343
+ attr_accessor :state
1344
+
1345
+ # Output only. Name of the subscription. Format is `projects/`project`/
1346
+ # subscriptions/`subscription``.
1347
+ # Corresponds to the JSON property `subscription`
1348
+ # @return [String]
1349
+ attr_accessor :subscription
1350
+
1351
+ # The name of the topic from which this subscription is receiving messages.
1352
+ # Format is `projects/`project`/topics/`topic``.
1353
+ # Corresponds to the JSON property `topic`
1354
+ # @return [String]
1355
+ attr_accessor :topic
1356
+
1357
+ def initialize(**args)
1358
+ update!(**args)
1359
+ end
1360
+
1361
+ # Update properties of this object
1362
+ def update!(**args)
1363
+ @service_account_email = args[:service_account_email] if args.key?(:service_account_email)
1364
+ @state = args[:state] if args.key?(:state)
1365
+ @subscription = args[:subscription] if args.key?(:subscription)
1366
+ @topic = args[:topic] if args.key?(:topic)
1367
+ end
1368
+ end
1369
+
1295
1370
  # PullRequestFilter contains filter properties for matching GitHub Pull Requests.
1296
1371
  class PullRequestFilter
1297
1372
  include Google::Apis::Core::Hashable
@@ -1532,6 +1607,37 @@ module Google
1532
1607
  end
1533
1608
  end
1534
1609
 
1610
+ # Specifies a build trigger to run and the source to use.
1611
+ class RunBuildTriggerRequest
1612
+ include Google::Apis::Core::Hashable
1613
+
1614
+ # Required. ID of the project.
1615
+ # Corresponds to the JSON property `projectId`
1616
+ # @return [String]
1617
+ attr_accessor :project_id
1618
+
1619
+ # Location of the source in a Google Cloud Source Repository.
1620
+ # Corresponds to the JSON property `source`
1621
+ # @return [Google::Apis::CloudbuildV1::RepoSource]
1622
+ attr_accessor :source
1623
+
1624
+ # Required. ID of the trigger.
1625
+ # Corresponds to the JSON property `triggerId`
1626
+ # @return [String]
1627
+ attr_accessor :trigger_id
1628
+
1629
+ def initialize(**args)
1630
+ update!(**args)
1631
+ end
1632
+
1633
+ # Update properties of this object
1634
+ def update!(**args)
1635
+ @project_id = args[:project_id] if args.key?(:project_id)
1636
+ @source = args[:source] if args.key?(:source)
1637
+ @trigger_id = args[:trigger_id] if args.key?(:trigger_id)
1638
+ end
1639
+ end
1640
+
1535
1641
  # SMTPDelivery is the delivery configuration for an SMTP (email) notification.
1536
1642
  class SmtpDelivery
1537
1643
  include Google::Apis::Core::Hashable
@@ -1704,6 +1810,12 @@ module Google
1704
1810
  # @return [Google::Apis::CloudbuildV1::StorageSource]
1705
1811
  attr_accessor :storage_source
1706
1812
 
1813
+ # Location of the source manifest in Google Cloud Storage. This feature is in
1814
+ # Preview.
1815
+ # Corresponds to the JSON property `storageSourceManifest`
1816
+ # @return [Google::Apis::CloudbuildV1::StorageSourceManifest]
1817
+ attr_accessor :storage_source_manifest
1818
+
1707
1819
  def initialize(**args)
1708
1820
  update!(**args)
1709
1821
  end
@@ -1712,6 +1824,7 @@ module Google
1712
1824
  def update!(**args)
1713
1825
  @repo_source = args[:repo_source] if args.key?(:repo_source)
1714
1826
  @storage_source = args[:storage_source] if args.key?(:storage_source)
1827
+ @storage_source_manifest = args[:storage_source_manifest] if args.key?(:storage_source_manifest)
1715
1828
  end
1716
1829
  end
1717
1830
 
@@ -1741,6 +1854,12 @@ module Google
1741
1854
  # @return [Google::Apis::CloudbuildV1::StorageSource]
1742
1855
  attr_accessor :resolved_storage_source
1743
1856
 
1857
+ # Location of the source manifest in Google Cloud Storage. This feature is in
1858
+ # Preview.
1859
+ # Corresponds to the JSON property `resolvedStorageSourceManifest`
1860
+ # @return [Google::Apis::CloudbuildV1::StorageSourceManifest]
1861
+ attr_accessor :resolved_storage_source_manifest
1862
+
1744
1863
  def initialize(**args)
1745
1864
  update!(**args)
1746
1865
  end
@@ -1750,6 +1869,7 @@ module Google
1750
1869
  @file_hashes = args[:file_hashes] if args.key?(:file_hashes)
1751
1870
  @resolved_repo_source = args[:resolved_repo_source] if args.key?(:resolved_repo_source)
1752
1871
  @resolved_storage_source = args[:resolved_storage_source] if args.key?(:resolved_storage_source)
1872
+ @resolved_storage_source_manifest = args[:resolved_storage_source_manifest] if args.key?(:resolved_storage_source_manifest)
1753
1873
  end
1754
1874
  end
1755
1875
 
@@ -1827,6 +1947,42 @@ module Google
1827
1947
  end
1828
1948
  end
1829
1949
 
1950
+ # Location of the source manifest in Google Cloud Storage. This feature is in
1951
+ # Preview.
1952
+ class StorageSourceManifest
1953
+ include Google::Apis::Core::Hashable
1954
+
1955
+ # Google Cloud Storage bucket containing the source manifest (see [Bucket Name
1956
+ # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)
1957
+ # ).
1958
+ # Corresponds to the JSON property `bucket`
1959
+ # @return [String]
1960
+ attr_accessor :bucket
1961
+
1962
+ # Google Cloud Storage generation for the object. If the generation is omitted,
1963
+ # the latest generation will be used.
1964
+ # Corresponds to the JSON property `generation`
1965
+ # @return [Fixnum]
1966
+ attr_accessor :generation
1967
+
1968
+ # Google Cloud Storage object containing the source manifest. This object must
1969
+ # be a JSON file.
1970
+ # Corresponds to the JSON property `object`
1971
+ # @return [String]
1972
+ attr_accessor :object
1973
+
1974
+ def initialize(**args)
1975
+ update!(**args)
1976
+ end
1977
+
1978
+ # Update properties of this object
1979
+ def update!(**args)
1980
+ @bucket = args[:bucket] if args.key?(:bucket)
1981
+ @generation = args[:generation] if args.key?(:generation)
1982
+ @object = args[:object] if args.key?(:object)
1983
+ end
1984
+ end
1985
+
1830
1986
  # Start and end times for a build execution phase.
1831
1987
  class TimeSpan
1832
1988
  include Google::Apis::Core::Hashable
@@ -1881,6 +2037,58 @@ module Google
1881
2037
  @path = args[:path] if args.key?(:path)
1882
2038
  end
1883
2039
  end
2040
+
2041
+ # A non-fatal problem encountered during the execution of the build.
2042
+ class Warning
2043
+ include Google::Apis::Core::Hashable
2044
+
2045
+ # The priority for this warning.
2046
+ # Corresponds to the JSON property `priority`
2047
+ # @return [String]
2048
+ attr_accessor :priority
2049
+
2050
+ # Explanation of the warning generated.
2051
+ # Corresponds to the JSON property `text`
2052
+ # @return [String]
2053
+ attr_accessor :text
2054
+
2055
+ def initialize(**args)
2056
+ update!(**args)
2057
+ end
2058
+
2059
+ # Update properties of this object
2060
+ def update!(**args)
2061
+ @priority = args[:priority] if args.key?(:priority)
2062
+ @text = args[:text] if args.key?(:text)
2063
+ end
2064
+ end
2065
+
2066
+ # WebhookConfig describes the configuration of a trigger that creates a build
2067
+ # whenever a webhook is sent to a trigger's webhook URL.
2068
+ class WebhookConfig
2069
+ include Google::Apis::Core::Hashable
2070
+
2071
+ # Required. Resource name for the secret required as a URL parameter.
2072
+ # Corresponds to the JSON property `secret`
2073
+ # @return [String]
2074
+ attr_accessor :secret
2075
+
2076
+ # Potential issues with the underlying Pub/Sub subscription configuration. Only
2077
+ # populated on get requests.
2078
+ # Corresponds to the JSON property `state`
2079
+ # @return [String]
2080
+ attr_accessor :state
2081
+
2082
+ def initialize(**args)
2083
+ update!(**args)
2084
+ end
2085
+
2086
+ # Update properties of this object
2087
+ def update!(**args)
2088
+ @secret = args[:secret] if args.key?(:secret)
2089
+ @state = args[:state] if args.key?(:state)
2090
+ end
2091
+ end
1884
2092
  end
1885
2093
  end
1886
2094
  end
@@ -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.4.0"
19
+ GEM_VERSION = "0.9.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.2"
22
+ GENERATOR_VERSION = "0.3.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210218"
25
+ REVISION = "20210613"
26
26
  end
27
27
  end
28
28
  end
@@ -184,6 +184,12 @@ module Google
184
184
  include Google::Apis::Core::JsonObjectSupport
185
185
  end
186
186
 
187
+ class PubsubConfig
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
187
193
  class PullRequestFilter
188
194
  class Representation < Google::Apis::Core::JsonRepresentation; end
189
195
 
@@ -220,6 +226,12 @@ module Google
220
226
  include Google::Apis::Core::JsonObjectSupport
221
227
  end
222
228
 
229
+ class RunBuildTriggerRequest
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
223
235
  class SmtpDelivery
224
236
  class Representation < Google::Apis::Core::JsonRepresentation; end
225
237
 
@@ -274,6 +286,12 @@ module Google
274
286
  include Google::Apis::Core::JsonObjectSupport
275
287
  end
276
288
 
289
+ class StorageSourceManifest
290
+ class Representation < Google::Apis::Core::JsonRepresentation; end
291
+
292
+ include Google::Apis::Core::JsonObjectSupport
293
+ end
294
+
277
295
  class TimeSpan
278
296
  class Representation < Google::Apis::Core::JsonRepresentation; end
279
297
 
@@ -286,6 +304,18 @@ module Google
286
304
  include Google::Apis::Core::JsonObjectSupport
287
305
  end
288
306
 
307
+ class Warning
308
+ class Representation < Google::Apis::Core::JsonRepresentation; end
309
+
310
+ include Google::Apis::Core::JsonObjectSupport
311
+ end
312
+
313
+ class WebhookConfig
314
+ class Representation < Google::Apis::Core::JsonRepresentation; end
315
+
316
+ include Google::Apis::Core::JsonObjectSupport
317
+ end
318
+
289
319
  class ArtifactObjects
290
320
  # @private
291
321
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -352,6 +382,8 @@ module Google
352
382
  property :timeout, as: 'timeout'
353
383
  hash :timing, as: 'timing', class: Google::Apis::CloudbuildV1::TimeSpan, decorator: Google::Apis::CloudbuildV1::TimeSpan::Representation
354
384
 
385
+ collection :warnings, as: 'warnings', class: Google::Apis::CloudbuildV1::Warning, decorator: Google::Apis::CloudbuildV1::Warning::Representation
386
+
355
387
  end
356
388
  end
357
389
 
@@ -413,16 +445,22 @@ module Google
413
445
  property :description, as: 'description'
414
446
  property :disabled, as: 'disabled'
415
447
  property :filename, as: 'filename'
448
+ property :filter, as: 'filter'
416
449
  property :github, as: 'github', class: Google::Apis::CloudbuildV1::GitHubEventsConfig, decorator: Google::Apis::CloudbuildV1::GitHubEventsConfig::Representation
417
450
 
418
451
  property :id, as: 'id'
419
452
  collection :ignored_files, as: 'ignoredFiles'
420
453
  collection :included_files, as: 'includedFiles'
421
454
  property :name, as: 'name'
455
+ property :pubsub_config, as: 'pubsubConfig', class: Google::Apis::CloudbuildV1::PubsubConfig, decorator: Google::Apis::CloudbuildV1::PubsubConfig::Representation
456
+
457
+ property :resource_name, as: 'resourceName'
422
458
  hash :substitutions, as: 'substitutions'
423
459
  collection :tags, as: 'tags'
424
460
  property :trigger_template, as: 'triggerTemplate', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
425
461
 
462
+ property :webhook_config, as: 'webhookConfig', class: Google::Apis::CloudbuildV1::WebhookConfig, decorator: Google::Apis::CloudbuildV1::WebhookConfig::Representation
463
+
426
464
  end
427
465
  end
428
466
 
@@ -599,6 +637,16 @@ module Google
599
637
  end
600
638
  end
601
639
 
640
+ class PubsubConfig
641
+ # @private
642
+ class Representation < Google::Apis::Core::JsonRepresentation
643
+ property :service_account_email, as: 'serviceAccountEmail'
644
+ property :state, as: 'state'
645
+ property :subscription, as: 'subscription'
646
+ property :topic, as: 'topic'
647
+ end
648
+ end
649
+
602
650
  class PullRequestFilter
603
651
  # @private
604
652
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -660,6 +708,16 @@ module Google
660
708
  end
661
709
  end
662
710
 
711
+ class RunBuildTriggerRequest
712
+ # @private
713
+ class Representation < Google::Apis::Core::JsonRepresentation
714
+ property :project_id, as: 'projectId'
715
+ property :source, as: 'source', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
716
+
717
+ property :trigger_id, as: 'triggerId'
718
+ end
719
+ end
720
+
663
721
  class SmtpDelivery
664
722
  # @private
665
723
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -714,6 +772,8 @@ module Google
714
772
 
715
773
  property :storage_source, as: 'storageSource', class: Google::Apis::CloudbuildV1::StorageSource, decorator: Google::Apis::CloudbuildV1::StorageSource::Representation
716
774
 
775
+ property :storage_source_manifest, as: 'storageSourceManifest', class: Google::Apis::CloudbuildV1::StorageSourceManifest, decorator: Google::Apis::CloudbuildV1::StorageSourceManifest::Representation
776
+
717
777
  end
718
778
  end
719
779
 
@@ -726,6 +786,8 @@ module Google
726
786
 
727
787
  property :resolved_storage_source, as: 'resolvedStorageSource', class: Google::Apis::CloudbuildV1::StorageSource, decorator: Google::Apis::CloudbuildV1::StorageSource::Representation
728
788
 
789
+ property :resolved_storage_source_manifest, as: 'resolvedStorageSourceManifest', class: Google::Apis::CloudbuildV1::StorageSourceManifest, decorator: Google::Apis::CloudbuildV1::StorageSourceManifest::Representation
790
+
729
791
  end
730
792
  end
731
793
 
@@ -747,6 +809,15 @@ module Google
747
809
  end
748
810
  end
749
811
 
812
+ class StorageSourceManifest
813
+ # @private
814
+ class Representation < Google::Apis::Core::JsonRepresentation
815
+ property :bucket, as: 'bucket'
816
+ property :generation, :numeric_string => true, as: 'generation'
817
+ property :object, as: 'object'
818
+ end
819
+ end
820
+
750
821
  class TimeSpan
751
822
  # @private
752
823
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -762,6 +833,22 @@ module Google
762
833
  property :path, as: 'path'
763
834
  end
764
835
  end
836
+
837
+ class Warning
838
+ # @private
839
+ class Representation < Google::Apis::Core::JsonRepresentation
840
+ property :priority, as: 'priority'
841
+ property :text, as: 'text'
842
+ end
843
+ end
844
+
845
+ class WebhookConfig
846
+ # @private
847
+ class Representation < Google::Apis::Core::JsonRepresentation
848
+ property :secret, as: 'secret'
849
+ property :state, as: 'state'
850
+ end
851
+ end
765
852
  end
766
853
  end
767
854
  end
@@ -613,10 +613,285 @@ module Google
613
613
  execute_or_queue_command(command, &block)
614
614
  end
615
615
 
616
+ # Creates a new `BuildTrigger`. This API is experimental.
617
+ # @param [String] parent
618
+ # The parent resource where this trigger will be created. Format: `projects/`
619
+ # project`/locations/`location``
620
+ # @param [Google::Apis::CloudbuildV1::BuildTrigger] build_trigger_object
621
+ # @param [String] project_id
622
+ # Required. ID of the project for which to configure automatic builds.
623
+ # @param [String] fields
624
+ # Selector specifying which fields to include in a partial response.
625
+ # @param [String] quota_user
626
+ # Available to use for quota purposes for server-side applications. Can be any
627
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
628
+ # @param [Google::Apis::RequestOptions] options
629
+ # Request-specific options
630
+ #
631
+ # @yield [result, err] Result & error if block supplied
632
+ # @yieldparam result [Google::Apis::CloudbuildV1::BuildTrigger] parsed result object
633
+ # @yieldparam err [StandardError] error object if request failed
634
+ #
635
+ # @return [Google::Apis::CloudbuildV1::BuildTrigger]
636
+ #
637
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
638
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
639
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
640
+ def create_project_location_trigger(parent, build_trigger_object = nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
641
+ command = make_simple_command(:post, 'v1/{+parent}/triggers', options)
642
+ command.request_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
643
+ command.request_object = build_trigger_object
644
+ command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
645
+ command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
646
+ command.params['parent'] = parent unless parent.nil?
647
+ command.query['projectId'] = project_id unless project_id.nil?
648
+ command.query['fields'] = fields unless fields.nil?
649
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
650
+ execute_or_queue_command(command, &block)
651
+ end
652
+
653
+ # Deletes a `BuildTrigger` by its project ID and trigger ID. This API is
654
+ # experimental.
655
+ # @param [String] name
656
+ # The name of the `Trigger` to delete. Format: `projects/`project`/locations/`
657
+ # location`/triggers/`trigger``
658
+ # @param [String] project_id
659
+ # Required. ID of the project that owns the trigger.
660
+ # @param [String] trigger_id
661
+ # Required. ID of the `BuildTrigger` to delete.
662
+ # @param [String] fields
663
+ # Selector specifying which fields to include in a partial response.
664
+ # @param [String] quota_user
665
+ # Available to use for quota purposes for server-side applications. Can be any
666
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
667
+ # @param [Google::Apis::RequestOptions] options
668
+ # Request-specific options
669
+ #
670
+ # @yield [result, err] Result & error if block supplied
671
+ # @yieldparam result [Google::Apis::CloudbuildV1::Empty] parsed result object
672
+ # @yieldparam err [StandardError] error object if request failed
673
+ #
674
+ # @return [Google::Apis::CloudbuildV1::Empty]
675
+ #
676
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
677
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
678
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
679
+ def delete_project_location_trigger(name, project_id: nil, trigger_id: nil, fields: nil, quota_user: nil, options: nil, &block)
680
+ command = make_simple_command(:delete, 'v1/{+name}', options)
681
+ command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation
682
+ command.response_class = Google::Apis::CloudbuildV1::Empty
683
+ command.params['name'] = name unless name.nil?
684
+ command.query['projectId'] = project_id unless project_id.nil?
685
+ command.query['triggerId'] = trigger_id unless trigger_id.nil?
686
+ command.query['fields'] = fields unless fields.nil?
687
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
688
+ execute_or_queue_command(command, &block)
689
+ end
690
+
691
+ # Returns information about a `BuildTrigger`. This API is experimental.
692
+ # @param [String] name
693
+ # The name of the `Trigger` to retrieve. Format: `projects/`project`/locations/`
694
+ # location`/triggers/`trigger``
695
+ # @param [String] project_id
696
+ # Required. ID of the project that owns the trigger.
697
+ # @param [String] trigger_id
698
+ # Required. Identifier (`id` or `name`) of the `BuildTrigger` to get.
699
+ # @param [String] fields
700
+ # Selector specifying which fields to include in a partial response.
701
+ # @param [String] quota_user
702
+ # Available to use for quota purposes for server-side applications. Can be any
703
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
704
+ # @param [Google::Apis::RequestOptions] options
705
+ # Request-specific options
706
+ #
707
+ # @yield [result, err] Result & error if block supplied
708
+ # @yieldparam result [Google::Apis::CloudbuildV1::BuildTrigger] parsed result object
709
+ # @yieldparam err [StandardError] error object if request failed
710
+ #
711
+ # @return [Google::Apis::CloudbuildV1::BuildTrigger]
712
+ #
713
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
714
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
715
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
716
+ def get_project_location_trigger(name, project_id: nil, trigger_id: nil, fields: nil, quota_user: nil, options: nil, &block)
717
+ command = make_simple_command(:get, 'v1/{+name}', options)
718
+ command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
719
+ command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
720
+ command.params['name'] = name unless name.nil?
721
+ command.query['projectId'] = project_id unless project_id.nil?
722
+ command.query['triggerId'] = trigger_id unless trigger_id.nil?
723
+ command.query['fields'] = fields unless fields.nil?
724
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
725
+ execute_or_queue_command(command, &block)
726
+ end
727
+
728
+ # Lists existing `BuildTrigger`s. This API is experimental.
729
+ # @param [String] parent
730
+ # The parent of the collection of `Triggers`. Format: `projects/`project`/
731
+ # locations/`location``
732
+ # @param [Fixnum] page_size
733
+ # Number of results to return in the list.
734
+ # @param [String] page_token
735
+ # Token to provide to skip to a particular spot in the list.
736
+ # @param [String] project_id
737
+ # Required. ID of the project for which to list BuildTriggers.
738
+ # @param [String] fields
739
+ # Selector specifying which fields to include in a partial response.
740
+ # @param [String] quota_user
741
+ # Available to use for quota purposes for server-side applications. Can be any
742
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
743
+ # @param [Google::Apis::RequestOptions] options
744
+ # Request-specific options
745
+ #
746
+ # @yield [result, err] Result & error if block supplied
747
+ # @yieldparam result [Google::Apis::CloudbuildV1::ListBuildTriggersResponse] parsed result object
748
+ # @yieldparam err [StandardError] error object if request failed
749
+ #
750
+ # @return [Google::Apis::CloudbuildV1::ListBuildTriggersResponse]
751
+ #
752
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
753
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
754
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
755
+ def list_project_location_triggers(parent, page_size: nil, page_token: nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
756
+ command = make_simple_command(:get, 'v1/{+parent}/triggers', options)
757
+ command.response_representation = Google::Apis::CloudbuildV1::ListBuildTriggersResponse::Representation
758
+ command.response_class = Google::Apis::CloudbuildV1::ListBuildTriggersResponse
759
+ command.params['parent'] = parent unless parent.nil?
760
+ command.query['pageSize'] = page_size unless page_size.nil?
761
+ command.query['pageToken'] = page_token unless page_token.nil?
762
+ command.query['projectId'] = project_id unless project_id.nil?
763
+ command.query['fields'] = fields unless fields.nil?
764
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
765
+ execute_or_queue_command(command, &block)
766
+ end
767
+
768
+ # Updates a `BuildTrigger` by its project ID and trigger ID. This API is
769
+ # experimental.
770
+ # @param [String] resource_name
771
+ # The `Trigger` name with format: `projects/`project`/locations/`location`/
772
+ # triggers/`trigger``, where `trigger` is a unique identifier generated by the
773
+ # service.
774
+ # @param [Google::Apis::CloudbuildV1::BuildTrigger] build_trigger_object
775
+ # @param [String] project_id
776
+ # Required. ID of the project that owns the trigger.
777
+ # @param [String] trigger_id
778
+ # Required. ID of the `BuildTrigger` to update.
779
+ # @param [String] fields
780
+ # Selector specifying which fields to include in a partial response.
781
+ # @param [String] quota_user
782
+ # Available to use for quota purposes for server-side applications. Can be any
783
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
784
+ # @param [Google::Apis::RequestOptions] options
785
+ # Request-specific options
786
+ #
787
+ # @yield [result, err] Result & error if block supplied
788
+ # @yieldparam result [Google::Apis::CloudbuildV1::BuildTrigger] parsed result object
789
+ # @yieldparam err [StandardError] error object if request failed
790
+ #
791
+ # @return [Google::Apis::CloudbuildV1::BuildTrigger]
792
+ #
793
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
794
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
795
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
796
+ 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)
797
+ command = make_simple_command(:patch, 'v1/{+resourceName}', options)
798
+ command.request_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
799
+ command.request_object = build_trigger_object
800
+ command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
801
+ command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
802
+ command.params['resourceName'] = resource_name unless resource_name.nil?
803
+ command.query['projectId'] = project_id unless project_id.nil?
804
+ command.query['triggerId'] = trigger_id unless trigger_id.nil?
805
+ command.query['fields'] = fields unless fields.nil?
806
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
807
+ execute_or_queue_command(command, &block)
808
+ end
809
+
810
+ # Runs a `BuildTrigger` at a particular source revision.
811
+ # @param [String] name
812
+ # The name of the `Trigger` to run. Format: `projects/`project`/locations/`
813
+ # location`/triggers/`trigger``
814
+ # @param [Google::Apis::CloudbuildV1::RunBuildTriggerRequest] run_build_trigger_request_object
815
+ # @param [String] fields
816
+ # Selector specifying which fields to include in a partial response.
817
+ # @param [String] quota_user
818
+ # Available to use for quota purposes for server-side applications. Can be any
819
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
820
+ # @param [Google::Apis::RequestOptions] options
821
+ # Request-specific options
822
+ #
823
+ # @yield [result, err] Result & error if block supplied
824
+ # @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
825
+ # @yieldparam err [StandardError] error object if request failed
826
+ #
827
+ # @return [Google::Apis::CloudbuildV1::Operation]
828
+ #
829
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
830
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
831
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
832
+ def run_build_trigger(name, run_build_trigger_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
833
+ command = make_simple_command(:post, 'v1/{+name}:run', options)
834
+ command.request_representation = Google::Apis::CloudbuildV1::RunBuildTriggerRequest::Representation
835
+ command.request_object = run_build_trigger_request_object
836
+ command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
837
+ command.response_class = Google::Apis::CloudbuildV1::Operation
838
+ command.params['name'] = name unless name.nil?
839
+ command.query['fields'] = fields unless fields.nil?
840
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
841
+ execute_or_queue_command(command, &block)
842
+ end
843
+
844
+ # ReceiveTriggerWebhook [Experimental] is called when the API receives a webhook
845
+ # request targeted at a specific trigger.
846
+ # @param [String] name
847
+ # The name of the `ReceiveTriggerWebhook` to retrieve. Format: `projects/`
848
+ # project`/locations/`location`/triggers/`trigger``
849
+ # @param [Google::Apis::CloudbuildV1::HttpBody] http_body_object
850
+ # @param [String] project_id
851
+ # Project in which the specified trigger lives
852
+ # @param [String] secret
853
+ # Secret token used for authorization if an OAuth token isn't provided.
854
+ # @param [String] trigger
855
+ # Name of the trigger to run the payload against
856
+ # @param [String] fields
857
+ # Selector specifying which fields to include in a partial response.
858
+ # @param [String] quota_user
859
+ # Available to use for quota purposes for server-side applications. Can be any
860
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
861
+ # @param [Google::Apis::RequestOptions] options
862
+ # Request-specific options
863
+ #
864
+ # @yield [result, err] Result & error if block supplied
865
+ # @yieldparam result [Google::Apis::CloudbuildV1::ReceiveTriggerWebhookResponse] parsed result object
866
+ # @yieldparam err [StandardError] error object if request failed
867
+ #
868
+ # @return [Google::Apis::CloudbuildV1::ReceiveTriggerWebhookResponse]
869
+ #
870
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
871
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
872
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
873
+ def webhook_project_location_trigger(name, http_body_object = nil, project_id: nil, secret: nil, trigger: nil, fields: nil, quota_user: nil, options: nil, &block)
874
+ command = make_simple_command(:post, 'v1/{+name}:webhook', options)
875
+ command.request_representation = Google::Apis::CloudbuildV1::HttpBody::Representation
876
+ command.request_object = http_body_object
877
+ command.response_representation = Google::Apis::CloudbuildV1::ReceiveTriggerWebhookResponse::Representation
878
+ command.response_class = Google::Apis::CloudbuildV1::ReceiveTriggerWebhookResponse
879
+ command.params['name'] = name unless name.nil?
880
+ command.query['projectId'] = project_id unless project_id.nil?
881
+ command.query['secret'] = secret unless secret.nil?
882
+ command.query['trigger'] = trigger unless trigger.nil?
883
+ command.query['fields'] = fields unless fields.nil?
884
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
885
+ execute_or_queue_command(command, &block)
886
+ end
887
+
616
888
  # Creates a new `BuildTrigger`. This API is experimental.
617
889
  # @param [String] project_id
618
890
  # Required. ID of the project for which to configure automatic builds.
619
891
  # @param [Google::Apis::CloudbuildV1::BuildTrigger] build_trigger_object
892
+ # @param [String] parent
893
+ # The parent resource where this trigger will be created. Format: `projects/`
894
+ # project`/locations/`location``
620
895
  # @param [String] fields
621
896
  # Selector specifying which fields to include in a partial response.
622
897
  # @param [String] quota_user
@@ -634,13 +909,14 @@ module Google
634
909
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
635
910
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
636
911
  # @raise [Google::Apis::AuthorizationError] Authorization is required
637
- def create_project_trigger(project_id, build_trigger_object = nil, fields: nil, quota_user: nil, options: nil, &block)
912
+ def create_project_trigger(project_id, build_trigger_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
638
913
  command = make_simple_command(:post, 'v1/projects/{projectId}/triggers', options)
639
914
  command.request_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
640
915
  command.request_object = build_trigger_object
641
916
  command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
642
917
  command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
643
918
  command.params['projectId'] = project_id unless project_id.nil?
919
+ command.query['parent'] = parent unless parent.nil?
644
920
  command.query['fields'] = fields unless fields.nil?
645
921
  command.query['quotaUser'] = quota_user unless quota_user.nil?
646
922
  execute_or_queue_command(command, &block)
@@ -652,6 +928,9 @@ module Google
652
928
  # Required. ID of the project that owns the trigger.
653
929
  # @param [String] trigger_id
654
930
  # Required. ID of the `BuildTrigger` to delete.
931
+ # @param [String] name
932
+ # The name of the `Trigger` to delete. Format: `projects/`project`/locations/`
933
+ # location`/triggers/`trigger``
655
934
  # @param [String] fields
656
935
  # Selector specifying which fields to include in a partial response.
657
936
  # @param [String] quota_user
@@ -669,12 +948,13 @@ module Google
669
948
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
670
949
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
671
950
  # @raise [Google::Apis::AuthorizationError] Authorization is required
672
- def delete_project_trigger(project_id, trigger_id, fields: nil, quota_user: nil, options: nil, &block)
951
+ def delete_project_trigger(project_id, trigger_id, name: nil, fields: nil, quota_user: nil, options: nil, &block)
673
952
  command = make_simple_command(:delete, 'v1/projects/{projectId}/triggers/{triggerId}', options)
674
953
  command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation
675
954
  command.response_class = Google::Apis::CloudbuildV1::Empty
676
955
  command.params['projectId'] = project_id unless project_id.nil?
677
956
  command.params['triggerId'] = trigger_id unless trigger_id.nil?
957
+ command.query['name'] = name unless name.nil?
678
958
  command.query['fields'] = fields unless fields.nil?
679
959
  command.query['quotaUser'] = quota_user unless quota_user.nil?
680
960
  execute_or_queue_command(command, &block)
@@ -685,6 +965,9 @@ module Google
685
965
  # Required. ID of the project that owns the trigger.
686
966
  # @param [String] trigger_id
687
967
  # Required. Identifier (`id` or `name`) of the `BuildTrigger` to get.
968
+ # @param [String] name
969
+ # The name of the `Trigger` to retrieve. Format: `projects/`project`/locations/`
970
+ # location`/triggers/`trigger``
688
971
  # @param [String] fields
689
972
  # Selector specifying which fields to include in a partial response.
690
973
  # @param [String] quota_user
@@ -702,12 +985,13 @@ module Google
702
985
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
703
986
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
704
987
  # @raise [Google::Apis::AuthorizationError] Authorization is required
705
- def get_project_trigger(project_id, trigger_id, fields: nil, quota_user: nil, options: nil, &block)
988
+ def get_project_trigger(project_id, trigger_id, name: nil, fields: nil, quota_user: nil, options: nil, &block)
706
989
  command = make_simple_command(:get, 'v1/projects/{projectId}/triggers/{triggerId}', options)
707
990
  command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
708
991
  command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
709
992
  command.params['projectId'] = project_id unless project_id.nil?
710
993
  command.params['triggerId'] = trigger_id unless trigger_id.nil?
994
+ command.query['name'] = name unless name.nil?
711
995
  command.query['fields'] = fields unless fields.nil?
712
996
  command.query['quotaUser'] = quota_user unless quota_user.nil?
713
997
  execute_or_queue_command(command, &block)
@@ -720,6 +1004,9 @@ module Google
720
1004
  # Number of results to return in the list.
721
1005
  # @param [String] page_token
722
1006
  # Token to provide to skip to a particular spot in the list.
1007
+ # @param [String] parent
1008
+ # The parent of the collection of `Triggers`. Format: `projects/`project`/
1009
+ # locations/`location``
723
1010
  # @param [String] fields
724
1011
  # Selector specifying which fields to include in a partial response.
725
1012
  # @param [String] quota_user
@@ -737,13 +1024,14 @@ module Google
737
1024
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
738
1025
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
739
1026
  # @raise [Google::Apis::AuthorizationError] Authorization is required
740
- def list_project_triggers(project_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1027
+ def list_project_triggers(project_id, page_size: nil, page_token: nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
741
1028
  command = make_simple_command(:get, 'v1/projects/{projectId}/triggers', options)
742
1029
  command.response_representation = Google::Apis::CloudbuildV1::ListBuildTriggersResponse::Representation
743
1030
  command.response_class = Google::Apis::CloudbuildV1::ListBuildTriggersResponse
744
1031
  command.params['projectId'] = project_id unless project_id.nil?
745
1032
  command.query['pageSize'] = page_size unless page_size.nil?
746
1033
  command.query['pageToken'] = page_token unless page_token.nil?
1034
+ command.query['parent'] = parent unless parent.nil?
747
1035
  command.query['fields'] = fields unless fields.nil?
748
1036
  command.query['quotaUser'] = quota_user unless quota_user.nil?
749
1037
  execute_or_queue_command(command, &block)
@@ -792,6 +1080,9 @@ module Google
792
1080
  # @param [String] trigger_id
793
1081
  # Required. ID of the trigger.
794
1082
  # @param [Google::Apis::CloudbuildV1::RepoSource] repo_source_object
1083
+ # @param [String] name
1084
+ # The name of the `Trigger` to run. Format: `projects/`project`/locations/`
1085
+ # location`/triggers/`trigger``
795
1086
  # @param [String] fields
796
1087
  # Selector specifying which fields to include in a partial response.
797
1088
  # @param [String] quota_user
@@ -809,7 +1100,7 @@ module Google
809
1100
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
810
1101
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
811
1102
  # @raise [Google::Apis::AuthorizationError] Authorization is required
812
- def run_project_trigger(project_id, trigger_id, repo_source_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1103
+ def run_project_trigger(project_id, trigger_id, repo_source_object = nil, name: nil, fields: nil, quota_user: nil, options: nil, &block)
813
1104
  command = make_simple_command(:post, 'v1/projects/{projectId}/triggers/{triggerId}:run', options)
814
1105
  command.request_representation = Google::Apis::CloudbuildV1::RepoSource::Representation
815
1106
  command.request_object = repo_source_object
@@ -817,6 +1108,7 @@ module Google
817
1108
  command.response_class = Google::Apis::CloudbuildV1::Operation
818
1109
  command.params['projectId'] = project_id unless project_id.nil?
819
1110
  command.params['triggerId'] = trigger_id unless trigger_id.nil?
1111
+ command.query['name'] = name unless name.nil?
820
1112
  command.query['fields'] = fields unless fields.nil?
821
1113
  command.query['quotaUser'] = quota_user unless quota_user.nil?
822
1114
  execute_or_queue_command(command, &block)
@@ -829,6 +1121,9 @@ module Google
829
1121
  # @param [String] trigger
830
1122
  # Name of the trigger to run the payload against
831
1123
  # @param [Google::Apis::CloudbuildV1::HttpBody] http_body_object
1124
+ # @param [String] name
1125
+ # The name of the `ReceiveTriggerWebhook` to retrieve. Format: `projects/`
1126
+ # project`/locations/`location`/triggers/`trigger``
832
1127
  # @param [String] secret
833
1128
  # Secret token used for authorization if an OAuth token isn't provided.
834
1129
  # @param [String] fields
@@ -848,7 +1143,7 @@ module Google
848
1143
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
849
1144
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
850
1145
  # @raise [Google::Apis::AuthorizationError] Authorization is required
851
- def webhook_project_trigger(project_id, trigger, http_body_object = nil, secret: nil, fields: nil, quota_user: nil, options: nil, &block)
1146
+ def webhook_project_trigger(project_id, trigger, http_body_object = nil, name: nil, secret: nil, fields: nil, quota_user: nil, options: nil, &block)
852
1147
  command = make_simple_command(:post, 'v1/projects/{projectId}/triggers/{trigger}:webhook', options)
853
1148
  command.request_representation = Google::Apis::CloudbuildV1::HttpBody::Representation
854
1149
  command.request_object = http_body_object
@@ -856,6 +1151,7 @@ module Google
856
1151
  command.response_class = Google::Apis::CloudbuildV1::ReceiveTriggerWebhookResponse
857
1152
  command.params['projectId'] = project_id unless project_id.nil?
858
1153
  command.params['trigger'] = trigger unless trigger.nil?
1154
+ command.query['name'] = name unless name.nil?
859
1155
  command.query['secret'] = secret unless secret.nil?
860
1156
  command.query['fields'] = fields unless fields.nil?
861
1157
  command.query['quotaUser'] = quota_user unless quota_user.nil?
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-cloudbuild_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.9.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: 2021-03-08 00:00:00.000000000 Z
11
+ date: 2021-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.1'
19
+ version: '0.3'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: 2.a
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '0.3'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '0.1'
32
+ version: 2.a
27
33
  description: This is the simple REST client for Cloud Build API V1. Simple REST clients
28
34
  are Ruby client libraries that provide access to Google services via their HTTP
29
35
  REST API endpoints. These libraries are generated and updated automatically based
@@ -52,7 +58,7 @@ licenses:
52
58
  metadata:
53
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-cloudbuild_v1/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-cloudbuild_v1/v0.4.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-cloudbuild_v1/v0.9.0
56
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-cloudbuild_v1
57
63
  post_install_message:
58
64
  rdoc_options: []
@@ -69,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
75
  - !ruby/object:Gem::Version
70
76
  version: '0'
71
77
  requirements: []
72
- rubygems_version: 3.2.13
78
+ rubygems_version: 3.2.17
73
79
  signing_key:
74
80
  specification_version: 4
75
81
  summary: Simple REST client for Cloud Build API V1