google-apis-cloudbuild_v1 0.7.0 → 0.11.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.
@@ -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.
|
19
|
+
GEM_VERSION = "0.11.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210709"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -88,6 +88,18 @@ module Google
|
|
88
88
|
include Google::Apis::Core::JsonObjectSupport
|
89
89
|
end
|
90
90
|
|
91
|
+
class CreateWorkerPoolOperationMetadata
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
+
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
95
|
+
end
|
96
|
+
|
97
|
+
class DeleteWorkerPoolOperationMetadata
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
+
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
101
|
+
end
|
102
|
+
|
91
103
|
class Empty
|
92
104
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
105
|
|
@@ -142,6 +154,18 @@ module Google
|
|
142
154
|
include Google::Apis::Core::JsonObjectSupport
|
143
155
|
end
|
144
156
|
|
157
|
+
class ListWorkerPoolsResponse
|
158
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
159
|
+
|
160
|
+
include Google::Apis::Core::JsonObjectSupport
|
161
|
+
end
|
162
|
+
|
163
|
+
class NetworkConfig
|
164
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
165
|
+
|
166
|
+
include Google::Apis::Core::JsonObjectSupport
|
167
|
+
end
|
168
|
+
|
145
169
|
class Notification
|
146
170
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
171
|
|
@@ -184,6 +208,18 @@ module Google
|
|
184
208
|
include Google::Apis::Core::JsonObjectSupport
|
185
209
|
end
|
186
210
|
|
211
|
+
class PoolOption
|
212
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
213
|
+
|
214
|
+
include Google::Apis::Core::JsonObjectSupport
|
215
|
+
end
|
216
|
+
|
217
|
+
class PrivatePoolV1Config
|
218
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
219
|
+
|
220
|
+
include Google::Apis::Core::JsonObjectSupport
|
221
|
+
end
|
222
|
+
|
187
223
|
class PubsubConfig
|
188
224
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
189
225
|
|
@@ -226,6 +262,12 @@ module Google
|
|
226
262
|
include Google::Apis::Core::JsonObjectSupport
|
227
263
|
end
|
228
264
|
|
265
|
+
class RunBuildTriggerRequest
|
266
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
267
|
+
|
268
|
+
include Google::Apis::Core::JsonObjectSupport
|
269
|
+
end
|
270
|
+
|
229
271
|
class SmtpDelivery
|
230
272
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
231
273
|
|
@@ -292,6 +334,12 @@ module Google
|
|
292
334
|
include Google::Apis::Core::JsonObjectSupport
|
293
335
|
end
|
294
336
|
|
337
|
+
class UpdateWorkerPoolOperationMetadata
|
338
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
339
|
+
|
340
|
+
include Google::Apis::Core::JsonObjectSupport
|
341
|
+
end
|
342
|
+
|
295
343
|
class Volume
|
296
344
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
297
345
|
|
@@ -304,6 +352,24 @@ module Google
|
|
304
352
|
include Google::Apis::Core::JsonObjectSupport
|
305
353
|
end
|
306
354
|
|
355
|
+
class WebhookConfig
|
356
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
357
|
+
|
358
|
+
include Google::Apis::Core::JsonObjectSupport
|
359
|
+
end
|
360
|
+
|
361
|
+
class WorkerConfig
|
362
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
363
|
+
|
364
|
+
include Google::Apis::Core::JsonObjectSupport
|
365
|
+
end
|
366
|
+
|
367
|
+
class WorkerPool
|
368
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
369
|
+
|
370
|
+
include Google::Apis::Core::JsonObjectSupport
|
371
|
+
end
|
372
|
+
|
307
373
|
class ArtifactObjects
|
308
374
|
# @private
|
309
375
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -392,6 +458,8 @@ module Google
|
|
392
458
|
property :log_streaming_option, as: 'logStreamingOption'
|
393
459
|
property :logging, as: 'logging'
|
394
460
|
property :machine_type, as: 'machineType'
|
461
|
+
property :pool, as: 'pool', class: Google::Apis::CloudbuildV1::PoolOption, decorator: Google::Apis::CloudbuildV1::PoolOption::Representation
|
462
|
+
|
395
463
|
property :requested_verify_option, as: 'requestedVerifyOption'
|
396
464
|
collection :secret_env, as: 'secretEnv'
|
397
465
|
collection :source_provenance_hash, as: 'sourceProvenanceHash'
|
@@ -427,6 +495,7 @@ module Google
|
|
427
495
|
class BuildTrigger
|
428
496
|
# @private
|
429
497
|
class Representation < Google::Apis::Core::JsonRepresentation
|
498
|
+
property :autodetect, as: 'autodetect'
|
430
499
|
property :build, as: 'build', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
|
431
500
|
|
432
501
|
property :create_time, as: 'createTime'
|
@@ -442,10 +511,13 @@ module Google
|
|
442
511
|
property :name, as: 'name'
|
443
512
|
property :pubsub_config, as: 'pubsubConfig', class: Google::Apis::CloudbuildV1::PubsubConfig, decorator: Google::Apis::CloudbuildV1::PubsubConfig::Representation
|
444
513
|
|
514
|
+
property :resource_name, as: 'resourceName'
|
445
515
|
hash :substitutions, as: 'substitutions'
|
446
516
|
collection :tags, as: 'tags'
|
447
517
|
property :trigger_template, as: 'triggerTemplate', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
|
448
518
|
|
519
|
+
property :webhook_config, as: 'webhookConfig', class: Google::Apis::CloudbuildV1::WebhookConfig, decorator: Google::Apis::CloudbuildV1::WebhookConfig::Representation
|
520
|
+
|
449
521
|
end
|
450
522
|
end
|
451
523
|
|
@@ -474,6 +546,24 @@ module Google
|
|
474
546
|
end
|
475
547
|
end
|
476
548
|
|
549
|
+
class CreateWorkerPoolOperationMetadata
|
550
|
+
# @private
|
551
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
552
|
+
property :complete_time, as: 'completeTime'
|
553
|
+
property :create_time, as: 'createTime'
|
554
|
+
property :worker_pool, as: 'workerPool'
|
555
|
+
end
|
556
|
+
end
|
557
|
+
|
558
|
+
class DeleteWorkerPoolOperationMetadata
|
559
|
+
# @private
|
560
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
561
|
+
property :complete_time, as: 'completeTime'
|
562
|
+
property :create_time, as: 'createTime'
|
563
|
+
property :worker_pool, as: 'workerPool'
|
564
|
+
end
|
565
|
+
end
|
566
|
+
|
477
567
|
class Empty
|
478
568
|
# @private
|
479
569
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -551,6 +641,23 @@ module Google
|
|
551
641
|
end
|
552
642
|
end
|
553
643
|
|
644
|
+
class ListWorkerPoolsResponse
|
645
|
+
# @private
|
646
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
647
|
+
property :next_page_token, as: 'nextPageToken'
|
648
|
+
collection :worker_pools, as: 'workerPools', class: Google::Apis::CloudbuildV1::WorkerPool, decorator: Google::Apis::CloudbuildV1::WorkerPool::Representation
|
649
|
+
|
650
|
+
end
|
651
|
+
end
|
652
|
+
|
653
|
+
class NetworkConfig
|
654
|
+
# @private
|
655
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
656
|
+
property :egress_option, as: 'egressOption'
|
657
|
+
property :peered_network, as: 'peeredNetwork'
|
658
|
+
end
|
659
|
+
end
|
660
|
+
|
554
661
|
class Notification
|
555
662
|
# @private
|
556
663
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -622,6 +729,23 @@ module Google
|
|
622
729
|
end
|
623
730
|
end
|
624
731
|
|
732
|
+
class PoolOption
|
733
|
+
# @private
|
734
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
735
|
+
property :name, as: 'name'
|
736
|
+
end
|
737
|
+
end
|
738
|
+
|
739
|
+
class PrivatePoolV1Config
|
740
|
+
# @private
|
741
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
742
|
+
property :network_config, as: 'networkConfig', class: Google::Apis::CloudbuildV1::NetworkConfig, decorator: Google::Apis::CloudbuildV1::NetworkConfig::Representation
|
743
|
+
|
744
|
+
property :worker_config, as: 'workerConfig', class: Google::Apis::CloudbuildV1::WorkerConfig, decorator: Google::Apis::CloudbuildV1::WorkerConfig::Representation
|
745
|
+
|
746
|
+
end
|
747
|
+
end
|
748
|
+
|
625
749
|
class PubsubConfig
|
626
750
|
# @private
|
627
751
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -693,6 +817,16 @@ module Google
|
|
693
817
|
end
|
694
818
|
end
|
695
819
|
|
820
|
+
class RunBuildTriggerRequest
|
821
|
+
# @private
|
822
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
823
|
+
property :project_id, as: 'projectId'
|
824
|
+
property :source, as: 'source', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
|
825
|
+
|
826
|
+
property :trigger_id, as: 'triggerId'
|
827
|
+
end
|
828
|
+
end
|
829
|
+
|
696
830
|
class SmtpDelivery
|
697
831
|
# @private
|
698
832
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -801,6 +935,15 @@ module Google
|
|
801
935
|
end
|
802
936
|
end
|
803
937
|
|
938
|
+
class UpdateWorkerPoolOperationMetadata
|
939
|
+
# @private
|
940
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
941
|
+
property :complete_time, as: 'completeTime'
|
942
|
+
property :create_time, as: 'createTime'
|
943
|
+
property :worker_pool, as: 'workerPool'
|
944
|
+
end
|
945
|
+
end
|
946
|
+
|
804
947
|
class Volume
|
805
948
|
# @private
|
806
949
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -816,6 +959,39 @@ module Google
|
|
816
959
|
property :text, as: 'text'
|
817
960
|
end
|
818
961
|
end
|
962
|
+
|
963
|
+
class WebhookConfig
|
964
|
+
# @private
|
965
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
966
|
+
property :secret, as: 'secret'
|
967
|
+
property :state, as: 'state'
|
968
|
+
end
|
969
|
+
end
|
970
|
+
|
971
|
+
class WorkerConfig
|
972
|
+
# @private
|
973
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
974
|
+
property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb'
|
975
|
+
property :machine_type, as: 'machineType'
|
976
|
+
end
|
977
|
+
end
|
978
|
+
|
979
|
+
class WorkerPool
|
980
|
+
# @private
|
981
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
982
|
+
hash :annotations, as: 'annotations'
|
983
|
+
property :create_time, as: 'createTime'
|
984
|
+
property :delete_time, as: 'deleteTime'
|
985
|
+
property :display_name, as: 'displayName'
|
986
|
+
property :etag, as: 'etag'
|
987
|
+
property :name, as: 'name'
|
988
|
+
property :private_pool_v1_config, as: 'privatePoolV1Config', class: Google::Apis::CloudbuildV1::PrivatePoolV1Config, decorator: Google::Apis::CloudbuildV1::PrivatePoolV1Config::Representation
|
989
|
+
|
990
|
+
property :state, as: 'state'
|
991
|
+
property :uid, as: 'uid'
|
992
|
+
property :update_time, as: 'updateTime'
|
993
|
+
end
|
994
|
+
end
|
819
995
|
end
|
820
996
|
end
|
821
997
|
end
|
@@ -613,10 +613,484 @@ 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
|
+
|
888
|
+
# Creates a `WorkerPool`.
|
889
|
+
# @param [String] parent
|
890
|
+
# Required. The parent resource where this worker pool will be created. Format: `
|
891
|
+
# projects/`project`/locations/`location``.
|
892
|
+
# @param [Google::Apis::CloudbuildV1::WorkerPool] worker_pool_object
|
893
|
+
# @param [Boolean] validate_only
|
894
|
+
# If set, validate the request and preview the response, but do not actually
|
895
|
+
# post it.
|
896
|
+
# @param [String] worker_pool_id
|
897
|
+
# Required. Immutable. The ID to use for the `WorkerPool`, which will become the
|
898
|
+
# final component of the resource name. This value should be 1-63 characters,
|
899
|
+
# and valid characters are /a-z-/.
|
900
|
+
# @param [String] fields
|
901
|
+
# Selector specifying which fields to include in a partial response.
|
902
|
+
# @param [String] quota_user
|
903
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
904
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
905
|
+
# @param [Google::Apis::RequestOptions] options
|
906
|
+
# Request-specific options
|
907
|
+
#
|
908
|
+
# @yield [result, err] Result & error if block supplied
|
909
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
|
910
|
+
# @yieldparam err [StandardError] error object if request failed
|
911
|
+
#
|
912
|
+
# @return [Google::Apis::CloudbuildV1::Operation]
|
913
|
+
#
|
914
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
915
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
916
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
917
|
+
def create_project_location_worker_pool(parent, worker_pool_object = nil, validate_only: nil, worker_pool_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
918
|
+
command = make_simple_command(:post, 'v1/{+parent}/workerPools', options)
|
919
|
+
command.request_representation = Google::Apis::CloudbuildV1::WorkerPool::Representation
|
920
|
+
command.request_object = worker_pool_object
|
921
|
+
command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
|
922
|
+
command.response_class = Google::Apis::CloudbuildV1::Operation
|
923
|
+
command.params['parent'] = parent unless parent.nil?
|
924
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
925
|
+
command.query['workerPoolId'] = worker_pool_id unless worker_pool_id.nil?
|
926
|
+
command.query['fields'] = fields unless fields.nil?
|
927
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
928
|
+
execute_or_queue_command(command, &block)
|
929
|
+
end
|
930
|
+
|
931
|
+
# Deletes a `WorkerPool`.
|
932
|
+
# @param [String] name
|
933
|
+
# Required. The name of the `WorkerPool` to delete. Format: `projects/`project`/
|
934
|
+
# locations/`workerPool`/workerPools/`workerPool``.
|
935
|
+
# @param [Boolean] allow_missing
|
936
|
+
# If set to true, and the `WorkerPool` is not found, the request will succeed
|
937
|
+
# but no action will be taken on the server.
|
938
|
+
# @param [String] etag
|
939
|
+
# Optional. If this is provided, it must match the server's etag on the
|
940
|
+
# workerpool for the request to be processed.
|
941
|
+
# @param [Boolean] validate_only
|
942
|
+
# If set, validate the request and preview the response, but do not actually
|
943
|
+
# post it.
|
944
|
+
# @param [String] fields
|
945
|
+
# Selector specifying which fields to include in a partial response.
|
946
|
+
# @param [String] quota_user
|
947
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
948
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
949
|
+
# @param [Google::Apis::RequestOptions] options
|
950
|
+
# Request-specific options
|
951
|
+
#
|
952
|
+
# @yield [result, err] Result & error if block supplied
|
953
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
|
954
|
+
# @yieldparam err [StandardError] error object if request failed
|
955
|
+
#
|
956
|
+
# @return [Google::Apis::CloudbuildV1::Operation]
|
957
|
+
#
|
958
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
959
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
960
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
961
|
+
def delete_project_location_worker_pool(name, allow_missing: nil, etag: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
962
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
963
|
+
command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
|
964
|
+
command.response_class = Google::Apis::CloudbuildV1::Operation
|
965
|
+
command.params['name'] = name unless name.nil?
|
966
|
+
command.query['allowMissing'] = allow_missing unless allow_missing.nil?
|
967
|
+
command.query['etag'] = etag unless etag.nil?
|
968
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
969
|
+
command.query['fields'] = fields unless fields.nil?
|
970
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
971
|
+
execute_or_queue_command(command, &block)
|
972
|
+
end
|
973
|
+
|
974
|
+
# Returns details of a `WorkerPool`.
|
975
|
+
# @param [String] name
|
976
|
+
# Required. The name of the `WorkerPool` to retrieve. Format: `projects/`project`
|
977
|
+
# /locations/`location`/workerPools/`workerPool``.
|
978
|
+
# @param [String] fields
|
979
|
+
# Selector specifying which fields to include in a partial response.
|
980
|
+
# @param [String] quota_user
|
981
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
982
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
983
|
+
# @param [Google::Apis::RequestOptions] options
|
984
|
+
# Request-specific options
|
985
|
+
#
|
986
|
+
# @yield [result, err] Result & error if block supplied
|
987
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::WorkerPool] parsed result object
|
988
|
+
# @yieldparam err [StandardError] error object if request failed
|
989
|
+
#
|
990
|
+
# @return [Google::Apis::CloudbuildV1::WorkerPool]
|
991
|
+
#
|
992
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
993
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
994
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
995
|
+
def get_project_location_worker_pool(name, fields: nil, quota_user: nil, options: nil, &block)
|
996
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
997
|
+
command.response_representation = Google::Apis::CloudbuildV1::WorkerPool::Representation
|
998
|
+
command.response_class = Google::Apis::CloudbuildV1::WorkerPool
|
999
|
+
command.params['name'] = name unless name.nil?
|
1000
|
+
command.query['fields'] = fields unless fields.nil?
|
1001
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1002
|
+
execute_or_queue_command(command, &block)
|
1003
|
+
end
|
1004
|
+
|
1005
|
+
# Lists `WorkerPool`s.
|
1006
|
+
# @param [String] parent
|
1007
|
+
# Required. The parent of the collection of `WorkerPools`. Format: `projects/`
|
1008
|
+
# project`/locations/location`.
|
1009
|
+
# @param [Fixnum] page_size
|
1010
|
+
# The maximum number of `WorkerPool`s to return. The service may return fewer
|
1011
|
+
# than this value. If omitted, the server will use a sensible default.
|
1012
|
+
# @param [String] page_token
|
1013
|
+
# A page token, received from a previous `ListWorkerPools` call. Provide this to
|
1014
|
+
# retrieve the subsequent page.
|
1015
|
+
# @param [String] fields
|
1016
|
+
# Selector specifying which fields to include in a partial response.
|
1017
|
+
# @param [String] quota_user
|
1018
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1019
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1020
|
+
# @param [Google::Apis::RequestOptions] options
|
1021
|
+
# Request-specific options
|
1022
|
+
#
|
1023
|
+
# @yield [result, err] Result & error if block supplied
|
1024
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::ListWorkerPoolsResponse] parsed result object
|
1025
|
+
# @yieldparam err [StandardError] error object if request failed
|
1026
|
+
#
|
1027
|
+
# @return [Google::Apis::CloudbuildV1::ListWorkerPoolsResponse]
|
1028
|
+
#
|
1029
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1030
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1031
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1032
|
+
def list_project_location_worker_pools(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1033
|
+
command = make_simple_command(:get, 'v1/{+parent}/workerPools', options)
|
1034
|
+
command.response_representation = Google::Apis::CloudbuildV1::ListWorkerPoolsResponse::Representation
|
1035
|
+
command.response_class = Google::Apis::CloudbuildV1::ListWorkerPoolsResponse
|
1036
|
+
command.params['parent'] = parent unless parent.nil?
|
1037
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1038
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1039
|
+
command.query['fields'] = fields unless fields.nil?
|
1040
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1041
|
+
execute_or_queue_command(command, &block)
|
1042
|
+
end
|
1043
|
+
|
1044
|
+
# Updates a `WorkerPool`.
|
1045
|
+
# @param [String] name
|
1046
|
+
# Output only. The resource name of the `WorkerPool`, with format `projects/`
|
1047
|
+
# project`/locations/`location`/workerPools/`worker_pool``. The value of ``
|
1048
|
+
# worker_pool`` is provided by `worker_pool_id` in `CreateWorkerPool` request
|
1049
|
+
# and the value of ``location`` is determined by the endpoint accessed.
|
1050
|
+
# @param [Google::Apis::CloudbuildV1::WorkerPool] worker_pool_object
|
1051
|
+
# @param [String] update_mask
|
1052
|
+
# A mask specifying which fields in `worker_pool` to update.
|
1053
|
+
# @param [Boolean] validate_only
|
1054
|
+
# If set, validate the request and preview the response, but do not actually
|
1055
|
+
# post it.
|
1056
|
+
# @param [String] fields
|
1057
|
+
# Selector specifying which fields to include in a partial response.
|
1058
|
+
# @param [String] quota_user
|
1059
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1060
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1061
|
+
# @param [Google::Apis::RequestOptions] options
|
1062
|
+
# Request-specific options
|
1063
|
+
#
|
1064
|
+
# @yield [result, err] Result & error if block supplied
|
1065
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
|
1066
|
+
# @yieldparam err [StandardError] error object if request failed
|
1067
|
+
#
|
1068
|
+
# @return [Google::Apis::CloudbuildV1::Operation]
|
1069
|
+
#
|
1070
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1071
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1072
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1073
|
+
def patch_project_location_worker_pool(name, worker_pool_object = nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1074
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
1075
|
+
command.request_representation = Google::Apis::CloudbuildV1::WorkerPool::Representation
|
1076
|
+
command.request_object = worker_pool_object
|
1077
|
+
command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
|
1078
|
+
command.response_class = Google::Apis::CloudbuildV1::Operation
|
1079
|
+
command.params['name'] = name unless name.nil?
|
1080
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1081
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
1082
|
+
command.query['fields'] = fields unless fields.nil?
|
1083
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1084
|
+
execute_or_queue_command(command, &block)
|
1085
|
+
end
|
1086
|
+
|
616
1087
|
# Creates a new `BuildTrigger`. This API is experimental.
|
617
1088
|
# @param [String] project_id
|
618
1089
|
# Required. ID of the project for which to configure automatic builds.
|
619
1090
|
# @param [Google::Apis::CloudbuildV1::BuildTrigger] build_trigger_object
|
1091
|
+
# @param [String] parent
|
1092
|
+
# The parent resource where this trigger will be created. Format: `projects/`
|
1093
|
+
# project`/locations/`location``
|
620
1094
|
# @param [String] fields
|
621
1095
|
# Selector specifying which fields to include in a partial response.
|
622
1096
|
# @param [String] quota_user
|
@@ -634,13 +1108,14 @@ module Google
|
|
634
1108
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
635
1109
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
636
1110
|
# @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)
|
1111
|
+
def create_project_trigger(project_id, build_trigger_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
|
638
1112
|
command = make_simple_command(:post, 'v1/projects/{projectId}/triggers', options)
|
639
1113
|
command.request_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
640
1114
|
command.request_object = build_trigger_object
|
641
1115
|
command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
642
1116
|
command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
|
643
1117
|
command.params['projectId'] = project_id unless project_id.nil?
|
1118
|
+
command.query['parent'] = parent unless parent.nil?
|
644
1119
|
command.query['fields'] = fields unless fields.nil?
|
645
1120
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
646
1121
|
execute_or_queue_command(command, &block)
|
@@ -652,6 +1127,9 @@ module Google
|
|
652
1127
|
# Required. ID of the project that owns the trigger.
|
653
1128
|
# @param [String] trigger_id
|
654
1129
|
# Required. ID of the `BuildTrigger` to delete.
|
1130
|
+
# @param [String] name
|
1131
|
+
# The name of the `Trigger` to delete. Format: `projects/`project`/locations/`
|
1132
|
+
# location`/triggers/`trigger``
|
655
1133
|
# @param [String] fields
|
656
1134
|
# Selector specifying which fields to include in a partial response.
|
657
1135
|
# @param [String] quota_user
|
@@ -669,12 +1147,13 @@ module Google
|
|
669
1147
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
670
1148
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
671
1149
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
672
|
-
def delete_project_trigger(project_id, trigger_id, fields: nil, quota_user: nil, options: nil, &block)
|
1150
|
+
def delete_project_trigger(project_id, trigger_id, name: nil, fields: nil, quota_user: nil, options: nil, &block)
|
673
1151
|
command = make_simple_command(:delete, 'v1/projects/{projectId}/triggers/{triggerId}', options)
|
674
1152
|
command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation
|
675
1153
|
command.response_class = Google::Apis::CloudbuildV1::Empty
|
676
1154
|
command.params['projectId'] = project_id unless project_id.nil?
|
677
1155
|
command.params['triggerId'] = trigger_id unless trigger_id.nil?
|
1156
|
+
command.query['name'] = name unless name.nil?
|
678
1157
|
command.query['fields'] = fields unless fields.nil?
|
679
1158
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
680
1159
|
execute_or_queue_command(command, &block)
|
@@ -685,6 +1164,9 @@ module Google
|
|
685
1164
|
# Required. ID of the project that owns the trigger.
|
686
1165
|
# @param [String] trigger_id
|
687
1166
|
# Required. Identifier (`id` or `name`) of the `BuildTrigger` to get.
|
1167
|
+
# @param [String] name
|
1168
|
+
# The name of the `Trigger` to retrieve. Format: `projects/`project`/locations/`
|
1169
|
+
# location`/triggers/`trigger``
|
688
1170
|
# @param [String] fields
|
689
1171
|
# Selector specifying which fields to include in a partial response.
|
690
1172
|
# @param [String] quota_user
|
@@ -702,12 +1184,13 @@ module Google
|
|
702
1184
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
703
1185
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
704
1186
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
705
|
-
def get_project_trigger(project_id, trigger_id, fields: nil, quota_user: nil, options: nil, &block)
|
1187
|
+
def get_project_trigger(project_id, trigger_id, name: nil, fields: nil, quota_user: nil, options: nil, &block)
|
706
1188
|
command = make_simple_command(:get, 'v1/projects/{projectId}/triggers/{triggerId}', options)
|
707
1189
|
command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
708
1190
|
command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
|
709
1191
|
command.params['projectId'] = project_id unless project_id.nil?
|
710
1192
|
command.params['triggerId'] = trigger_id unless trigger_id.nil?
|
1193
|
+
command.query['name'] = name unless name.nil?
|
711
1194
|
command.query['fields'] = fields unless fields.nil?
|
712
1195
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
713
1196
|
execute_or_queue_command(command, &block)
|
@@ -720,6 +1203,9 @@ module Google
|
|
720
1203
|
# Number of results to return in the list.
|
721
1204
|
# @param [String] page_token
|
722
1205
|
# Token to provide to skip to a particular spot in the list.
|
1206
|
+
# @param [String] parent
|
1207
|
+
# The parent of the collection of `Triggers`. Format: `projects/`project`/
|
1208
|
+
# locations/`location``
|
723
1209
|
# @param [String] fields
|
724
1210
|
# Selector specifying which fields to include in a partial response.
|
725
1211
|
# @param [String] quota_user
|
@@ -737,13 +1223,14 @@ module Google
|
|
737
1223
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
738
1224
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
739
1225
|
# @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)
|
1226
|
+
def list_project_triggers(project_id, page_size: nil, page_token: nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
|
741
1227
|
command = make_simple_command(:get, 'v1/projects/{projectId}/triggers', options)
|
742
1228
|
command.response_representation = Google::Apis::CloudbuildV1::ListBuildTriggersResponse::Representation
|
743
1229
|
command.response_class = Google::Apis::CloudbuildV1::ListBuildTriggersResponse
|
744
1230
|
command.params['projectId'] = project_id unless project_id.nil?
|
745
1231
|
command.query['pageSize'] = page_size unless page_size.nil?
|
746
1232
|
command.query['pageToken'] = page_token unless page_token.nil?
|
1233
|
+
command.query['parent'] = parent unless parent.nil?
|
747
1234
|
command.query['fields'] = fields unless fields.nil?
|
748
1235
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
749
1236
|
execute_or_queue_command(command, &block)
|
@@ -792,6 +1279,9 @@ module Google
|
|
792
1279
|
# @param [String] trigger_id
|
793
1280
|
# Required. ID of the trigger.
|
794
1281
|
# @param [Google::Apis::CloudbuildV1::RepoSource] repo_source_object
|
1282
|
+
# @param [String] name
|
1283
|
+
# The name of the `Trigger` to run. Format: `projects/`project`/locations/`
|
1284
|
+
# location`/triggers/`trigger``
|
795
1285
|
# @param [String] fields
|
796
1286
|
# Selector specifying which fields to include in a partial response.
|
797
1287
|
# @param [String] quota_user
|
@@ -809,7 +1299,7 @@ module Google
|
|
809
1299
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
810
1300
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
811
1301
|
# @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)
|
1302
|
+
def run_project_trigger(project_id, trigger_id, repo_source_object = nil, name: nil, fields: nil, quota_user: nil, options: nil, &block)
|
813
1303
|
command = make_simple_command(:post, 'v1/projects/{projectId}/triggers/{triggerId}:run', options)
|
814
1304
|
command.request_representation = Google::Apis::CloudbuildV1::RepoSource::Representation
|
815
1305
|
command.request_object = repo_source_object
|
@@ -817,6 +1307,7 @@ module Google
|
|
817
1307
|
command.response_class = Google::Apis::CloudbuildV1::Operation
|
818
1308
|
command.params['projectId'] = project_id unless project_id.nil?
|
819
1309
|
command.params['triggerId'] = trigger_id unless trigger_id.nil?
|
1310
|
+
command.query['name'] = name unless name.nil?
|
820
1311
|
command.query['fields'] = fields unless fields.nil?
|
821
1312
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
822
1313
|
execute_or_queue_command(command, &block)
|
@@ -829,6 +1320,9 @@ module Google
|
|
829
1320
|
# @param [String] trigger
|
830
1321
|
# Name of the trigger to run the payload against
|
831
1322
|
# @param [Google::Apis::CloudbuildV1::HttpBody] http_body_object
|
1323
|
+
# @param [String] name
|
1324
|
+
# The name of the `ReceiveTriggerWebhook` to retrieve. Format: `projects/`
|
1325
|
+
# project`/locations/`location`/triggers/`trigger``
|
832
1326
|
# @param [String] secret
|
833
1327
|
# Secret token used for authorization if an OAuth token isn't provided.
|
834
1328
|
# @param [String] fields
|
@@ -848,7 +1342,7 @@ module Google
|
|
848
1342
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
849
1343
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
850
1344
|
# @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)
|
1345
|
+
def webhook_project_trigger(project_id, trigger, http_body_object = nil, name: nil, secret: nil, fields: nil, quota_user: nil, options: nil, &block)
|
852
1346
|
command = make_simple_command(:post, 'v1/projects/{projectId}/triggers/{trigger}:webhook', options)
|
853
1347
|
command.request_representation = Google::Apis::CloudbuildV1::HttpBody::Representation
|
854
1348
|
command.request_object = http_body_object
|
@@ -856,6 +1350,7 @@ module Google
|
|
856
1350
|
command.response_class = Google::Apis::CloudbuildV1::ReceiveTriggerWebhookResponse
|
857
1351
|
command.params['projectId'] = project_id unless project_id.nil?
|
858
1352
|
command.params['trigger'] = trigger unless trigger.nil?
|
1353
|
+
command.query['name'] = name unless name.nil?
|
859
1354
|
command.query['secret'] = secret unless secret.nil?
|
860
1355
|
command.query['fields'] = fields unless fields.nil?
|
861
1356
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|