google-apis-cloudbuild_v1 0.10.0 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -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.14.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210730"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -88,12 +88,24 @@ module Google
|
|
88
88
|
include Google::Apis::Core::JsonObjectSupport
|
89
89
|
end
|
90
90
|
|
91
|
+
class CreateGitHubEnterpriseConfigOperationMetadata
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
+
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
95
|
+
end
|
96
|
+
|
91
97
|
class CreateWorkerPoolOperationMetadata
|
92
98
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
99
|
|
94
100
|
include Google::Apis::Core::JsonObjectSupport
|
95
101
|
end
|
96
102
|
|
103
|
+
class DeleteGitHubEnterpriseConfigOperationMetadata
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
107
|
+
end
|
108
|
+
|
97
109
|
class DeleteWorkerPoolOperationMetadata
|
98
110
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
111
|
|
@@ -106,18 +118,48 @@ module Google
|
|
106
118
|
include Google::Apis::Core::JsonObjectSupport
|
107
119
|
end
|
108
120
|
|
121
|
+
class FailureInfo
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
+
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
125
|
+
end
|
126
|
+
|
109
127
|
class FileHashes
|
110
128
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
129
|
|
112
130
|
include Google::Apis::Core::JsonObjectSupport
|
113
131
|
end
|
114
132
|
|
133
|
+
class GitHubEnterpriseConfig
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
|
+
|
136
|
+
include Google::Apis::Core::JsonObjectSupport
|
137
|
+
end
|
138
|
+
|
139
|
+
class GitHubEnterpriseSecrets
|
140
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
|
+
|
142
|
+
include Google::Apis::Core::JsonObjectSupport
|
143
|
+
end
|
144
|
+
|
115
145
|
class GitHubEventsConfig
|
116
146
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
147
|
|
118
148
|
include Google::Apis::Core::JsonObjectSupport
|
119
149
|
end
|
120
150
|
|
151
|
+
class GitRepoSource
|
152
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
153
|
+
|
154
|
+
include Google::Apis::Core::JsonObjectSupport
|
155
|
+
end
|
156
|
+
|
157
|
+
class GoogleDevtoolsCloudbuildV2OperationMetadata
|
158
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
159
|
+
|
160
|
+
include Google::Apis::Core::JsonObjectSupport
|
161
|
+
end
|
162
|
+
|
121
163
|
class HttpDelivery
|
122
164
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
165
|
|
@@ -154,6 +196,12 @@ module Google
|
|
154
196
|
include Google::Apis::Core::JsonObjectSupport
|
155
197
|
end
|
156
198
|
|
199
|
+
class ListGithubEnterpriseConfigsResponse
|
200
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
201
|
+
|
202
|
+
include Google::Apis::Core::JsonObjectSupport
|
203
|
+
end
|
204
|
+
|
157
205
|
class ListWorkerPoolsResponse
|
158
206
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
159
207
|
|
@@ -208,6 +256,12 @@ module Google
|
|
208
256
|
include Google::Apis::Core::JsonObjectSupport
|
209
257
|
end
|
210
258
|
|
259
|
+
class OperationMetadata
|
260
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
261
|
+
|
262
|
+
include Google::Apis::Core::JsonObjectSupport
|
263
|
+
end
|
264
|
+
|
211
265
|
class PoolOption
|
212
266
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
213
267
|
|
@@ -220,6 +274,12 @@ module Google
|
|
220
274
|
include Google::Apis::Core::JsonObjectSupport
|
221
275
|
end
|
222
276
|
|
277
|
+
class ProcessAppManifestCallbackOperationMetadata
|
278
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
279
|
+
|
280
|
+
include Google::Apis::Core::JsonObjectSupport
|
281
|
+
end
|
282
|
+
|
223
283
|
class PubsubConfig
|
224
284
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
225
285
|
|
@@ -334,6 +394,12 @@ module Google
|
|
334
394
|
include Google::Apis::Core::JsonObjectSupport
|
335
395
|
end
|
336
396
|
|
397
|
+
class UpdateGitHubEnterpriseConfigOperationMetadata
|
398
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
399
|
+
|
400
|
+
include Google::Apis::Core::JsonObjectSupport
|
401
|
+
end
|
402
|
+
|
337
403
|
class UpdateWorkerPoolOperationMetadata
|
338
404
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
339
405
|
|
@@ -407,6 +473,8 @@ module Google
|
|
407
473
|
|
408
474
|
property :build_trigger_id, as: 'buildTriggerId'
|
409
475
|
property :create_time, as: 'createTime'
|
476
|
+
property :failure_info, as: 'failureInfo', class: Google::Apis::CloudbuildV1::FailureInfo, decorator: Google::Apis::CloudbuildV1::FailureInfo::Representation
|
477
|
+
|
410
478
|
property :finish_time, as: 'finishTime'
|
411
479
|
property :id, as: 'id'
|
412
480
|
collection :images, as: 'images'
|
@@ -512,6 +580,9 @@ module Google
|
|
512
580
|
property :pubsub_config, as: 'pubsubConfig', class: Google::Apis::CloudbuildV1::PubsubConfig, decorator: Google::Apis::CloudbuildV1::PubsubConfig::Representation
|
513
581
|
|
514
582
|
property :resource_name, as: 'resourceName'
|
583
|
+
property :service_account, as: 'serviceAccount'
|
584
|
+
property :source_to_build, as: 'sourceToBuild', class: Google::Apis::CloudbuildV1::GitRepoSource, decorator: Google::Apis::CloudbuildV1::GitRepoSource::Representation
|
585
|
+
|
515
586
|
hash :substitutions, as: 'substitutions'
|
516
587
|
collection :tags, as: 'tags'
|
517
588
|
property :trigger_template, as: 'triggerTemplate', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
|
@@ -546,6 +617,15 @@ module Google
|
|
546
617
|
end
|
547
618
|
end
|
548
619
|
|
620
|
+
class CreateGitHubEnterpriseConfigOperationMetadata
|
621
|
+
# @private
|
622
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
623
|
+
property :complete_time, as: 'completeTime'
|
624
|
+
property :create_time, as: 'createTime'
|
625
|
+
property :github_enterprise_config, as: 'githubEnterpriseConfig'
|
626
|
+
end
|
627
|
+
end
|
628
|
+
|
549
629
|
class CreateWorkerPoolOperationMetadata
|
550
630
|
# @private
|
551
631
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -555,6 +635,15 @@ module Google
|
|
555
635
|
end
|
556
636
|
end
|
557
637
|
|
638
|
+
class DeleteGitHubEnterpriseConfigOperationMetadata
|
639
|
+
# @private
|
640
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
641
|
+
property :complete_time, as: 'completeTime'
|
642
|
+
property :create_time, as: 'createTime'
|
643
|
+
property :github_enterprise_config, as: 'githubEnterpriseConfig'
|
644
|
+
end
|
645
|
+
end
|
646
|
+
|
558
647
|
class DeleteWorkerPoolOperationMetadata
|
559
648
|
# @private
|
560
649
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -570,6 +659,14 @@ module Google
|
|
570
659
|
end
|
571
660
|
end
|
572
661
|
|
662
|
+
class FailureInfo
|
663
|
+
# @private
|
664
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
665
|
+
property :detail, as: 'detail'
|
666
|
+
property :type, as: 'type'
|
667
|
+
end
|
668
|
+
end
|
669
|
+
|
573
670
|
class FileHashes
|
574
671
|
# @private
|
575
672
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -578,9 +675,40 @@ module Google
|
|
578
675
|
end
|
579
676
|
end
|
580
677
|
|
678
|
+
class GitHubEnterpriseConfig
|
679
|
+
# @private
|
680
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
681
|
+
property :app_id, :numeric_string => true, as: 'appId'
|
682
|
+
property :create_time, as: 'createTime'
|
683
|
+
property :display_name, as: 'displayName'
|
684
|
+
property :host_url, as: 'hostUrl'
|
685
|
+
property :name, as: 'name'
|
686
|
+
property :peered_network, as: 'peeredNetwork'
|
687
|
+
property :secrets, as: 'secrets', class: Google::Apis::CloudbuildV1::GitHubEnterpriseSecrets, decorator: Google::Apis::CloudbuildV1::GitHubEnterpriseSecrets::Representation
|
688
|
+
|
689
|
+
property :ssl_ca, as: 'sslCa'
|
690
|
+
property :webhook_key, as: 'webhookKey'
|
691
|
+
end
|
692
|
+
end
|
693
|
+
|
694
|
+
class GitHubEnterpriseSecrets
|
695
|
+
# @private
|
696
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
697
|
+
property :oauth_client_id_name, as: 'oauthClientIdName'
|
698
|
+
property :oauth_client_id_version_name, as: 'oauthClientIdVersionName'
|
699
|
+
property :oauth_secret_name, as: 'oauthSecretName'
|
700
|
+
property :oauth_secret_version_name, as: 'oauthSecretVersionName'
|
701
|
+
property :private_key_name, as: 'privateKeyName'
|
702
|
+
property :private_key_version_name, as: 'privateKeyVersionName'
|
703
|
+
property :webhook_secret_name, as: 'webhookSecretName'
|
704
|
+
property :webhook_secret_version_name, as: 'webhookSecretVersionName'
|
705
|
+
end
|
706
|
+
end
|
707
|
+
|
581
708
|
class GitHubEventsConfig
|
582
709
|
# @private
|
583
710
|
class Representation < Google::Apis::Core::JsonRepresentation
|
711
|
+
property :enterprise_config_resource_name, as: 'enterpriseConfigResourceName'
|
584
712
|
property :installation_id, :numeric_string => true, as: 'installationId'
|
585
713
|
property :name, as: 'name'
|
586
714
|
property :owner, as: 'owner'
|
@@ -591,6 +719,28 @@ module Google
|
|
591
719
|
end
|
592
720
|
end
|
593
721
|
|
722
|
+
class GitRepoSource
|
723
|
+
# @private
|
724
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
725
|
+
property :ref, as: 'ref'
|
726
|
+
property :repo_type, as: 'repoType'
|
727
|
+
property :uri, as: 'uri'
|
728
|
+
end
|
729
|
+
end
|
730
|
+
|
731
|
+
class GoogleDevtoolsCloudbuildV2OperationMetadata
|
732
|
+
# @private
|
733
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
734
|
+
property :api_version, as: 'apiVersion'
|
735
|
+
property :create_time, as: 'createTime'
|
736
|
+
property :end_time, as: 'endTime'
|
737
|
+
property :requested_cancellation, as: 'requestedCancellation'
|
738
|
+
property :status_message, as: 'statusMessage'
|
739
|
+
property :target, as: 'target'
|
740
|
+
property :verb, as: 'verb'
|
741
|
+
end
|
742
|
+
end
|
743
|
+
|
594
744
|
class HttpDelivery
|
595
745
|
# @private
|
596
746
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -641,6 +791,14 @@ module Google
|
|
641
791
|
end
|
642
792
|
end
|
643
793
|
|
794
|
+
class ListGithubEnterpriseConfigsResponse
|
795
|
+
# @private
|
796
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
797
|
+
collection :configs, as: 'configs', class: Google::Apis::CloudbuildV1::GitHubEnterpriseConfig, decorator: Google::Apis::CloudbuildV1::GitHubEnterpriseConfig::Representation
|
798
|
+
|
799
|
+
end
|
800
|
+
end
|
801
|
+
|
644
802
|
class ListWorkerPoolsResponse
|
645
803
|
# @private
|
646
804
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -729,6 +887,19 @@ module Google
|
|
729
887
|
end
|
730
888
|
end
|
731
889
|
|
890
|
+
class OperationMetadata
|
891
|
+
# @private
|
892
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
893
|
+
property :api_version, as: 'apiVersion'
|
894
|
+
property :cancel_requested, as: 'cancelRequested'
|
895
|
+
property :create_time, as: 'createTime'
|
896
|
+
property :end_time, as: 'endTime'
|
897
|
+
property :status_detail, as: 'statusDetail'
|
898
|
+
property :target, as: 'target'
|
899
|
+
property :verb, as: 'verb'
|
900
|
+
end
|
901
|
+
end
|
902
|
+
|
732
903
|
class PoolOption
|
733
904
|
# @private
|
734
905
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -746,6 +917,15 @@ module Google
|
|
746
917
|
end
|
747
918
|
end
|
748
919
|
|
920
|
+
class ProcessAppManifestCallbackOperationMetadata
|
921
|
+
# @private
|
922
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
923
|
+
property :complete_time, as: 'completeTime'
|
924
|
+
property :create_time, as: 'createTime'
|
925
|
+
property :github_enterprise_config, as: 'githubEnterpriseConfig'
|
926
|
+
end
|
927
|
+
end
|
928
|
+
|
749
929
|
class PubsubConfig
|
750
930
|
# @private
|
751
931
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -935,6 +1115,15 @@ module Google
|
|
935
1115
|
end
|
936
1116
|
end
|
937
1117
|
|
1118
|
+
class UpdateGitHubEnterpriseConfigOperationMetadata
|
1119
|
+
# @private
|
1120
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1121
|
+
property :complete_time, as: 'completeTime'
|
1122
|
+
property :create_time, as: 'createTime'
|
1123
|
+
property :github_enterprise_config, as: 'githubEnterpriseConfig'
|
1124
|
+
end
|
1125
|
+
end
|
1126
|
+
|
938
1127
|
class UpdateWorkerPoolOperationMetadata
|
939
1128
|
# @private
|
940
1129
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -333,6 +333,193 @@ module Google
|
|
333
333
|
execute_or_queue_command(command, &block)
|
334
334
|
end
|
335
335
|
|
336
|
+
# Create an association between a GCP project and a GitHub Enterprise server.
|
337
|
+
# This API is experimental.
|
338
|
+
# @param [String] parent
|
339
|
+
# Name of the parent project. For example: projects/`$project_number` or
|
340
|
+
# projects/`$project_id`
|
341
|
+
# @param [Google::Apis::CloudbuildV1::GitHubEnterpriseConfig] git_hub_enterprise_config_object
|
342
|
+
# @param [String] project_id
|
343
|
+
# ID of the project.
|
344
|
+
# @param [String] fields
|
345
|
+
# Selector specifying which fields to include in a partial response.
|
346
|
+
# @param [String] quota_user
|
347
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
348
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
349
|
+
# @param [Google::Apis::RequestOptions] options
|
350
|
+
# Request-specific options
|
351
|
+
#
|
352
|
+
# @yield [result, err] Result & error if block supplied
|
353
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
|
354
|
+
# @yieldparam err [StandardError] error object if request failed
|
355
|
+
#
|
356
|
+
# @return [Google::Apis::CloudbuildV1::Operation]
|
357
|
+
#
|
358
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
359
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
360
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
361
|
+
def create_project_github_enterprise_config(parent, git_hub_enterprise_config_object = nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
362
|
+
command = make_simple_command(:post, 'v1/{+parent}/githubEnterpriseConfigs', options)
|
363
|
+
command.request_representation = Google::Apis::CloudbuildV1::GitHubEnterpriseConfig::Representation
|
364
|
+
command.request_object = git_hub_enterprise_config_object
|
365
|
+
command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
|
366
|
+
command.response_class = Google::Apis::CloudbuildV1::Operation
|
367
|
+
command.params['parent'] = parent unless parent.nil?
|
368
|
+
command.query['projectId'] = project_id unless project_id.nil?
|
369
|
+
command.query['fields'] = fields unless fields.nil?
|
370
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
371
|
+
execute_or_queue_command(command, &block)
|
372
|
+
end
|
373
|
+
|
374
|
+
# Delete an association between a GCP project and a GitHub Enterprise server.
|
375
|
+
# This API is experimental.
|
376
|
+
# @param [String] name
|
377
|
+
# This field should contain the name of the enterprise config resource. For
|
378
|
+
# example: "projects/`$project_id`/githubEnterpriseConfig/`$config_id`"
|
379
|
+
# @param [String] config_id
|
380
|
+
# Unique identifier of the `GitHubEnterpriseConfig`
|
381
|
+
# @param [String] project_id
|
382
|
+
# ID of the project
|
383
|
+
# @param [String] fields
|
384
|
+
# Selector specifying which fields to include in a partial response.
|
385
|
+
# @param [String] quota_user
|
386
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
387
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
388
|
+
# @param [Google::Apis::RequestOptions] options
|
389
|
+
# Request-specific options
|
390
|
+
#
|
391
|
+
# @yield [result, err] Result & error if block supplied
|
392
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
|
393
|
+
# @yieldparam err [StandardError] error object if request failed
|
394
|
+
#
|
395
|
+
# @return [Google::Apis::CloudbuildV1::Operation]
|
396
|
+
#
|
397
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
398
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
399
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
400
|
+
def delete_project_github_enterprise_config(name, config_id: nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
401
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
402
|
+
command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
|
403
|
+
command.response_class = Google::Apis::CloudbuildV1::Operation
|
404
|
+
command.params['name'] = name unless name.nil?
|
405
|
+
command.query['configId'] = config_id unless config_id.nil?
|
406
|
+
command.query['projectId'] = project_id unless project_id.nil?
|
407
|
+
command.query['fields'] = fields unless fields.nil?
|
408
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
409
|
+
execute_or_queue_command(command, &block)
|
410
|
+
end
|
411
|
+
|
412
|
+
# Retrieve a GitHubEnterpriseConfig. This API is experimental.
|
413
|
+
# @param [String] name
|
414
|
+
# This field should contain the name of the enterprise config resource. For
|
415
|
+
# example: "projects/`$project_id`/githubEnterpriseConfig/`$config_id`"
|
416
|
+
# @param [String] config_id
|
417
|
+
# Unique identifier of the `GitHubEnterpriseConfig`
|
418
|
+
# @param [String] project_id
|
419
|
+
# ID of the project
|
420
|
+
# @param [String] fields
|
421
|
+
# Selector specifying which fields to include in a partial response.
|
422
|
+
# @param [String] quota_user
|
423
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
424
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
425
|
+
# @param [Google::Apis::RequestOptions] options
|
426
|
+
# Request-specific options
|
427
|
+
#
|
428
|
+
# @yield [result, err] Result & error if block supplied
|
429
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::GitHubEnterpriseConfig] parsed result object
|
430
|
+
# @yieldparam err [StandardError] error object if request failed
|
431
|
+
#
|
432
|
+
# @return [Google::Apis::CloudbuildV1::GitHubEnterpriseConfig]
|
433
|
+
#
|
434
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
435
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
436
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
437
|
+
def get_project_github_enterprise_config(name, config_id: nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
438
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
439
|
+
command.response_representation = Google::Apis::CloudbuildV1::GitHubEnterpriseConfig::Representation
|
440
|
+
command.response_class = Google::Apis::CloudbuildV1::GitHubEnterpriseConfig
|
441
|
+
command.params['name'] = name unless name.nil?
|
442
|
+
command.query['configId'] = config_id unless config_id.nil?
|
443
|
+
command.query['projectId'] = project_id unless project_id.nil?
|
444
|
+
command.query['fields'] = fields unless fields.nil?
|
445
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
446
|
+
execute_or_queue_command(command, &block)
|
447
|
+
end
|
448
|
+
|
449
|
+
# List all GitHubEnterpriseConfigs for a given project. This API is experimental.
|
450
|
+
# @param [String] parent
|
451
|
+
# Name of the parent project. For example: projects/`$project_number` or
|
452
|
+
# projects/`$project_id`
|
453
|
+
# @param [String] project_id
|
454
|
+
# ID of the project
|
455
|
+
# @param [String] fields
|
456
|
+
# Selector specifying which fields to include in a partial response.
|
457
|
+
# @param [String] quota_user
|
458
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
459
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
460
|
+
# @param [Google::Apis::RequestOptions] options
|
461
|
+
# Request-specific options
|
462
|
+
#
|
463
|
+
# @yield [result, err] Result & error if block supplied
|
464
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::ListGithubEnterpriseConfigsResponse] parsed result object
|
465
|
+
# @yieldparam err [StandardError] error object if request failed
|
466
|
+
#
|
467
|
+
# @return [Google::Apis::CloudbuildV1::ListGithubEnterpriseConfigsResponse]
|
468
|
+
#
|
469
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
470
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
471
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
472
|
+
def list_project_github_enterprise_configs(parent, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
473
|
+
command = make_simple_command(:get, 'v1/{+parent}/githubEnterpriseConfigs', options)
|
474
|
+
command.response_representation = Google::Apis::CloudbuildV1::ListGithubEnterpriseConfigsResponse::Representation
|
475
|
+
command.response_class = Google::Apis::CloudbuildV1::ListGithubEnterpriseConfigsResponse
|
476
|
+
command.params['parent'] = parent unless parent.nil?
|
477
|
+
command.query['projectId'] = project_id unless project_id.nil?
|
478
|
+
command.query['fields'] = fields unless fields.nil?
|
479
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
480
|
+
execute_or_queue_command(command, &block)
|
481
|
+
end
|
482
|
+
|
483
|
+
# Update an association between a GCP project and a GitHub Enterprise server.
|
484
|
+
# This API is experimental.
|
485
|
+
# @param [String] name
|
486
|
+
# Optional. The full resource name for the GitHubEnterpriseConfig For example: "
|
487
|
+
# projects/`$project_id`/githubEnterpriseConfig/`$config_id`"
|
488
|
+
# @param [Google::Apis::CloudbuildV1::GitHubEnterpriseConfig] git_hub_enterprise_config_object
|
489
|
+
# @param [String] update_mask
|
490
|
+
# Update mask for the resource. If this is set, the server will only update the
|
491
|
+
# fields specified in the field mask. Otherwise, a full update of the mutable
|
492
|
+
# resource fields will be performed.
|
493
|
+
# @param [String] fields
|
494
|
+
# Selector specifying which fields to include in a partial response.
|
495
|
+
# @param [String] quota_user
|
496
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
497
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
498
|
+
# @param [Google::Apis::RequestOptions] options
|
499
|
+
# Request-specific options
|
500
|
+
#
|
501
|
+
# @yield [result, err] Result & error if block supplied
|
502
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
|
503
|
+
# @yieldparam err [StandardError] error object if request failed
|
504
|
+
#
|
505
|
+
# @return [Google::Apis::CloudbuildV1::Operation]
|
506
|
+
#
|
507
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
508
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
509
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
510
|
+
def patch_project_github_enterprise_config(name, git_hub_enterprise_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
511
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
512
|
+
command.request_representation = Google::Apis::CloudbuildV1::GitHubEnterpriseConfig::Representation
|
513
|
+
command.request_object = git_hub_enterprise_config_object
|
514
|
+
command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
|
515
|
+
command.response_class = Google::Apis::CloudbuildV1::Operation
|
516
|
+
command.params['name'] = name unless name.nil?
|
517
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
518
|
+
command.query['fields'] = fields unless fields.nil?
|
519
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
520
|
+
execute_or_queue_command(command, &block)
|
521
|
+
end
|
522
|
+
|
336
523
|
# Cancels a build in progress.
|
337
524
|
# @param [String] name
|
338
525
|
# The name of the `Build` to cancel. Format: `projects/`project`/locations/`
|
@@ -542,6 +729,193 @@ module Google
|
|
542
729
|
execute_or_queue_command(command, &block)
|
543
730
|
end
|
544
731
|
|
732
|
+
# Create an association between a GCP project and a GitHub Enterprise server.
|
733
|
+
# This API is experimental.
|
734
|
+
# @param [String] parent
|
735
|
+
# Name of the parent project. For example: projects/`$project_number` or
|
736
|
+
# projects/`$project_id`
|
737
|
+
# @param [Google::Apis::CloudbuildV1::GitHubEnterpriseConfig] git_hub_enterprise_config_object
|
738
|
+
# @param [String] project_id
|
739
|
+
# ID of the project.
|
740
|
+
# @param [String] fields
|
741
|
+
# Selector specifying which fields to include in a partial response.
|
742
|
+
# @param [String] quota_user
|
743
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
744
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
745
|
+
# @param [Google::Apis::RequestOptions] options
|
746
|
+
# Request-specific options
|
747
|
+
#
|
748
|
+
# @yield [result, err] Result & error if block supplied
|
749
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
|
750
|
+
# @yieldparam err [StandardError] error object if request failed
|
751
|
+
#
|
752
|
+
# @return [Google::Apis::CloudbuildV1::Operation]
|
753
|
+
#
|
754
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
755
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
756
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
757
|
+
def create_project_location_github_enterprise_config(parent, git_hub_enterprise_config_object = nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
758
|
+
command = make_simple_command(:post, 'v1/{+parent}/githubEnterpriseConfigs', options)
|
759
|
+
command.request_representation = Google::Apis::CloudbuildV1::GitHubEnterpriseConfig::Representation
|
760
|
+
command.request_object = git_hub_enterprise_config_object
|
761
|
+
command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
|
762
|
+
command.response_class = Google::Apis::CloudbuildV1::Operation
|
763
|
+
command.params['parent'] = parent unless parent.nil?
|
764
|
+
command.query['projectId'] = project_id unless project_id.nil?
|
765
|
+
command.query['fields'] = fields unless fields.nil?
|
766
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
767
|
+
execute_or_queue_command(command, &block)
|
768
|
+
end
|
769
|
+
|
770
|
+
# Delete an association between a GCP project and a GitHub Enterprise server.
|
771
|
+
# This API is experimental.
|
772
|
+
# @param [String] name
|
773
|
+
# This field should contain the name of the enterprise config resource. For
|
774
|
+
# example: "projects/`$project_id`/githubEnterpriseConfig/`$config_id`"
|
775
|
+
# @param [String] config_id
|
776
|
+
# Unique identifier of the `GitHubEnterpriseConfig`
|
777
|
+
# @param [String] project_id
|
778
|
+
# ID of the project
|
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::Operation] parsed result object
|
789
|
+
# @yieldparam err [StandardError] error object if request failed
|
790
|
+
#
|
791
|
+
# @return [Google::Apis::CloudbuildV1::Operation]
|
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 delete_project_location_github_enterprise_config(name, config_id: nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
797
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
798
|
+
command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
|
799
|
+
command.response_class = Google::Apis::CloudbuildV1::Operation
|
800
|
+
command.params['name'] = name unless name.nil?
|
801
|
+
command.query['configId'] = config_id unless config_id.nil?
|
802
|
+
command.query['projectId'] = project_id unless project_id.nil?
|
803
|
+
command.query['fields'] = fields unless fields.nil?
|
804
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
805
|
+
execute_or_queue_command(command, &block)
|
806
|
+
end
|
807
|
+
|
808
|
+
# Retrieve a GitHubEnterpriseConfig. This API is experimental.
|
809
|
+
# @param [String] name
|
810
|
+
# This field should contain the name of the enterprise config resource. For
|
811
|
+
# example: "projects/`$project_id`/githubEnterpriseConfig/`$config_id`"
|
812
|
+
# @param [String] config_id
|
813
|
+
# Unique identifier of the `GitHubEnterpriseConfig`
|
814
|
+
# @param [String] project_id
|
815
|
+
# ID of the project
|
816
|
+
# @param [String] fields
|
817
|
+
# Selector specifying which fields to include in a partial response.
|
818
|
+
# @param [String] quota_user
|
819
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
820
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
821
|
+
# @param [Google::Apis::RequestOptions] options
|
822
|
+
# Request-specific options
|
823
|
+
#
|
824
|
+
# @yield [result, err] Result & error if block supplied
|
825
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::GitHubEnterpriseConfig] parsed result object
|
826
|
+
# @yieldparam err [StandardError] error object if request failed
|
827
|
+
#
|
828
|
+
# @return [Google::Apis::CloudbuildV1::GitHubEnterpriseConfig]
|
829
|
+
#
|
830
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
831
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
832
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
833
|
+
def get_project_location_github_enterprise_config(name, config_id: nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
834
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
835
|
+
command.response_representation = Google::Apis::CloudbuildV1::GitHubEnterpriseConfig::Representation
|
836
|
+
command.response_class = Google::Apis::CloudbuildV1::GitHubEnterpriseConfig
|
837
|
+
command.params['name'] = name unless name.nil?
|
838
|
+
command.query['configId'] = config_id unless config_id.nil?
|
839
|
+
command.query['projectId'] = project_id unless project_id.nil?
|
840
|
+
command.query['fields'] = fields unless fields.nil?
|
841
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
842
|
+
execute_or_queue_command(command, &block)
|
843
|
+
end
|
844
|
+
|
845
|
+
# List all GitHubEnterpriseConfigs for a given project. This API is experimental.
|
846
|
+
# @param [String] parent
|
847
|
+
# Name of the parent project. For example: projects/`$project_number` or
|
848
|
+
# projects/`$project_id`
|
849
|
+
# @param [String] project_id
|
850
|
+
# ID of the project
|
851
|
+
# @param [String] fields
|
852
|
+
# Selector specifying which fields to include in a partial response.
|
853
|
+
# @param [String] quota_user
|
854
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
855
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
856
|
+
# @param [Google::Apis::RequestOptions] options
|
857
|
+
# Request-specific options
|
858
|
+
#
|
859
|
+
# @yield [result, err] Result & error if block supplied
|
860
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::ListGithubEnterpriseConfigsResponse] parsed result object
|
861
|
+
# @yieldparam err [StandardError] error object if request failed
|
862
|
+
#
|
863
|
+
# @return [Google::Apis::CloudbuildV1::ListGithubEnterpriseConfigsResponse]
|
864
|
+
#
|
865
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
866
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
867
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
868
|
+
def list_project_location_github_enterprise_configs(parent, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
869
|
+
command = make_simple_command(:get, 'v1/{+parent}/githubEnterpriseConfigs', options)
|
870
|
+
command.response_representation = Google::Apis::CloudbuildV1::ListGithubEnterpriseConfigsResponse::Representation
|
871
|
+
command.response_class = Google::Apis::CloudbuildV1::ListGithubEnterpriseConfigsResponse
|
872
|
+
command.params['parent'] = parent unless parent.nil?
|
873
|
+
command.query['projectId'] = project_id unless project_id.nil?
|
874
|
+
command.query['fields'] = fields unless fields.nil?
|
875
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
876
|
+
execute_or_queue_command(command, &block)
|
877
|
+
end
|
878
|
+
|
879
|
+
# Update an association between a GCP project and a GitHub Enterprise server.
|
880
|
+
# This API is experimental.
|
881
|
+
# @param [String] name
|
882
|
+
# Optional. The full resource name for the GitHubEnterpriseConfig For example: "
|
883
|
+
# projects/`$project_id`/githubEnterpriseConfig/`$config_id`"
|
884
|
+
# @param [Google::Apis::CloudbuildV1::GitHubEnterpriseConfig] git_hub_enterprise_config_object
|
885
|
+
# @param [String] update_mask
|
886
|
+
# Update mask for the resource. If this is set, the server will only update the
|
887
|
+
# fields specified in the field mask. Otherwise, a full update of the mutable
|
888
|
+
# resource fields will be performed.
|
889
|
+
# @param [String] fields
|
890
|
+
# Selector specifying which fields to include in a partial response.
|
891
|
+
# @param [String] quota_user
|
892
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
893
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
894
|
+
# @param [Google::Apis::RequestOptions] options
|
895
|
+
# Request-specific options
|
896
|
+
#
|
897
|
+
# @yield [result, err] Result & error if block supplied
|
898
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
|
899
|
+
# @yieldparam err [StandardError] error object if request failed
|
900
|
+
#
|
901
|
+
# @return [Google::Apis::CloudbuildV1::Operation]
|
902
|
+
#
|
903
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
904
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
905
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
906
|
+
def patch_project_location_github_enterprise_config(name, git_hub_enterprise_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
907
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
908
|
+
command.request_representation = Google::Apis::CloudbuildV1::GitHubEnterpriseConfig::Representation
|
909
|
+
command.request_object = git_hub_enterprise_config_object
|
910
|
+
command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
|
911
|
+
command.response_class = Google::Apis::CloudbuildV1::Operation
|
912
|
+
command.params['name'] = name unless name.nil?
|
913
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
914
|
+
command.query['fields'] = fields unless fields.nil?
|
915
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
916
|
+
execute_or_queue_command(command, &block)
|
917
|
+
end
|
918
|
+
|
545
919
|
# Starts asynchronous cancellation on a long-running operation. The server makes
|
546
920
|
# a best effort to cancel the operation, but success is not guaranteed. If the
|
547
921
|
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
@@ -1005,7 +1379,7 @@ module Google
|
|
1005
1379
|
# Lists `WorkerPool`s.
|
1006
1380
|
# @param [String] parent
|
1007
1381
|
# Required. The parent of the collection of `WorkerPools`. Format: `projects/`
|
1008
|
-
# project`/locations
|
1382
|
+
# project`/locations/`location``.
|
1009
1383
|
# @param [Fixnum] page_size
|
1010
1384
|
# The maximum number of `WorkerPool`s to return. The service may return fewer
|
1011
1385
|
# than this value. If omitted, the server will use a sensible default.
|
@@ -1356,6 +1730,40 @@ module Google
|
|
1356
1730
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1357
1731
|
execute_or_queue_command(command, &block)
|
1358
1732
|
end
|
1733
|
+
|
1734
|
+
# ReceiveWebhook is called when the API receives a GitHub webhook.
|
1735
|
+
# @param [Google::Apis::CloudbuildV1::HttpBody] http_body_object
|
1736
|
+
# @param [String] webhook_key
|
1737
|
+
# For GitHub Enterprise webhooks, this key is used to associate the webhook
|
1738
|
+
# request with the GitHubEnterpriseConfig to use for validation.
|
1739
|
+
# @param [String] fields
|
1740
|
+
# Selector specifying which fields to include in a partial response.
|
1741
|
+
# @param [String] quota_user
|
1742
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1743
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1744
|
+
# @param [Google::Apis::RequestOptions] options
|
1745
|
+
# Request-specific options
|
1746
|
+
#
|
1747
|
+
# @yield [result, err] Result & error if block supplied
|
1748
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::Empty] parsed result object
|
1749
|
+
# @yieldparam err [StandardError] error object if request failed
|
1750
|
+
#
|
1751
|
+
# @return [Google::Apis::CloudbuildV1::Empty]
|
1752
|
+
#
|
1753
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1754
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1755
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1756
|
+
def webhook(http_body_object = nil, webhook_key: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1757
|
+
command = make_simple_command(:post, 'v1/webhook', options)
|
1758
|
+
command.request_representation = Google::Apis::CloudbuildV1::HttpBody::Representation
|
1759
|
+
command.request_object = http_body_object
|
1760
|
+
command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation
|
1761
|
+
command.response_class = Google::Apis::CloudbuildV1::Empty
|
1762
|
+
command.query['webhookKey'] = webhook_key unless webhook_key.nil?
|
1763
|
+
command.query['fields'] = fields unless fields.nil?
|
1764
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1765
|
+
execute_or_queue_command(command, &block)
|
1766
|
+
end
|
1359
1767
|
|
1360
1768
|
protected
|
1361
1769
|
|