google-apis-cloudbuild_v1 0.12.0 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb0499e20a9d222250ff6b33797fad6d904df236510c1d85b9a2ced3a82aca4f
|
4
|
+
data.tar.gz: 64d58b7a1a51c2889686223d05e07721839d106e60187244dafe7a40a29b7186
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 831b78709a5b4f6667008f9c0f68e4d987c9c11163b549b461b12e59d0d7c569a0957f353b4cba6c7cf7a7bd22a14a92bdfc38731f7d6f8eeab66a73c4d71979
|
7
|
+
data.tar.gz: 9dfe24b2578c9d637cf3a77da27e442a3eaa56ec7322ec1eeeb6244f4e49896ad4116355a89d02ee229785b867ee504f384e1046af8d66e4c410074756c73d5d
|
data/CHANGELOG.md
CHANGED
@@ -283,9 +283,10 @@ module Google
|
|
283
283
|
attr_accessor :timeout
|
284
284
|
|
285
285
|
# Output only. Stores timing information for phases of the build. Valid keys are:
|
286
|
-
# * BUILD: time to execute all build steps * PUSH: time to push all specified
|
287
|
-
# images. * FETCHSOURCE: time to fetch source.
|
288
|
-
# source or images, these keys will not be
|
286
|
+
# * BUILD: time to execute all build steps. * PUSH: time to push all specified
|
287
|
+
# images. * FETCHSOURCE: time to fetch source. * SETUPBUILD: time to set up
|
288
|
+
# build. If the build does not specify source or images, these keys will not be
|
289
|
+
# included.
|
289
290
|
# Corresponds to the JSON property `timing`
|
290
291
|
# @return [Hash<String,Google::Apis::CloudbuildV1::TimeSpan>]
|
291
292
|
attr_accessor :timing
|
@@ -659,7 +660,7 @@ module Google
|
|
659
660
|
attr_accessor :filter
|
660
661
|
|
661
662
|
# GitHubEventsConfig describes the configuration of a trigger that creates a
|
662
|
-
# build whenever a GitHub event is received.
|
663
|
+
# build whenever a GitHub event is received.
|
663
664
|
# Corresponds to the JSON property `github`
|
664
665
|
# @return [Google::Apis::CloudbuildV1::GitHubEventsConfig]
|
665
666
|
attr_accessor :github
|
@@ -710,6 +711,15 @@ module Google
|
|
710
711
|
# @return [String]
|
711
712
|
attr_accessor :resource_name
|
712
713
|
|
714
|
+
# Optional. The service account used for all user-controlled operations
|
715
|
+
# including UpdateBuildTrigger, RunBuildTrigger, CreateBuild, and CancelBuild.
|
716
|
+
# If no service account is set, then the standard Cloud Build service account ([
|
717
|
+
# PROJECT_NUM]@system.gserviceaccount.com) will be used instead. Format: `
|
718
|
+
# projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT_ID_OR_EMAIL``
|
719
|
+
# Corresponds to the JSON property `serviceAccount`
|
720
|
+
# @return [String]
|
721
|
+
attr_accessor :service_account
|
722
|
+
|
713
723
|
# GitRepoSource describes a repo and ref of a code repository.
|
714
724
|
# Corresponds to the JSON property `sourceToBuild`
|
715
725
|
# @return [Google::Apis::CloudbuildV1::GitRepoSource]
|
@@ -757,6 +767,7 @@ module Google
|
|
757
767
|
@name = args[:name] if args.key?(:name)
|
758
768
|
@pubsub_config = args[:pubsub_config] if args.key?(:pubsub_config)
|
759
769
|
@resource_name = args[:resource_name] if args.key?(:resource_name)
|
770
|
+
@service_account = args[:service_account] if args.key?(:service_account)
|
760
771
|
@source_to_build = args[:source_to_build] if args.key?(:source_to_build)
|
761
772
|
@substitutions = args[:substitutions] if args.key?(:substitutions)
|
762
773
|
@tags = args[:tags] if args.key?(:tags)
|
@@ -842,6 +853,38 @@ module Google
|
|
842
853
|
end
|
843
854
|
end
|
844
855
|
|
856
|
+
# Metadata for `CreateGithubEnterpriseConfig` operation.
|
857
|
+
class CreateGitHubEnterpriseConfigOperationMetadata
|
858
|
+
include Google::Apis::Core::Hashable
|
859
|
+
|
860
|
+
# Time the operation was completed.
|
861
|
+
# Corresponds to the JSON property `completeTime`
|
862
|
+
# @return [String]
|
863
|
+
attr_accessor :complete_time
|
864
|
+
|
865
|
+
# Time the operation was created.
|
866
|
+
# Corresponds to the JSON property `createTime`
|
867
|
+
# @return [String]
|
868
|
+
attr_accessor :create_time
|
869
|
+
|
870
|
+
# The resource name of the GitHubEnterprise to be created. Format: `projects/`
|
871
|
+
# project`/locations/`location`/githubEnterpriseConfigs/`id``.
|
872
|
+
# Corresponds to the JSON property `githubEnterpriseConfig`
|
873
|
+
# @return [String]
|
874
|
+
attr_accessor :github_enterprise_config
|
875
|
+
|
876
|
+
def initialize(**args)
|
877
|
+
update!(**args)
|
878
|
+
end
|
879
|
+
|
880
|
+
# Update properties of this object
|
881
|
+
def update!(**args)
|
882
|
+
@complete_time = args[:complete_time] if args.key?(:complete_time)
|
883
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
884
|
+
@github_enterprise_config = args[:github_enterprise_config] if args.key?(:github_enterprise_config)
|
885
|
+
end
|
886
|
+
end
|
887
|
+
|
845
888
|
# Metadata for the `CreateWorkerPool` operation.
|
846
889
|
class CreateWorkerPoolOperationMetadata
|
847
890
|
include Google::Apis::Core::Hashable
|
@@ -874,6 +917,38 @@ module Google
|
|
874
917
|
end
|
875
918
|
end
|
876
919
|
|
920
|
+
# Metadata for `DeleteGitHubEnterpriseConfig` operation.
|
921
|
+
class DeleteGitHubEnterpriseConfigOperationMetadata
|
922
|
+
include Google::Apis::Core::Hashable
|
923
|
+
|
924
|
+
# Time the operation was completed.
|
925
|
+
# Corresponds to the JSON property `completeTime`
|
926
|
+
# @return [String]
|
927
|
+
attr_accessor :complete_time
|
928
|
+
|
929
|
+
# Time the operation was created.
|
930
|
+
# Corresponds to the JSON property `createTime`
|
931
|
+
# @return [String]
|
932
|
+
attr_accessor :create_time
|
933
|
+
|
934
|
+
# The resource name of the GitHubEnterprise to be deleted. Format: `projects/`
|
935
|
+
# project`/locations/`location`/githubEnterpriseConfigs/`id``.
|
936
|
+
# Corresponds to the JSON property `githubEnterpriseConfig`
|
937
|
+
# @return [String]
|
938
|
+
attr_accessor :github_enterprise_config
|
939
|
+
|
940
|
+
def initialize(**args)
|
941
|
+
update!(**args)
|
942
|
+
end
|
943
|
+
|
944
|
+
# Update properties of this object
|
945
|
+
def update!(**args)
|
946
|
+
@complete_time = args[:complete_time] if args.key?(:complete_time)
|
947
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
948
|
+
@github_enterprise_config = args[:github_enterprise_config] if args.key?(:github_enterprise_config)
|
949
|
+
end
|
950
|
+
end
|
951
|
+
|
877
952
|
# Metadata for the `DeleteWorkerPool` operation.
|
878
953
|
class DeleteWorkerPoolOperationMetadata
|
879
954
|
include Google::Apis::Core::Hashable
|
@@ -968,11 +1043,159 @@ module Google
|
|
968
1043
|
end
|
969
1044
|
end
|
970
1045
|
|
1046
|
+
# GitHubEnterpriseConfig represents a configuration for a GitHub Enterprise
|
1047
|
+
# server.
|
1048
|
+
class GitHubEnterpriseConfig
|
1049
|
+
include Google::Apis::Core::Hashable
|
1050
|
+
|
1051
|
+
# Required. The GitHub app id of the Cloud Build app on the GitHub Enterprise
|
1052
|
+
# server.
|
1053
|
+
# Corresponds to the JSON property `appId`
|
1054
|
+
# @return [Fixnum]
|
1055
|
+
attr_accessor :app_id
|
1056
|
+
|
1057
|
+
# Output only. Time when the installation was associated with the project.
|
1058
|
+
# Corresponds to the JSON property `createTime`
|
1059
|
+
# @return [String]
|
1060
|
+
attr_accessor :create_time
|
1061
|
+
|
1062
|
+
# Name to display for this config.
|
1063
|
+
# Corresponds to the JSON property `displayName`
|
1064
|
+
# @return [String]
|
1065
|
+
attr_accessor :display_name
|
1066
|
+
|
1067
|
+
# The URL of the github enterprise host the configuration is for.
|
1068
|
+
# Corresponds to the JSON property `hostUrl`
|
1069
|
+
# @return [String]
|
1070
|
+
attr_accessor :host_url
|
1071
|
+
|
1072
|
+
# Optional. The full resource name for the GitHubEnterpriseConfig For example: "
|
1073
|
+
# projects/`$project_id`/githubEnterpriseConfig/`$config_id`"
|
1074
|
+
# Corresponds to the JSON property `name`
|
1075
|
+
# @return [String]
|
1076
|
+
attr_accessor :name
|
1077
|
+
|
1078
|
+
# Optional. The network to be used when reaching out to the GitHub Enterprise
|
1079
|
+
# server. The VPC network must be enabled for private service connection. This
|
1080
|
+
# should be set if the GitHub Enterprise server is hosted on-premises and not
|
1081
|
+
# reachable by public internet. If this field is left empty, no network peering
|
1082
|
+
# will occur and calls to the GitHub Enterprise server will be made over the
|
1083
|
+
# public internet. Must be in the format `projects/`project`/global/networks/`
|
1084
|
+
# network``, where `project` is a project number or id and `network` is the name
|
1085
|
+
# of a VPC network in the project.
|
1086
|
+
# Corresponds to the JSON property `peeredNetwork`
|
1087
|
+
# @return [String]
|
1088
|
+
attr_accessor :peered_network
|
1089
|
+
|
1090
|
+
# GitHubEnterpriseSecrets represents the names of all necessary secrets in
|
1091
|
+
# Secret Manager for a GitHub Enterprise server. Format is: projects//secrets/.
|
1092
|
+
# Corresponds to the JSON property `secrets`
|
1093
|
+
# @return [Google::Apis::CloudbuildV1::GitHubEnterpriseSecrets]
|
1094
|
+
attr_accessor :secrets
|
1095
|
+
|
1096
|
+
# Optional. SSL certificate to use for requests to GitHub Enterprise.
|
1097
|
+
# Corresponds to the JSON property `sslCa`
|
1098
|
+
# @return [String]
|
1099
|
+
attr_accessor :ssl_ca
|
1100
|
+
|
1101
|
+
# The key that should be attached to webhook calls to the ReceiveWebhook
|
1102
|
+
# endpoint.
|
1103
|
+
# Corresponds to the JSON property `webhookKey`
|
1104
|
+
# @return [String]
|
1105
|
+
attr_accessor :webhook_key
|
1106
|
+
|
1107
|
+
def initialize(**args)
|
1108
|
+
update!(**args)
|
1109
|
+
end
|
1110
|
+
|
1111
|
+
# Update properties of this object
|
1112
|
+
def update!(**args)
|
1113
|
+
@app_id = args[:app_id] if args.key?(:app_id)
|
1114
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
1115
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
1116
|
+
@host_url = args[:host_url] if args.key?(:host_url)
|
1117
|
+
@name = args[:name] if args.key?(:name)
|
1118
|
+
@peered_network = args[:peered_network] if args.key?(:peered_network)
|
1119
|
+
@secrets = args[:secrets] if args.key?(:secrets)
|
1120
|
+
@ssl_ca = args[:ssl_ca] if args.key?(:ssl_ca)
|
1121
|
+
@webhook_key = args[:webhook_key] if args.key?(:webhook_key)
|
1122
|
+
end
|
1123
|
+
end
|
1124
|
+
|
1125
|
+
# GitHubEnterpriseSecrets represents the names of all necessary secrets in
|
1126
|
+
# Secret Manager for a GitHub Enterprise server. Format is: projects//secrets/.
|
1127
|
+
class GitHubEnterpriseSecrets
|
1128
|
+
include Google::Apis::Core::Hashable
|
1129
|
+
|
1130
|
+
# The resource name for the OAuth client ID secret in Secret Manager.
|
1131
|
+
# Corresponds to the JSON property `oauthClientIdName`
|
1132
|
+
# @return [String]
|
1133
|
+
attr_accessor :oauth_client_id_name
|
1134
|
+
|
1135
|
+
# The resource name for the OAuth client ID secret version in Secret Manager.
|
1136
|
+
# Corresponds to the JSON property `oauthClientIdVersionName`
|
1137
|
+
# @return [String]
|
1138
|
+
attr_accessor :oauth_client_id_version_name
|
1139
|
+
|
1140
|
+
# The resource name for the OAuth secret in Secret Manager.
|
1141
|
+
# Corresponds to the JSON property `oauthSecretName`
|
1142
|
+
# @return [String]
|
1143
|
+
attr_accessor :oauth_secret_name
|
1144
|
+
|
1145
|
+
# The resource name for the OAuth secret secret version in Secret Manager.
|
1146
|
+
# Corresponds to the JSON property `oauthSecretVersionName`
|
1147
|
+
# @return [String]
|
1148
|
+
attr_accessor :oauth_secret_version_name
|
1149
|
+
|
1150
|
+
# The resource name for the private key secret.
|
1151
|
+
# Corresponds to the JSON property `privateKeyName`
|
1152
|
+
# @return [String]
|
1153
|
+
attr_accessor :private_key_name
|
1154
|
+
|
1155
|
+
# The resource name for the private key secret version.
|
1156
|
+
# Corresponds to the JSON property `privateKeyVersionName`
|
1157
|
+
# @return [String]
|
1158
|
+
attr_accessor :private_key_version_name
|
1159
|
+
|
1160
|
+
# The resource name for the webhook secret in Secret Manager.
|
1161
|
+
# Corresponds to the JSON property `webhookSecretName`
|
1162
|
+
# @return [String]
|
1163
|
+
attr_accessor :webhook_secret_name
|
1164
|
+
|
1165
|
+
# The resource name for the webhook secret secret version in Secret Manager.
|
1166
|
+
# Corresponds to the JSON property `webhookSecretVersionName`
|
1167
|
+
# @return [String]
|
1168
|
+
attr_accessor :webhook_secret_version_name
|
1169
|
+
|
1170
|
+
def initialize(**args)
|
1171
|
+
update!(**args)
|
1172
|
+
end
|
1173
|
+
|
1174
|
+
# Update properties of this object
|
1175
|
+
def update!(**args)
|
1176
|
+
@oauth_client_id_name = args[:oauth_client_id_name] if args.key?(:oauth_client_id_name)
|
1177
|
+
@oauth_client_id_version_name = args[:oauth_client_id_version_name] if args.key?(:oauth_client_id_version_name)
|
1178
|
+
@oauth_secret_name = args[:oauth_secret_name] if args.key?(:oauth_secret_name)
|
1179
|
+
@oauth_secret_version_name = args[:oauth_secret_version_name] if args.key?(:oauth_secret_version_name)
|
1180
|
+
@private_key_name = args[:private_key_name] if args.key?(:private_key_name)
|
1181
|
+
@private_key_version_name = args[:private_key_version_name] if args.key?(:private_key_version_name)
|
1182
|
+
@webhook_secret_name = args[:webhook_secret_name] if args.key?(:webhook_secret_name)
|
1183
|
+
@webhook_secret_version_name = args[:webhook_secret_version_name] if args.key?(:webhook_secret_version_name)
|
1184
|
+
end
|
1185
|
+
end
|
1186
|
+
|
971
1187
|
# GitHubEventsConfig describes the configuration of a trigger that creates a
|
972
|
-
# build whenever a GitHub event is received.
|
1188
|
+
# build whenever a GitHub event is received.
|
973
1189
|
class GitHubEventsConfig
|
974
1190
|
include Google::Apis::Core::Hashable
|
975
1191
|
|
1192
|
+
# Optional. The resource name of the github enterprise config that should be
|
1193
|
+
# applied to this installation. For example: "projects/`$project_id`/
|
1194
|
+
# githubEnterpriseConfig/`$config_id`"
|
1195
|
+
# Corresponds to the JSON property `enterpriseConfigResourceName`
|
1196
|
+
# @return [String]
|
1197
|
+
attr_accessor :enterprise_config_resource_name
|
1198
|
+
|
976
1199
|
# The installationID that emits the GitHub event.
|
977
1200
|
# Corresponds to the JSON property `installationId`
|
978
1201
|
# @return [Fixnum]
|
@@ -1006,6 +1229,7 @@ module Google
|
|
1006
1229
|
|
1007
1230
|
# Update properties of this object
|
1008
1231
|
def update!(**args)
|
1232
|
+
@enterprise_config_resource_name = args[:enterprise_config_resource_name] if args.key?(:enterprise_config_resource_name)
|
1009
1233
|
@installation_id = args[:installation_id] if args.key?(:installation_id)
|
1010
1234
|
@name = args[:name] if args.key?(:name)
|
1011
1235
|
@owner = args[:owner] if args.key?(:owner)
|
@@ -1278,6 +1502,25 @@ module Google
|
|
1278
1502
|
end
|
1279
1503
|
end
|
1280
1504
|
|
1505
|
+
# RPC response object returned by ListGithubEnterpriseConfigs RPC method.
|
1506
|
+
class ListGithubEnterpriseConfigsResponse
|
1507
|
+
include Google::Apis::Core::Hashable
|
1508
|
+
|
1509
|
+
# A list of GitHubEnterpriseConfigs
|
1510
|
+
# Corresponds to the JSON property `configs`
|
1511
|
+
# @return [Array<Google::Apis::CloudbuildV1::GitHubEnterpriseConfig>]
|
1512
|
+
attr_accessor :configs
|
1513
|
+
|
1514
|
+
def initialize(**args)
|
1515
|
+
update!(**args)
|
1516
|
+
end
|
1517
|
+
|
1518
|
+
# Update properties of this object
|
1519
|
+
def update!(**args)
|
1520
|
+
@configs = args[:configs] if args.key?(:configs)
|
1521
|
+
end
|
1522
|
+
end
|
1523
|
+
|
1281
1524
|
# Response containing existing `WorkerPools`.
|
1282
1525
|
class ListWorkerPoolsResponse
|
1283
1526
|
include Google::Apis::Core::Hashable
|
@@ -1696,6 +1939,38 @@ module Google
|
|
1696
1939
|
end
|
1697
1940
|
end
|
1698
1941
|
|
1942
|
+
# Metadata for `ProcessAppManifestCallback` operation.
|
1943
|
+
class ProcessAppManifestCallbackOperationMetadata
|
1944
|
+
include Google::Apis::Core::Hashable
|
1945
|
+
|
1946
|
+
# Time the operation was completed.
|
1947
|
+
# Corresponds to the JSON property `completeTime`
|
1948
|
+
# @return [String]
|
1949
|
+
attr_accessor :complete_time
|
1950
|
+
|
1951
|
+
# Time the operation was created.
|
1952
|
+
# Corresponds to the JSON property `createTime`
|
1953
|
+
# @return [String]
|
1954
|
+
attr_accessor :create_time
|
1955
|
+
|
1956
|
+
# The resource name of the GitHubEnterprise to be created. Format: `projects/`
|
1957
|
+
# project`/locations/`location`/githubEnterpriseConfigs/`id``.
|
1958
|
+
# Corresponds to the JSON property `githubEnterpriseConfig`
|
1959
|
+
# @return [String]
|
1960
|
+
attr_accessor :github_enterprise_config
|
1961
|
+
|
1962
|
+
def initialize(**args)
|
1963
|
+
update!(**args)
|
1964
|
+
end
|
1965
|
+
|
1966
|
+
# Update properties of this object
|
1967
|
+
def update!(**args)
|
1968
|
+
@complete_time = args[:complete_time] if args.key?(:complete_time)
|
1969
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
1970
|
+
@github_enterprise_config = args[:github_enterprise_config] if args.key?(:github_enterprise_config)
|
1971
|
+
end
|
1972
|
+
end
|
1973
|
+
|
1699
1974
|
# PubsubConfig describes the configuration of a trigger that creates a build
|
1700
1975
|
# whenever a Pub/Sub message is published.
|
1701
1976
|
class PubsubConfig
|
@@ -2381,6 +2656,38 @@ module Google
|
|
2381
2656
|
end
|
2382
2657
|
end
|
2383
2658
|
|
2659
|
+
# Metadata for `UpdateGitHubEnterpriseConfig` operation.
|
2660
|
+
class UpdateGitHubEnterpriseConfigOperationMetadata
|
2661
|
+
include Google::Apis::Core::Hashable
|
2662
|
+
|
2663
|
+
# Time the operation was completed.
|
2664
|
+
# Corresponds to the JSON property `completeTime`
|
2665
|
+
# @return [String]
|
2666
|
+
attr_accessor :complete_time
|
2667
|
+
|
2668
|
+
# Time the operation was created.
|
2669
|
+
# Corresponds to the JSON property `createTime`
|
2670
|
+
# @return [String]
|
2671
|
+
attr_accessor :create_time
|
2672
|
+
|
2673
|
+
# The resource name of the GitHubEnterprise to be updated. Format: `projects/`
|
2674
|
+
# project`/locations/`location`/githubEnterpriseConfigs/`id``.
|
2675
|
+
# Corresponds to the JSON property `githubEnterpriseConfig`
|
2676
|
+
# @return [String]
|
2677
|
+
attr_accessor :github_enterprise_config
|
2678
|
+
|
2679
|
+
def initialize(**args)
|
2680
|
+
update!(**args)
|
2681
|
+
end
|
2682
|
+
|
2683
|
+
# Update properties of this object
|
2684
|
+
def update!(**args)
|
2685
|
+
@complete_time = args[:complete_time] if args.key?(:complete_time)
|
2686
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
2687
|
+
@github_enterprise_config = args[:github_enterprise_config] if args.key?(:github_enterprise_config)
|
2688
|
+
end
|
2689
|
+
end
|
2690
|
+
|
2384
2691
|
# Metadata for the `UpdateWorkerPool` operation.
|
2385
2692
|
class UpdateWorkerPoolOperationMetadata
|
2386
2693
|
include Google::Apis::Core::Hashable
|
@@ -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.13.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 = "20210723"
|
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
|
|
@@ -118,6 +130,18 @@ module Google
|
|
118
130
|
include Google::Apis::Core::JsonObjectSupport
|
119
131
|
end
|
120
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
|
+
|
121
145
|
class GitHubEventsConfig
|
122
146
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
147
|
|
@@ -172,6 +196,12 @@ module Google
|
|
172
196
|
include Google::Apis::Core::JsonObjectSupport
|
173
197
|
end
|
174
198
|
|
199
|
+
class ListGithubEnterpriseConfigsResponse
|
200
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
201
|
+
|
202
|
+
include Google::Apis::Core::JsonObjectSupport
|
203
|
+
end
|
204
|
+
|
175
205
|
class ListWorkerPoolsResponse
|
176
206
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
177
207
|
|
@@ -244,6 +274,12 @@ module Google
|
|
244
274
|
include Google::Apis::Core::JsonObjectSupport
|
245
275
|
end
|
246
276
|
|
277
|
+
class ProcessAppManifestCallbackOperationMetadata
|
278
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
279
|
+
|
280
|
+
include Google::Apis::Core::JsonObjectSupport
|
281
|
+
end
|
282
|
+
|
247
283
|
class PubsubConfig
|
248
284
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
249
285
|
|
@@ -358,6 +394,12 @@ module Google
|
|
358
394
|
include Google::Apis::Core::JsonObjectSupport
|
359
395
|
end
|
360
396
|
|
397
|
+
class UpdateGitHubEnterpriseConfigOperationMetadata
|
398
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
399
|
+
|
400
|
+
include Google::Apis::Core::JsonObjectSupport
|
401
|
+
end
|
402
|
+
|
361
403
|
class UpdateWorkerPoolOperationMetadata
|
362
404
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
363
405
|
|
@@ -538,6 +580,7 @@ module Google
|
|
538
580
|
property :pubsub_config, as: 'pubsubConfig', class: Google::Apis::CloudbuildV1::PubsubConfig, decorator: Google::Apis::CloudbuildV1::PubsubConfig::Representation
|
539
581
|
|
540
582
|
property :resource_name, as: 'resourceName'
|
583
|
+
property :service_account, as: 'serviceAccount'
|
541
584
|
property :source_to_build, as: 'sourceToBuild', class: Google::Apis::CloudbuildV1::GitRepoSource, decorator: Google::Apis::CloudbuildV1::GitRepoSource::Representation
|
542
585
|
|
543
586
|
hash :substitutions, as: 'substitutions'
|
@@ -574,6 +617,15 @@ module Google
|
|
574
617
|
end
|
575
618
|
end
|
576
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
|
+
|
577
629
|
class CreateWorkerPoolOperationMetadata
|
578
630
|
# @private
|
579
631
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -583,6 +635,15 @@ module Google
|
|
583
635
|
end
|
584
636
|
end
|
585
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
|
+
|
586
647
|
class DeleteWorkerPoolOperationMetadata
|
587
648
|
# @private
|
588
649
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -614,9 +675,40 @@ module Google
|
|
614
675
|
end
|
615
676
|
end
|
616
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
|
+
|
617
708
|
class GitHubEventsConfig
|
618
709
|
# @private
|
619
710
|
class Representation < Google::Apis::Core::JsonRepresentation
|
711
|
+
property :enterprise_config_resource_name, as: 'enterpriseConfigResourceName'
|
620
712
|
property :installation_id, :numeric_string => true, as: 'installationId'
|
621
713
|
property :name, as: 'name'
|
622
714
|
property :owner, as: 'owner'
|
@@ -699,6 +791,14 @@ module Google
|
|
699
791
|
end
|
700
792
|
end
|
701
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
|
+
|
702
802
|
class ListWorkerPoolsResponse
|
703
803
|
# @private
|
704
804
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -817,6 +917,15 @@ module Google
|
|
817
917
|
end
|
818
918
|
end
|
819
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
|
+
|
820
929
|
class PubsubConfig
|
821
930
|
# @private
|
822
931
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1006,6 +1115,15 @@ module Google
|
|
1006
1115
|
end
|
1007
1116
|
end
|
1008
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
|
+
|
1009
1127
|
class UpdateWorkerPoolOperationMetadata
|
1010
1128
|
# @private
|
1011
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`.
|
@@ -1356,6 +1730,36 @@ 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] 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
|
1359
1763
|
|
1360
1764
|
protected
|
1361
1765
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-cloudbuild_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-cloudbuild_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudbuild_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudbuild_v1/v0.13.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-cloudbuild_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|