google-apis-cloudbuild_v1 0.7.0 → 0.8.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: 849f155da3ff3f5318f325fc2dbffce2eadec79d3d6644ef88a5d49a3624c69d
4
- data.tar.gz: 49d6eae3879b2147d95fe4f6c0c6eda2c342e2bfc9165b63fac0c88f30d56fd5
3
+ metadata.gz: 34c85bea847e8c6ba0631d586b50360797d8bae06c46be4204f532f7d4441076
4
+ data.tar.gz: 6734116d2564b3ab119206058eca7c6c6ead7a08c117945b4ca6872b31d226e7
5
5
  SHA512:
6
- metadata.gz: d5a1c26af1d5e2749f343e08a25c5df6c73bc50eb1af76f48bbeb57e330e9ae1176f8e763f51fc45d22a6d1c8671748e4366652870c74b4f5fd46e8092f0be6b
7
- data.tar.gz: fc071cfeaed9548124a23e31125dfd77b841ea97a70e0b6ae6e42c8033d2d4090409f36ae2b4f942c73fc5e29d3abb0365f5b71e1ff6bed59ad02df2076466f7
6
+ metadata.gz: 9631d2b332750ffa1af883f03483e830dc6b6925786ba85855d4cffde29d7cc0f938fa029e87f551cb76f95d6b51f47ca9400047b75e24cf5f4df9df70c11fec
7
+ data.tar.gz: c1cfafc44a851532ca6472a9d829c8765a3a5f43f741e213c636ba23bd5b0c515b64ba2590709dd73589cb3885a592fcd408a21ead14bcc33a19ab5f0a7b8f5c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-cloudbuild_v1
2
2
 
3
+ ### v0.8.0 (2021-06-16)
4
+
5
+ * Regenerated from discovery document revision 20210613
6
+ * Regenerated using generator version 0.3.0
7
+
3
8
  ### v0.7.0 (2021-05-19)
4
9
 
5
10
  * Unspecified changes
@@ -683,6 +683,13 @@ module Google
683
683
  # @return [Google::Apis::CloudbuildV1::PubsubConfig]
684
684
  attr_accessor :pubsub_config
685
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
+
686
693
  # Substitutions for Build resource. The keys must match the following regular
687
694
  # expression: `^_[A-Z0-9_]+$`.
688
695
  # Corresponds to the JSON property `substitutions`
@@ -699,6 +706,12 @@ module Google
699
706
  # @return [Google::Apis::CloudbuildV1::RepoSource]
700
707
  attr_accessor :trigger_template
701
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
+
702
715
  def initialize(**args)
703
716
  update!(**args)
704
717
  end
@@ -717,9 +730,11 @@ module Google
717
730
  @included_files = args[:included_files] if args.key?(:included_files)
718
731
  @name = args[:name] if args.key?(:name)
719
732
  @pubsub_config = args[:pubsub_config] if args.key?(:pubsub_config)
733
+ @resource_name = args[:resource_name] if args.key?(:resource_name)
720
734
  @substitutions = args[:substitutions] if args.key?(:substitutions)
721
735
  @tags = args[:tags] if args.key?(:tags)
722
736
  @trigger_template = args[:trigger_template] if args.key?(:trigger_template)
737
+ @webhook_config = args[:webhook_config] if args.key?(:webhook_config)
723
738
  end
724
739
  end
725
740
 
@@ -1592,6 +1607,37 @@ module Google
1592
1607
  end
1593
1608
  end
1594
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
+
1595
1641
  # SMTPDelivery is the delivery configuration for an SMTP (email) notification.
1596
1642
  class SmtpDelivery
1597
1643
  include Google::Apis::Core::Hashable
@@ -2016,6 +2062,33 @@ module Google
2016
2062
  @text = args[:text] if args.key?(:text)
2017
2063
  end
2018
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
2019
2092
  end
2020
2093
  end
2021
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.7.0"
19
+ GEM_VERSION = "0.8.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.2.0"
22
+ GENERATOR_VERSION = "0.3.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210511"
25
+ REVISION = "20210613"
26
26
  end
27
27
  end
28
28
  end
@@ -226,6 +226,12 @@ module Google
226
226
  include Google::Apis::Core::JsonObjectSupport
227
227
  end
228
228
 
229
+ class RunBuildTriggerRequest
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
229
235
  class SmtpDelivery
230
236
  class Representation < Google::Apis::Core::JsonRepresentation; end
231
237
 
@@ -304,6 +310,12 @@ module Google
304
310
  include Google::Apis::Core::JsonObjectSupport
305
311
  end
306
312
 
313
+ class WebhookConfig
314
+ class Representation < Google::Apis::Core::JsonRepresentation; end
315
+
316
+ include Google::Apis::Core::JsonObjectSupport
317
+ end
318
+
307
319
  class ArtifactObjects
308
320
  # @private
309
321
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -442,10 +454,13 @@ module Google
442
454
  property :name, as: 'name'
443
455
  property :pubsub_config, as: 'pubsubConfig', class: Google::Apis::CloudbuildV1::PubsubConfig, decorator: Google::Apis::CloudbuildV1::PubsubConfig::Representation
444
456
 
457
+ property :resource_name, as: 'resourceName'
445
458
  hash :substitutions, as: 'substitutions'
446
459
  collection :tags, as: 'tags'
447
460
  property :trigger_template, as: 'triggerTemplate', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
448
461
 
462
+ property :webhook_config, as: 'webhookConfig', class: Google::Apis::CloudbuildV1::WebhookConfig, decorator: Google::Apis::CloudbuildV1::WebhookConfig::Representation
463
+
449
464
  end
450
465
  end
451
466
 
@@ -693,6 +708,16 @@ module Google
693
708
  end
694
709
  end
695
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
+
696
721
  class SmtpDelivery
697
722
  # @private
698
723
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -816,6 +841,14 @@ module Google
816
841
  property :text, as: 'text'
817
842
  end
818
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
819
852
  end
820
853
  end
821
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,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.7.0
4
+ version: 0.8.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-05-24 00:00:00.000000000 Z
11
+ date: 2021-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  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.7.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-cloudbuild_v1/v0.8.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-cloudbuild_v1
57
57
  post_install_message:
58
58
  rdoc_options: []