@maxim_mazurok/gapi.client.cloudbuild-v1 0.0.20220908 → 0.0.20220921

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.
Files changed (3) hide show
  1. package/index.d.ts +522 -2
  2. package/package.json +1 -1
  3. package/tests.ts +270 -1
package/index.d.ts CHANGED
@@ -4,13 +4,12 @@
4
4
  // Nick Amoscato <https://github.com/namoscato>
5
5
  // Declan Vong <https://github.com/declanvong>
6
6
  // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
7
- // TypeScript Version: 2.8
8
7
 
9
8
  // IMPORTANT
10
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
11
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
12
11
  // Generated from: https://cloudbuild.googleapis.com/$discovery/rest?version=v1
13
- // Revision: 20220908
12
+ // Revision: 20220921
14
13
 
15
14
  /// <reference types="gapi.client" />
16
15
 
@@ -93,6 +92,22 @@ declare namespace gapi.client {
93
92
  /** Time the operation was created. */
94
93
  createTime?: string;
95
94
  }
95
+ interface BatchCreateGitLabConnectedRepositoriesRequest {
96
+ /** Required. Requests to connect GitLab repositories. */
97
+ requests?: CreateGitLabConnectedRepositoryRequest[];
98
+ }
99
+ interface BatchCreateGitLabConnectedRepositoriesResponse {
100
+ /** The GitLab connected repository requests' responses. */
101
+ gitlabConnectedRepositories?: GitLabConnectedRepository[];
102
+ }
103
+ interface BatchCreateGitLabConnectedRepositoriesResponseMetadata {
104
+ /** Time the operation was completed. */
105
+ completeTime?: string;
106
+ /** The name of the `GitLabConfig` that added connected repositories. Format: `projects/{project}/locations/{location}/gitLabConfigs/{config}` */
107
+ config?: string;
108
+ /** Time the operation was created. */
109
+ createTime?: string;
110
+ }
96
111
  interface BitbucketServerConfig {
97
112
  /**
98
113
  * Required. Immutable. API Key that will be attached to webhook. Once this field has been set, it cannot be changed. If you need to change it, please create another
@@ -415,6 +430,8 @@ declare namespace gapi.client {
415
430
  gitFileSource?: GitFileSource;
416
431
  /** GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. Mutually exclusive with `trigger_template`. */
417
432
  github?: GitHubEventsConfig;
433
+ /** GitLabEnterpriseEventsConfig describes the configuration of a trigger that creates a build whenever a GitLab Enterprise event is received. */
434
+ gitlabEnterpriseEventsConfig?: GitLabEventsConfig;
418
435
  /** Output only. Unique identifier of the trigger. */
419
436
  id?: string;
420
437
  /**
@@ -506,6 +523,20 @@ declare namespace gapi.client {
506
523
  /** The resource name of the GitHubEnterprise to be created. Format: `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}`. */
507
524
  githubEnterpriseConfig?: string;
508
525
  }
526
+ interface CreateGitLabConfigOperationMetadata {
527
+ /** Time the operation was completed. */
528
+ completeTime?: string;
529
+ /** Time the operation was created. */
530
+ createTime?: string;
531
+ /** The resource name of the GitLabConfig to be created. Format: `projects/{project}/locations/{location}/gitlabConfigs/{id}`. */
532
+ gitlabConfig?: string;
533
+ }
534
+ interface CreateGitLabConnectedRepositoryRequest {
535
+ /** Required. The GitLab repository to connect. */
536
+ gitlabConnectedRepository?: GitLabConnectedRepository;
537
+ /** Required. The name of the `GitLabConfig` that adds connected repository. Format: `projects/{project}/locations/{location}/gitLabConfigs/{config}` */
538
+ parent?: string;
539
+ }
509
540
  interface CreateWorkerPoolOperationMetadata {
510
541
  /** Time the operation was completed. */
511
542
  completeTime?: string;
@@ -530,6 +561,14 @@ declare namespace gapi.client {
530
561
  /** The resource name of the GitHubEnterprise to be deleted. Format: `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}`. */
531
562
  githubEnterpriseConfig?: string;
532
563
  }
564
+ interface DeleteGitLabConfigOperationMetadata {
565
+ /** Time the operation was completed. */
566
+ completeTime?: string;
567
+ /** Time the operation was created. */
568
+ createTime?: string;
569
+ /** The resource name of the GitLabConfig to be created. Format: `projects/{project}/locations/{location}/gitlabConfigs/{id}`. */
570
+ gitlabConfig?: string;
571
+ }
533
572
  interface DeleteWorkerPoolOperationMetadata {
534
573
  /** Time the operation was completed. */
535
574
  completeTime?: string;
@@ -631,6 +670,81 @@ declare namespace gapi.client {
631
670
  /** filter to match changes in refs like branches, tags. */
632
671
  push?: PushFilter;
633
672
  }
673
+ interface GitLabConfig {
674
+ /** Connected GitLab.com or GitLabEnterprise repositories for this config. */
675
+ connectedRepositories?: GitLabRepositoryId[];
676
+ /** Output only. Time when the config was created. */
677
+ createTime?: string;
678
+ /** Optional. GitLabEnterprise config. */
679
+ enterpriseConfig?: GitLabEnterpriseConfig;
680
+ /** The resource name for the config. */
681
+ name?: string;
682
+ /** Required. Secret Manager secrets needed by the config. */
683
+ secrets?: GitLabSecrets;
684
+ /** Username of the GitLab.com or GitLab Enterprise account Cloud Build will use. */
685
+ username?: string;
686
+ /** Output only. UUID included in webhook requests. The UUID is used to look up the corresponding config. */
687
+ webhookKey?: string;
688
+ }
689
+ interface GitLabConnectedRepository {
690
+ /** The name of the `GitLabConfig` that added connected repository. Format: `projects/{project}/locations/{location}/gitLabConfigs/{config}` */
691
+ parent?: string;
692
+ /** The GitLab repositories to connect. */
693
+ repo?: GitLabRepositoryId;
694
+ /** Output only. The status of the repo connection request. */
695
+ status?: Status;
696
+ }
697
+ interface GitLabEnterpriseConfig {
698
+ /** Immutable. The URI of the GitlabEnterprise host. */
699
+ hostUri?: string;
700
+ /** The Service Directory configuration to be used when reaching out to the GitLab Enterprise instance. */
701
+ serviceDirectoryConfig?: ServiceDirectoryConfig;
702
+ /** The SSL certificate to use in requests to GitLab Enterprise instances. */
703
+ sslCa?: string;
704
+ }
705
+ interface GitLabEventsConfig {
706
+ /** Output only. The GitLabConfig specified in the gitlab_config_resource field. */
707
+ gitlabConfig?: GitLabConfig;
708
+ /** The GitLab config resource that this trigger config maps to. */
709
+ gitlabConfigResource?: string;
710
+ /** Namespace of the GitLab project. */
711
+ projectNamespace?: string;
712
+ /** Filter to match changes in pull requests. */
713
+ pullRequest?: PullRequestFilter;
714
+ /** Filter to match changes in refs like branches, tags. */
715
+ push?: PushFilter;
716
+ }
717
+ interface GitLabRepository {
718
+ /** Link to the browse repo page on the GitLab instance */
719
+ browseUri?: string;
720
+ /** Description of the repository */
721
+ description?: string;
722
+ /** Display name of the repository */
723
+ displayName?: string;
724
+ /** The resource name of the repository */
725
+ name?: string;
726
+ /** Identifier for a repository */
727
+ repositoryId?: GitLabRepositoryId;
728
+ }
729
+ interface GitLabRepositoryId {
730
+ /** Required. Identifier for the repository. example: "namespace/project-slug", namespace is usually the username or group ID */
731
+ id?: string;
732
+ /** Output only. The ID of the webhook that was created for receiving events from this repo. We only create and manage a single webhook for each repo. */
733
+ webhookId?: number;
734
+ }
735
+ interface GitLabSecrets {
736
+ /** Required. The resource name for the api access token’s secret version */
737
+ apiAccessTokenVersion?: string;
738
+ /** Required. Immutable. API Key that will be attached to webhook requests from GitLab to Cloud Build. */
739
+ apiKeyVersion?: string;
740
+ /** Required. The resource name for the read access token’s secret version */
741
+ readAccessTokenVersion?: string;
742
+ /**
743
+ * Required. Immutable. The resource name for the webhook secret’s secret version. Once this field has been set, it cannot be changed. If you need to change it, please create another
744
+ * GitLabConfig.
745
+ */
746
+ webhookSecretVersion?: string;
747
+ }
634
748
  interface GitRepoSource {
635
749
  /** The full resource name of the bitbucket server config. Format: `projects/{project}/locations/{location}/bitbucketServerConfigs/{id}`. */
636
750
  bitbucketServerConfig?: string;
@@ -720,6 +834,18 @@ declare namespace gapi.client {
720
834
  /** A list of GitHubEnterpriseConfigs */
721
835
  configs?: GitHubEnterpriseConfig[];
722
836
  }
837
+ interface ListGitLabConfigsResponse {
838
+ /** A list of GitLabConfigs */
839
+ gitlabConfigs?: GitLabConfig[];
840
+ /** A token that can be sent as `page_token` to retrieve the next page If this field is omitted, there are no subsequent pages. */
841
+ nextPageToken?: string;
842
+ }
843
+ interface ListGitLabRepositoriesResponse {
844
+ /** List of GitLab repositories */
845
+ gitlabRepositories?: GitLabRepository[];
846
+ /** A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
847
+ nextPageToken?: string;
848
+ }
723
849
  interface ListWorkerPoolsResponse {
724
850
  /** Continuation token used to page through large result sets. Provide this value in a subsequent ListWorkerPoolsRequest to return the next page of results. */
725
851
  nextPageToken?: string;
@@ -878,6 +1004,10 @@ declare namespace gapi.client {
878
1004
  /** The connected repository to remove. */
879
1005
  connectedRepository?: BitbucketServerRepositoryId;
880
1006
  }
1007
+ interface RemoveGitLabConnectedRepositoryRequest {
1008
+ /** The connected repository to remove. */
1009
+ connectedRepository?: GitLabRepositoryId;
1010
+ }
881
1011
  interface RepoSource {
882
1012
  /** Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax */
883
1013
  branchName?: string;
@@ -972,6 +1102,10 @@ declare namespace gapi.client {
972
1102
  /** Secrets in Secret Manager and associated secret environment variable. */
973
1103
  secretManager?: SecretManagerSecret[];
974
1104
  }
1105
+ interface ServiceDirectoryConfig {
1106
+ /** The Service Directory service name. Format: projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}. */
1107
+ service?: string;
1108
+ }
975
1109
  interface SlackDelivery {
976
1110
  /** The secret reference for the Slack webhook URI for sending messages to a channel. */
977
1111
  webhookUri?: NotifierSecretRef;
@@ -1064,6 +1198,14 @@ declare namespace gapi.client {
1064
1198
  /** The resource name of the GitHubEnterprise to be updated. Format: `projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}`. */
1065
1199
  githubEnterpriseConfig?: string;
1066
1200
  }
1201
+ interface UpdateGitLabConfigOperationMetadata {
1202
+ /** Time the operation was completed. */
1203
+ completeTime?: string;
1204
+ /** Time the operation was created. */
1205
+ createTime?: string;
1206
+ /** The resource name of the GitLabConfig to be created. Format: `projects/{project}/locations/{location}/gitlabConfigs/{id}`. */
1207
+ gitlabConfig?: string;
1208
+ }
1067
1209
  interface UpdateWorkerPoolOperationMetadata {
1068
1210
  /** Time the operation was completed. */
1069
1211
  completeTime?: string;
@@ -2808,6 +2950,383 @@ declare namespace gapi.client {
2808
2950
  },
2809
2951
  body: GitHubEnterpriseConfig): Request<Operation>;
2810
2952
  }
2953
+ interface ConnectedRepositoriesResource {
2954
+ /** Batch connecting GitLab repositories to Cloud Build. This API is experimental. */
2955
+ batchCreate(request: {
2956
+ /** V1 error format. */
2957
+ "$.xgafv"?: string;
2958
+ /** OAuth access token. */
2959
+ access_token?: string;
2960
+ /** Data format for response. */
2961
+ alt?: string;
2962
+ /** JSONP */
2963
+ callback?: string;
2964
+ /** Selector specifying which fields to include in a partial response. */
2965
+ fields?: string;
2966
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2967
+ key?: string;
2968
+ /** OAuth 2.0 token for the current user. */
2969
+ oauth_token?: string;
2970
+ /** The name of the `GitLabConfig` that adds connected repositories. Format: `projects/{project}/locations/{location}/gitLabConfigs/{config}` */
2971
+ parent: string;
2972
+ /** Returns response with indentations and line breaks. */
2973
+ prettyPrint?: boolean;
2974
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2975
+ quotaUser?: string;
2976
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2977
+ upload_protocol?: string;
2978
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2979
+ uploadType?: string;
2980
+ /** Request body */
2981
+ resource: BatchCreateGitLabConnectedRepositoriesRequest;
2982
+ }): Request<Operation>;
2983
+ batchCreate(request: {
2984
+ /** V1 error format. */
2985
+ "$.xgafv"?: string;
2986
+ /** OAuth access token. */
2987
+ access_token?: string;
2988
+ /** Data format for response. */
2989
+ alt?: string;
2990
+ /** JSONP */
2991
+ callback?: string;
2992
+ /** Selector specifying which fields to include in a partial response. */
2993
+ fields?: string;
2994
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2995
+ key?: string;
2996
+ /** OAuth 2.0 token for the current user. */
2997
+ oauth_token?: string;
2998
+ /** The name of the `GitLabConfig` that adds connected repositories. Format: `projects/{project}/locations/{location}/gitLabConfigs/{config}` */
2999
+ parent: string;
3000
+ /** Returns response with indentations and line breaks. */
3001
+ prettyPrint?: boolean;
3002
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3003
+ quotaUser?: string;
3004
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3005
+ upload_protocol?: string;
3006
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3007
+ uploadType?: string;
3008
+ },
3009
+ body: BatchCreateGitLabConnectedRepositoriesRequest): Request<Operation>;
3010
+ }
3011
+ interface ReposResource {
3012
+ /** List all repositories for a given `GitLabConfig`. This API is experimental */
3013
+ list(request?: {
3014
+ /** V1 error format. */
3015
+ "$.xgafv"?: string;
3016
+ /** OAuth access token. */
3017
+ access_token?: string;
3018
+ /** Data format for response. */
3019
+ alt?: string;
3020
+ /** JSONP */
3021
+ callback?: string;
3022
+ /** Selector specifying which fields to include in a partial response. */
3023
+ fields?: string;
3024
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3025
+ key?: string;
3026
+ /** OAuth 2.0 token for the current user. */
3027
+ oauth_token?: string;
3028
+ /** The maximum number of repositories to return. The service may return fewer than this value. */
3029
+ pageSize?: number;
3030
+ /**
3031
+ * A page token, received from a previous ListGitLabRepositoriesRequest` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to
3032
+ * `ListGitLabRepositoriesRequest` must match the call that provided the page token.
3033
+ */
3034
+ pageToken?: string;
3035
+ /** Required. Name of the parent resource. */
3036
+ parent: string;
3037
+ /** Returns response with indentations and line breaks. */
3038
+ prettyPrint?: boolean;
3039
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3040
+ quotaUser?: string;
3041
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3042
+ upload_protocol?: string;
3043
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3044
+ uploadType?: string;
3045
+ }): Request<ListGitLabRepositoriesResponse>;
3046
+ }
3047
+ interface GitLabConfigsResource {
3048
+ /** Creates a new `GitLabConfig`. This API is experimental */
3049
+ create(request: {
3050
+ /** V1 error format. */
3051
+ "$.xgafv"?: string;
3052
+ /** OAuth access token. */
3053
+ access_token?: string;
3054
+ /** Data format for response. */
3055
+ alt?: string;
3056
+ /** JSONP */
3057
+ callback?: string;
3058
+ /** Selector specifying which fields to include in a partial response. */
3059
+ fields?: string;
3060
+ /**
3061
+ * Optional. The ID to use for the GitLabConfig, which will become the final component of the GitLabConfig’s resource name. gitlab_config_id must meet the following requirements: +
3062
+ * They must contain only alphanumeric characters and dashes. + They can be 1-64 characters long. + They must begin and end with an alphanumeric character
3063
+ */
3064
+ gitlabConfigId?: string;
3065
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3066
+ key?: string;
3067
+ /** OAuth 2.0 token for the current user. */
3068
+ oauth_token?: string;
3069
+ /** Required. Name of the parent resource. */
3070
+ parent: string;
3071
+ /** Returns response with indentations and line breaks. */
3072
+ prettyPrint?: boolean;
3073
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3074
+ quotaUser?: string;
3075
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3076
+ upload_protocol?: string;
3077
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3078
+ uploadType?: string;
3079
+ /** Request body */
3080
+ resource: GitLabConfig;
3081
+ }): Request<Operation>;
3082
+ create(request: {
3083
+ /** V1 error format. */
3084
+ "$.xgafv"?: string;
3085
+ /** OAuth access token. */
3086
+ access_token?: string;
3087
+ /** Data format for response. */
3088
+ alt?: string;
3089
+ /** JSONP */
3090
+ callback?: string;
3091
+ /** Selector specifying which fields to include in a partial response. */
3092
+ fields?: string;
3093
+ /**
3094
+ * Optional. The ID to use for the GitLabConfig, which will become the final component of the GitLabConfig’s resource name. gitlab_config_id must meet the following requirements: +
3095
+ * They must contain only alphanumeric characters and dashes. + They can be 1-64 characters long. + They must begin and end with an alphanumeric character
3096
+ */
3097
+ gitlabConfigId?: string;
3098
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3099
+ key?: string;
3100
+ /** OAuth 2.0 token for the current user. */
3101
+ oauth_token?: string;
3102
+ /** Required. Name of the parent resource. */
3103
+ parent: string;
3104
+ /** Returns response with indentations and line breaks. */
3105
+ prettyPrint?: boolean;
3106
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3107
+ quotaUser?: string;
3108
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3109
+ upload_protocol?: string;
3110
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3111
+ uploadType?: string;
3112
+ },
3113
+ body: GitLabConfig): Request<Operation>;
3114
+ /** Delete a `GitLabConfig`. This API is experimental */
3115
+ delete(request?: {
3116
+ /** V1 error format. */
3117
+ "$.xgafv"?: string;
3118
+ /** OAuth access token. */
3119
+ access_token?: string;
3120
+ /** Data format for response. */
3121
+ alt?: string;
3122
+ /** JSONP */
3123
+ callback?: string;
3124
+ /** Selector specifying which fields to include in a partial response. */
3125
+ fields?: string;
3126
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3127
+ key?: string;
3128
+ /** Required. The config resource name. */
3129
+ name: string;
3130
+ /** OAuth 2.0 token for the current user. */
3131
+ oauth_token?: string;
3132
+ /** Returns response with indentations and line breaks. */
3133
+ prettyPrint?: boolean;
3134
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3135
+ quotaUser?: string;
3136
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3137
+ upload_protocol?: string;
3138
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3139
+ uploadType?: string;
3140
+ }): Request<Operation>;
3141
+ /** Retrieves a `GitLabConfig`. This API is experimental */
3142
+ get(request?: {
3143
+ /** V1 error format. */
3144
+ "$.xgafv"?: string;
3145
+ /** OAuth access token. */
3146
+ access_token?: string;
3147
+ /** Data format for response. */
3148
+ alt?: string;
3149
+ /** JSONP */
3150
+ callback?: string;
3151
+ /** Selector specifying which fields to include in a partial response. */
3152
+ fields?: string;
3153
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3154
+ key?: string;
3155
+ /** Required. The config resource name. */
3156
+ name: string;
3157
+ /** OAuth 2.0 token for the current user. */
3158
+ oauth_token?: string;
3159
+ /** Returns response with indentations and line breaks. */
3160
+ prettyPrint?: boolean;
3161
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3162
+ quotaUser?: string;
3163
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3164
+ upload_protocol?: string;
3165
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3166
+ uploadType?: string;
3167
+ }): Request<GitLabConfig>;
3168
+ /** List all `GitLabConfigs` for a given project. This API is experimental */
3169
+ list(request?: {
3170
+ /** V1 error format. */
3171
+ "$.xgafv"?: string;
3172
+ /** OAuth access token. */
3173
+ access_token?: string;
3174
+ /** Data format for response. */
3175
+ alt?: string;
3176
+ /** JSONP */
3177
+ callback?: string;
3178
+ /** Selector specifying which fields to include in a partial response. */
3179
+ fields?: string;
3180
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3181
+ key?: string;
3182
+ /** OAuth 2.0 token for the current user. */
3183
+ oauth_token?: string;
3184
+ /**
3185
+ * The maximum number of configs to return. The service may return fewer than this value. If unspecified, at most 50 configs will be returned. The maximum value is 1000;, values
3186
+ * above 1000 will be coerced to 1000.
3187
+ */
3188
+ pageSize?: number;
3189
+ /**
3190
+ * A page token, received from a previous ‘ListGitlabConfigsRequest’ call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to
3191
+ * ‘ListGitlabConfigsRequest’ must match the call that provided the page token.
3192
+ */
3193
+ pageToken?: string;
3194
+ /** Required. Name of the parent resource */
3195
+ parent: string;
3196
+ /** Returns response with indentations and line breaks. */
3197
+ prettyPrint?: boolean;
3198
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3199
+ quotaUser?: string;
3200
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3201
+ upload_protocol?: string;
3202
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3203
+ uploadType?: string;
3204
+ }): Request<ListGitLabConfigsResponse>;
3205
+ /** Updates an existing `GitLabConfig`. This API is experimental */
3206
+ patch(request: {
3207
+ /** V1 error format. */
3208
+ "$.xgafv"?: string;
3209
+ /** OAuth access token. */
3210
+ access_token?: string;
3211
+ /** Data format for response. */
3212
+ alt?: string;
3213
+ /** JSONP */
3214
+ callback?: string;
3215
+ /** Selector specifying which fields to include in a partial response. */
3216
+ fields?: string;
3217
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3218
+ key?: string;
3219
+ /** The resource name for the config. */
3220
+ name: string;
3221
+ /** OAuth 2.0 token for the current user. */
3222
+ oauth_token?: string;
3223
+ /** Returns response with indentations and line breaks. */
3224
+ prettyPrint?: boolean;
3225
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3226
+ quotaUser?: string;
3227
+ /**
3228
+ * Update mask for the resource. If this is set, the server will only update the fields specified in the field mask. Otherwise, a full update of the mutable resource fields will be
3229
+ * performed.
3230
+ */
3231
+ updateMask?: string;
3232
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3233
+ upload_protocol?: string;
3234
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3235
+ uploadType?: string;
3236
+ /** Request body */
3237
+ resource: GitLabConfig;
3238
+ }): Request<Operation>;
3239
+ patch(request: {
3240
+ /** V1 error format. */
3241
+ "$.xgafv"?: string;
3242
+ /** OAuth access token. */
3243
+ access_token?: string;
3244
+ /** Data format for response. */
3245
+ alt?: string;
3246
+ /** JSONP */
3247
+ callback?: string;
3248
+ /** Selector specifying which fields to include in a partial response. */
3249
+ fields?: string;
3250
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3251
+ key?: string;
3252
+ /** The resource name for the config. */
3253
+ name: string;
3254
+ /** OAuth 2.0 token for the current user. */
3255
+ oauth_token?: string;
3256
+ /** Returns response with indentations and line breaks. */
3257
+ prettyPrint?: boolean;
3258
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3259
+ quotaUser?: string;
3260
+ /**
3261
+ * Update mask for the resource. If this is set, the server will only update the fields specified in the field mask. Otherwise, a full update of the mutable resource fields will be
3262
+ * performed.
3263
+ */
3264
+ updateMask?: string;
3265
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3266
+ upload_protocol?: string;
3267
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3268
+ uploadType?: string;
3269
+ },
3270
+ body: GitLabConfig): Request<Operation>;
3271
+ /** Remove a GitLab repository from a given GitLabConfig's connected repositories. This API is experimental. */
3272
+ removeGitLabConnectedRepository(request: {
3273
+ /** V1 error format. */
3274
+ "$.xgafv"?: string;
3275
+ /** OAuth access token. */
3276
+ access_token?: string;
3277
+ /** Data format for response. */
3278
+ alt?: string;
3279
+ /** JSONP */
3280
+ callback?: string;
3281
+ /** Required. The name of the `GitLabConfig` to remove a connected repository. Format: `projects/{project}/locations/{location}/gitLabConfigs/{config}` */
3282
+ config: string;
3283
+ /** Selector specifying which fields to include in a partial response. */
3284
+ fields?: string;
3285
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3286
+ key?: string;
3287
+ /** OAuth 2.0 token for the current user. */
3288
+ oauth_token?: string;
3289
+ /** Returns response with indentations and line breaks. */
3290
+ prettyPrint?: boolean;
3291
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3292
+ quotaUser?: string;
3293
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3294
+ upload_protocol?: string;
3295
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3296
+ uploadType?: string;
3297
+ /** Request body */
3298
+ resource: RemoveGitLabConnectedRepositoryRequest;
3299
+ }): Request<{}>;
3300
+ removeGitLabConnectedRepository(request: {
3301
+ /** V1 error format. */
3302
+ "$.xgafv"?: string;
3303
+ /** OAuth access token. */
3304
+ access_token?: string;
3305
+ /** Data format for response. */
3306
+ alt?: string;
3307
+ /** JSONP */
3308
+ callback?: string;
3309
+ /** Required. The name of the `GitLabConfig` to remove a connected repository. Format: `projects/{project}/locations/{location}/gitLabConfigs/{config}` */
3310
+ config: string;
3311
+ /** Selector specifying which fields to include in a partial response. */
3312
+ fields?: string;
3313
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3314
+ key?: string;
3315
+ /** OAuth 2.0 token for the current user. */
3316
+ oauth_token?: string;
3317
+ /** Returns response with indentations and line breaks. */
3318
+ prettyPrint?: boolean;
3319
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3320
+ quotaUser?: string;
3321
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3322
+ upload_protocol?: string;
3323
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3324
+ uploadType?: string;
3325
+ },
3326
+ body: RemoveGitLabConnectedRepositoryRequest): Request<{}>;
3327
+ connectedRepositories: ConnectedRepositoriesResource;
3328
+ repos: ReposResource;
3329
+ }
2811
3330
  interface OperationsResource {
2812
3331
  /**
2813
3332
  * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support
@@ -3483,6 +4002,7 @@ declare namespace gapi.client {
3483
4002
  bitbucketServerConfigs: BitbucketServerConfigsResource;
3484
4003
  builds: BuildsResource;
3485
4004
  githubEnterpriseConfigs: GithubEnterpriseConfigsResource;
4005
+ gitLabConfigs: GitLabConfigsResource;
3486
4006
  operations: OperationsResource;
3487
4007
  triggers: TriggersResource;
3488
4008
  workerPools: WorkerPoolsResource;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.cloudbuild-v1",
3
- "version": "0.0.20220908",
3
+ "version": "0.0.20220921",
4
4
  "description": "TypeScript typings for Cloud Build API v1",
5
5
  "license": "MIT",
6
6
  "author": {
package/tests.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
4
4
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
5
5
 
6
- // Revision: 20220908
6
+ // Revision: 20220921
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -915,6 +915,119 @@ gapi.load('client', async () => {
915
915
  sslCa: "Test string",
916
916
  webhookKey: "Test string",
917
917
  });
918
+ /** Creates a new `GitLabConfig`. This API is experimental */
919
+ await gapi.client.cloudbuild.projects.locations.gitLabConfigs.create({
920
+ gitlabConfigId: "Test string",
921
+ parent: "Test string",
922
+ }, {
923
+ connectedRepositories: [
924
+ {
925
+ id: "Test string",
926
+ webhookId: 42,
927
+ }
928
+ ],
929
+ createTime: "Test string",
930
+ enterpriseConfig: {
931
+ hostUri: "Test string",
932
+ serviceDirectoryConfig: {
933
+ service: "Test string",
934
+ },
935
+ sslCa: "Test string",
936
+ },
937
+ name: "Test string",
938
+ secrets: {
939
+ apiAccessTokenVersion: "Test string",
940
+ apiKeyVersion: "Test string",
941
+ readAccessTokenVersion: "Test string",
942
+ webhookSecretVersion: "Test string",
943
+ },
944
+ username: "Test string",
945
+ webhookKey: "Test string",
946
+ });
947
+ /** Delete a `GitLabConfig`. This API is experimental */
948
+ await gapi.client.cloudbuild.projects.locations.gitLabConfigs.delete({
949
+ name: "Test string",
950
+ });
951
+ /** Retrieves a `GitLabConfig`. This API is experimental */
952
+ await gapi.client.cloudbuild.projects.locations.gitLabConfigs.get({
953
+ name: "Test string",
954
+ });
955
+ /** List all `GitLabConfigs` for a given project. This API is experimental */
956
+ await gapi.client.cloudbuild.projects.locations.gitLabConfigs.list({
957
+ pageSize: 42,
958
+ pageToken: "Test string",
959
+ parent: "Test string",
960
+ });
961
+ /** Updates an existing `GitLabConfig`. This API is experimental */
962
+ await gapi.client.cloudbuild.projects.locations.gitLabConfigs.patch({
963
+ name: "Test string",
964
+ updateMask: "Test string",
965
+ }, {
966
+ connectedRepositories: [
967
+ {
968
+ id: "Test string",
969
+ webhookId: 42,
970
+ }
971
+ ],
972
+ createTime: "Test string",
973
+ enterpriseConfig: {
974
+ hostUri: "Test string",
975
+ serviceDirectoryConfig: {
976
+ service: "Test string",
977
+ },
978
+ sslCa: "Test string",
979
+ },
980
+ name: "Test string",
981
+ secrets: {
982
+ apiAccessTokenVersion: "Test string",
983
+ apiKeyVersion: "Test string",
984
+ readAccessTokenVersion: "Test string",
985
+ webhookSecretVersion: "Test string",
986
+ },
987
+ username: "Test string",
988
+ webhookKey: "Test string",
989
+ });
990
+ /** Remove a GitLab repository from a given GitLabConfig's connected repositories. This API is experimental. */
991
+ await gapi.client.cloudbuild.projects.locations.gitLabConfigs.removeGitLabConnectedRepository({
992
+ config: "Test string",
993
+ }, {
994
+ connectedRepository: {
995
+ id: "Test string",
996
+ webhookId: 42,
997
+ },
998
+ });
999
+ /** Batch connecting GitLab repositories to Cloud Build. This API is experimental. */
1000
+ await gapi.client.cloudbuild.projects.locations.gitLabConfigs.connectedRepositories.batchCreate({
1001
+ parent: "Test string",
1002
+ }, {
1003
+ requests: [
1004
+ {
1005
+ gitlabConnectedRepository: {
1006
+ parent: "Test string",
1007
+ repo: {
1008
+ id: "Test string",
1009
+ webhookId: 42,
1010
+ },
1011
+ status: {
1012
+ code: 42,
1013
+ details: [
1014
+ {
1015
+ A: 42
1016
+ }
1017
+ ],
1018
+ message: "Test string",
1019
+ },
1020
+ },
1021
+ parent: "Test string",
1022
+ }
1023
+ ],
1024
+ });
1025
+ /** List all repositories for a given `GitLabConfig`. This API is experimental */
1026
+ await gapi.client.cloudbuild.projects.locations.gitLabConfigs.repos.list({
1027
+ pageSize: 42,
1028
+ pageToken: "Test string",
1029
+ parent: "Test string",
1030
+ });
918
1031
  /**
919
1032
  * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this
920
1033
  * method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation
@@ -1250,6 +1363,45 @@ gapi.load('client', async () => {
1250
1363
  tag: "Test string",
1251
1364
  },
1252
1365
  },
1366
+ gitlabEnterpriseEventsConfig: {
1367
+ gitlabConfig: {
1368
+ connectedRepositories: [
1369
+ {
1370
+ id: "Test string",
1371
+ webhookId: 42,
1372
+ }
1373
+ ],
1374
+ createTime: "Test string",
1375
+ enterpriseConfig: {
1376
+ hostUri: "Test string",
1377
+ serviceDirectoryConfig: {
1378
+ service: "Test string",
1379
+ },
1380
+ sslCa: "Test string",
1381
+ },
1382
+ name: "Test string",
1383
+ secrets: {
1384
+ apiAccessTokenVersion: "Test string",
1385
+ apiKeyVersion: "Test string",
1386
+ readAccessTokenVersion: "Test string",
1387
+ webhookSecretVersion: "Test string",
1388
+ },
1389
+ username: "Test string",
1390
+ webhookKey: "Test string",
1391
+ },
1392
+ gitlabConfigResource: "Test string",
1393
+ projectNamespace: "Test string",
1394
+ pullRequest: {
1395
+ branch: "Test string",
1396
+ commentControl: "Test string",
1397
+ invertRegex: true,
1398
+ },
1399
+ push: {
1400
+ branch: "Test string",
1401
+ invertRegex: true,
1402
+ tag: "Test string",
1403
+ },
1404
+ },
1253
1405
  id: "Test string",
1254
1406
  ignoredFiles: [
1255
1407
  "Test string"
@@ -1638,6 +1790,45 @@ gapi.load('client', async () => {
1638
1790
  tag: "Test string",
1639
1791
  },
1640
1792
  },
1793
+ gitlabEnterpriseEventsConfig: {
1794
+ gitlabConfig: {
1795
+ connectedRepositories: [
1796
+ {
1797
+ id: "Test string",
1798
+ webhookId: 42,
1799
+ }
1800
+ ],
1801
+ createTime: "Test string",
1802
+ enterpriseConfig: {
1803
+ hostUri: "Test string",
1804
+ serviceDirectoryConfig: {
1805
+ service: "Test string",
1806
+ },
1807
+ sslCa: "Test string",
1808
+ },
1809
+ name: "Test string",
1810
+ secrets: {
1811
+ apiAccessTokenVersion: "Test string",
1812
+ apiKeyVersion: "Test string",
1813
+ readAccessTokenVersion: "Test string",
1814
+ webhookSecretVersion: "Test string",
1815
+ },
1816
+ username: "Test string",
1817
+ webhookKey: "Test string",
1818
+ },
1819
+ gitlabConfigResource: "Test string",
1820
+ projectNamespace: "Test string",
1821
+ pullRequest: {
1822
+ branch: "Test string",
1823
+ commentControl: "Test string",
1824
+ invertRegex: true,
1825
+ },
1826
+ push: {
1827
+ branch: "Test string",
1828
+ invertRegex: true,
1829
+ tag: "Test string",
1830
+ },
1831
+ },
1641
1832
  id: "Test string",
1642
1833
  ignoredFiles: [
1643
1834
  "Test string"
@@ -2116,6 +2307,45 @@ gapi.load('client', async () => {
2116
2307
  tag: "Test string",
2117
2308
  },
2118
2309
  },
2310
+ gitlabEnterpriseEventsConfig: {
2311
+ gitlabConfig: {
2312
+ connectedRepositories: [
2313
+ {
2314
+ id: "Test string",
2315
+ webhookId: 42,
2316
+ }
2317
+ ],
2318
+ createTime: "Test string",
2319
+ enterpriseConfig: {
2320
+ hostUri: "Test string",
2321
+ serviceDirectoryConfig: {
2322
+ service: "Test string",
2323
+ },
2324
+ sslCa: "Test string",
2325
+ },
2326
+ name: "Test string",
2327
+ secrets: {
2328
+ apiAccessTokenVersion: "Test string",
2329
+ apiKeyVersion: "Test string",
2330
+ readAccessTokenVersion: "Test string",
2331
+ webhookSecretVersion: "Test string",
2332
+ },
2333
+ username: "Test string",
2334
+ webhookKey: "Test string",
2335
+ },
2336
+ gitlabConfigResource: "Test string",
2337
+ projectNamespace: "Test string",
2338
+ pullRequest: {
2339
+ branch: "Test string",
2340
+ commentControl: "Test string",
2341
+ invertRegex: true,
2342
+ },
2343
+ push: {
2344
+ branch: "Test string",
2345
+ invertRegex: true,
2346
+ tag: "Test string",
2347
+ },
2348
+ },
2119
2349
  id: "Test string",
2120
2350
  ignoredFiles: [
2121
2351
  "Test string"
@@ -2503,6 +2733,45 @@ gapi.load('client', async () => {
2503
2733
  tag: "Test string",
2504
2734
  },
2505
2735
  },
2736
+ gitlabEnterpriseEventsConfig: {
2737
+ gitlabConfig: {
2738
+ connectedRepositories: [
2739
+ {
2740
+ id: "Test string",
2741
+ webhookId: 42,
2742
+ }
2743
+ ],
2744
+ createTime: "Test string",
2745
+ enterpriseConfig: {
2746
+ hostUri: "Test string",
2747
+ serviceDirectoryConfig: {
2748
+ service: "Test string",
2749
+ },
2750
+ sslCa: "Test string",
2751
+ },
2752
+ name: "Test string",
2753
+ secrets: {
2754
+ apiAccessTokenVersion: "Test string",
2755
+ apiKeyVersion: "Test string",
2756
+ readAccessTokenVersion: "Test string",
2757
+ webhookSecretVersion: "Test string",
2758
+ },
2759
+ username: "Test string",
2760
+ webhookKey: "Test string",
2761
+ },
2762
+ gitlabConfigResource: "Test string",
2763
+ projectNamespace: "Test string",
2764
+ pullRequest: {
2765
+ branch: "Test string",
2766
+ commentControl: "Test string",
2767
+ invertRegex: true,
2768
+ },
2769
+ push: {
2770
+ branch: "Test string",
2771
+ invertRegex: true,
2772
+ tag: "Test string",
2773
+ },
2774
+ },
2506
2775
  id: "Test string",
2507
2776
  ignoredFiles: [
2508
2777
  "Test string"