google-apis-cloudbuild_v1 0.9.0 → 0.13.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.
@@ -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`.
|
@@ -885,6 +1259,205 @@ module Google
|
|
885
1259
|
execute_or_queue_command(command, &block)
|
886
1260
|
end
|
887
1261
|
|
1262
|
+
# Creates a `WorkerPool`.
|
1263
|
+
# @param [String] parent
|
1264
|
+
# Required. The parent resource where this worker pool will be created. Format: `
|
1265
|
+
# projects/`project`/locations/`location``.
|
1266
|
+
# @param [Google::Apis::CloudbuildV1::WorkerPool] worker_pool_object
|
1267
|
+
# @param [Boolean] validate_only
|
1268
|
+
# If set, validate the request and preview the response, but do not actually
|
1269
|
+
# post it.
|
1270
|
+
# @param [String] worker_pool_id
|
1271
|
+
# Required. Immutable. The ID to use for the `WorkerPool`, which will become the
|
1272
|
+
# final component of the resource name. This value should be 1-63 characters,
|
1273
|
+
# and valid characters are /a-z-/.
|
1274
|
+
# @param [String] fields
|
1275
|
+
# Selector specifying which fields to include in a partial response.
|
1276
|
+
# @param [String] quota_user
|
1277
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1278
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1279
|
+
# @param [Google::Apis::RequestOptions] options
|
1280
|
+
# Request-specific options
|
1281
|
+
#
|
1282
|
+
# @yield [result, err] Result & error if block supplied
|
1283
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
|
1284
|
+
# @yieldparam err [StandardError] error object if request failed
|
1285
|
+
#
|
1286
|
+
# @return [Google::Apis::CloudbuildV1::Operation]
|
1287
|
+
#
|
1288
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1289
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1290
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1291
|
+
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)
|
1292
|
+
command = make_simple_command(:post, 'v1/{+parent}/workerPools', options)
|
1293
|
+
command.request_representation = Google::Apis::CloudbuildV1::WorkerPool::Representation
|
1294
|
+
command.request_object = worker_pool_object
|
1295
|
+
command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
|
1296
|
+
command.response_class = Google::Apis::CloudbuildV1::Operation
|
1297
|
+
command.params['parent'] = parent unless parent.nil?
|
1298
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
1299
|
+
command.query['workerPoolId'] = worker_pool_id unless worker_pool_id.nil?
|
1300
|
+
command.query['fields'] = fields unless fields.nil?
|
1301
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1302
|
+
execute_or_queue_command(command, &block)
|
1303
|
+
end
|
1304
|
+
|
1305
|
+
# Deletes a `WorkerPool`.
|
1306
|
+
# @param [String] name
|
1307
|
+
# Required. The name of the `WorkerPool` to delete. Format: `projects/`project`/
|
1308
|
+
# locations/`workerPool`/workerPools/`workerPool``.
|
1309
|
+
# @param [Boolean] allow_missing
|
1310
|
+
# If set to true, and the `WorkerPool` is not found, the request will succeed
|
1311
|
+
# but no action will be taken on the server.
|
1312
|
+
# @param [String] etag
|
1313
|
+
# Optional. If this is provided, it must match the server's etag on the
|
1314
|
+
# workerpool for the request to be processed.
|
1315
|
+
# @param [Boolean] validate_only
|
1316
|
+
# If set, validate the request and preview the response, but do not actually
|
1317
|
+
# post it.
|
1318
|
+
# @param [String] fields
|
1319
|
+
# Selector specifying which fields to include in a partial response.
|
1320
|
+
# @param [String] quota_user
|
1321
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1322
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1323
|
+
# @param [Google::Apis::RequestOptions] options
|
1324
|
+
# Request-specific options
|
1325
|
+
#
|
1326
|
+
# @yield [result, err] Result & error if block supplied
|
1327
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
|
1328
|
+
# @yieldparam err [StandardError] error object if request failed
|
1329
|
+
#
|
1330
|
+
# @return [Google::Apis::CloudbuildV1::Operation]
|
1331
|
+
#
|
1332
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1333
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1334
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1335
|
+
def delete_project_location_worker_pool(name, allow_missing: nil, etag: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1336
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
1337
|
+
command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
|
1338
|
+
command.response_class = Google::Apis::CloudbuildV1::Operation
|
1339
|
+
command.params['name'] = name unless name.nil?
|
1340
|
+
command.query['allowMissing'] = allow_missing unless allow_missing.nil?
|
1341
|
+
command.query['etag'] = etag unless etag.nil?
|
1342
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
1343
|
+
command.query['fields'] = fields unless fields.nil?
|
1344
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1345
|
+
execute_or_queue_command(command, &block)
|
1346
|
+
end
|
1347
|
+
|
1348
|
+
# Returns details of a `WorkerPool`.
|
1349
|
+
# @param [String] name
|
1350
|
+
# Required. The name of the `WorkerPool` to retrieve. Format: `projects/`project`
|
1351
|
+
# /locations/`location`/workerPools/`workerPool``.
|
1352
|
+
# @param [String] fields
|
1353
|
+
# Selector specifying which fields to include in a partial response.
|
1354
|
+
# @param [String] quota_user
|
1355
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1356
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1357
|
+
# @param [Google::Apis::RequestOptions] options
|
1358
|
+
# Request-specific options
|
1359
|
+
#
|
1360
|
+
# @yield [result, err] Result & error if block supplied
|
1361
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::WorkerPool] parsed result object
|
1362
|
+
# @yieldparam err [StandardError] error object if request failed
|
1363
|
+
#
|
1364
|
+
# @return [Google::Apis::CloudbuildV1::WorkerPool]
|
1365
|
+
#
|
1366
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1367
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1368
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1369
|
+
def get_project_location_worker_pool(name, fields: nil, quota_user: nil, options: nil, &block)
|
1370
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
1371
|
+
command.response_representation = Google::Apis::CloudbuildV1::WorkerPool::Representation
|
1372
|
+
command.response_class = Google::Apis::CloudbuildV1::WorkerPool
|
1373
|
+
command.params['name'] = name unless name.nil?
|
1374
|
+
command.query['fields'] = fields unless fields.nil?
|
1375
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1376
|
+
execute_or_queue_command(command, &block)
|
1377
|
+
end
|
1378
|
+
|
1379
|
+
# Lists `WorkerPool`s.
|
1380
|
+
# @param [String] parent
|
1381
|
+
# Required. The parent of the collection of `WorkerPools`. Format: `projects/`
|
1382
|
+
# project`/locations/`location``.
|
1383
|
+
# @param [Fixnum] page_size
|
1384
|
+
# The maximum number of `WorkerPool`s to return. The service may return fewer
|
1385
|
+
# than this value. If omitted, the server will use a sensible default.
|
1386
|
+
# @param [String] page_token
|
1387
|
+
# A page token, received from a previous `ListWorkerPools` call. Provide this to
|
1388
|
+
# retrieve the subsequent page.
|
1389
|
+
# @param [String] fields
|
1390
|
+
# Selector specifying which fields to include in a partial response.
|
1391
|
+
# @param [String] quota_user
|
1392
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1393
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1394
|
+
# @param [Google::Apis::RequestOptions] options
|
1395
|
+
# Request-specific options
|
1396
|
+
#
|
1397
|
+
# @yield [result, err] Result & error if block supplied
|
1398
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::ListWorkerPoolsResponse] parsed result object
|
1399
|
+
# @yieldparam err [StandardError] error object if request failed
|
1400
|
+
#
|
1401
|
+
# @return [Google::Apis::CloudbuildV1::ListWorkerPoolsResponse]
|
1402
|
+
#
|
1403
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1404
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1405
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1406
|
+
def list_project_location_worker_pools(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1407
|
+
command = make_simple_command(:get, 'v1/{+parent}/workerPools', options)
|
1408
|
+
command.response_representation = Google::Apis::CloudbuildV1::ListWorkerPoolsResponse::Representation
|
1409
|
+
command.response_class = Google::Apis::CloudbuildV1::ListWorkerPoolsResponse
|
1410
|
+
command.params['parent'] = parent unless parent.nil?
|
1411
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1412
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1413
|
+
command.query['fields'] = fields unless fields.nil?
|
1414
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1415
|
+
execute_or_queue_command(command, &block)
|
1416
|
+
end
|
1417
|
+
|
1418
|
+
# Updates a `WorkerPool`.
|
1419
|
+
# @param [String] name
|
1420
|
+
# Output only. The resource name of the `WorkerPool`, with format `projects/`
|
1421
|
+
# project`/locations/`location`/workerPools/`worker_pool``. The value of ``
|
1422
|
+
# worker_pool`` is provided by `worker_pool_id` in `CreateWorkerPool` request
|
1423
|
+
# and the value of ``location`` is determined by the endpoint accessed.
|
1424
|
+
# @param [Google::Apis::CloudbuildV1::WorkerPool] worker_pool_object
|
1425
|
+
# @param [String] update_mask
|
1426
|
+
# A mask specifying which fields in `worker_pool` to update.
|
1427
|
+
# @param [Boolean] validate_only
|
1428
|
+
# If set, validate the request and preview the response, but do not actually
|
1429
|
+
# post it.
|
1430
|
+
# @param [String] fields
|
1431
|
+
# Selector specifying which fields to include in a partial response.
|
1432
|
+
# @param [String] quota_user
|
1433
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1434
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1435
|
+
# @param [Google::Apis::RequestOptions] options
|
1436
|
+
# Request-specific options
|
1437
|
+
#
|
1438
|
+
# @yield [result, err] Result & error if block supplied
|
1439
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
|
1440
|
+
# @yieldparam err [StandardError] error object if request failed
|
1441
|
+
#
|
1442
|
+
# @return [Google::Apis::CloudbuildV1::Operation]
|
1443
|
+
#
|
1444
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1445
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1446
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1447
|
+
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)
|
1448
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
1449
|
+
command.request_representation = Google::Apis::CloudbuildV1::WorkerPool::Representation
|
1450
|
+
command.request_object = worker_pool_object
|
1451
|
+
command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
|
1452
|
+
command.response_class = Google::Apis::CloudbuildV1::Operation
|
1453
|
+
command.params['name'] = name unless name.nil?
|
1454
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1455
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
1456
|
+
command.query['fields'] = fields unless fields.nil?
|
1457
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1458
|
+
execute_or_queue_command(command, &block)
|
1459
|
+
end
|
1460
|
+
|
888
1461
|
# Creates a new `BuildTrigger`. This API is experimental.
|
889
1462
|
# @param [String] project_id
|
890
1463
|
# Required. ID of the project for which to configure automatic builds.
|
@@ -1157,6 +1730,36 @@ module Google
|
|
1157
1730
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1158
1731
|
execute_or_queue_command(command, &block)
|
1159
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] fields
|
1737
|
+
# Selector specifying which fields to include in a partial response.
|
1738
|
+
# @param [String] quota_user
|
1739
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1740
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1741
|
+
# @param [Google::Apis::RequestOptions] options
|
1742
|
+
# Request-specific options
|
1743
|
+
#
|
1744
|
+
# @yield [result, err] Result & error if block supplied
|
1745
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::Empty] parsed result object
|
1746
|
+
# @yieldparam err [StandardError] error object if request failed
|
1747
|
+
#
|
1748
|
+
# @return [Google::Apis::CloudbuildV1::Empty]
|
1749
|
+
#
|
1750
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1751
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1752
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1753
|
+
def webhook(http_body_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1754
|
+
command = make_simple_command(:post, 'v1/webhook', options)
|
1755
|
+
command.request_representation = Google::Apis::CloudbuildV1::HttpBody::Representation
|
1756
|
+
command.request_object = http_body_object
|
1757
|
+
command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation
|
1758
|
+
command.response_class = Google::Apis::CloudbuildV1::Empty
|
1759
|
+
command.query['fields'] = fields unless fields.nil?
|
1760
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1761
|
+
execute_or_queue_command(command, &block)
|
1762
|
+
end
|
1160
1763
|
|
1161
1764
|
protected
|
1162
1765
|
|