@maxim_mazurok/gapi.client.cloudbuild-v1 0.0.20221110 → 0.0.20221201

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 +27 -15
  2. package/package.json +1 -1
  3. package/tests.ts +9 -5
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://cloudbuild.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20221110
12
+ // Revision: 20221201
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -634,7 +634,7 @@ declare namespace gapi.client {
634
634
  displayName?: string;
635
635
  /** The URL of the github enterprise host the configuration is for. */
636
636
  hostUrl?: string;
637
- /** Optional. The full resource name for the GitHubEnterpriseConfig For example: "projects/{$project_id}/githubEnterpriseConfigs/{$config_id}" */
637
+ /** Optional. The full resource name for the GitHubEnterpriseConfig For example: "projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}" */
638
638
  name?: string;
639
639
  /**
640
640
  * Optional. The network to be used when reaching out to the GitHub Enterprise server. The VPC network must be enabled for private service connection. This should be set if the GitHub
@@ -669,7 +669,10 @@ declare namespace gapi.client {
669
669
  webhookSecretVersionName?: string;
670
670
  }
671
671
  interface GitHubEventsConfig {
672
- /** Optional. The resource name of the github enterprise config that should be applied to this installation. For example: "projects/{$project_id}/githubEnterpriseConfigs/{$config_id}" */
672
+ /**
673
+ * Optional. The resource name of the github enterprise config that should be applied to this installation. For example:
674
+ * "projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}"
675
+ */
673
676
  enterpriseConfigResourceName?: string;
674
677
  /** The installationID that emits the GitHub event. */
675
678
  installationId?: string;
@@ -872,6 +875,13 @@ declare namespace gapi.client {
872
875
  * network in the project. See [Understanding network configuration options](https://cloud.google.com/build/docs/private-pools/set-up-private-pool-environment)
873
876
  */
874
877
  peeredNetwork?: string;
878
+ /**
879
+ * Immutable. Subnet IP range within the peered network. This is specified in CIDR notation. The IP and prefix size are both optional. If unspecified, the default value for IP is blank
880
+ * (will use an automatic value from the peered network), and the prefix size will default to 24 bits. e.g. `192.168.0.0/30` would specify a subnet mask of 192.168.0.0 with a prefix
881
+ * size of 30 bits. `192.168.0.0` would specify a subnet mask of 192.168.0.0 with a prefix size of 24 bits (the default prefix size). `/16` would specify a prefix size of 16 bits, with
882
+ * an unspecified IP.
883
+ */
884
+ peeredNetworkIpRange?: string;
875
885
  }
876
886
  interface Notification {
877
887
  /** The filter string to use for notification filtering. Currently, this is assumed to be a CEL program. See https://opensource.google/projects/cel for more. */
@@ -1918,7 +1928,7 @@ declare namespace gapi.client {
1918
1928
  fields?: string;
1919
1929
  /** 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. */
1920
1930
  key?: string;
1921
- /** This field should contain the name of the enterprise config resource. For example: "projects/{$project_id}/githubEnterpriseConfigs/{$config_id}" */
1931
+ /** This field should contain the name of the enterprise config resource. For example: "projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}" */
1922
1932
  name: string;
1923
1933
  /** OAuth 2.0 token for the current user. */
1924
1934
  oauth_token?: string;
@@ -1949,7 +1959,7 @@ declare namespace gapi.client {
1949
1959
  fields?: string;
1950
1960
  /** 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. */
1951
1961
  key?: string;
1952
- /** This field should contain the name of the enterprise config resource. For example: "projects/{$project_id}/githubEnterpriseConfigs/{$config_id}" */
1962
+ /** This field should contain the name of the enterprise config resource. For example: "projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}" */
1953
1963
  name: string;
1954
1964
  /** OAuth 2.0 token for the current user. */
1955
1965
  oauth_token?: string;
@@ -2007,7 +2017,7 @@ declare namespace gapi.client {
2007
2017
  fields?: string;
2008
2018
  /** 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. */
2009
2019
  key?: string;
2010
- /** Optional. The full resource name for the GitHubEnterpriseConfig For example: "projects/{$project_id}/githubEnterpriseConfigs/{$config_id}" */
2020
+ /** Optional. The full resource name for the GitHubEnterpriseConfig For example: "projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}" */
2011
2021
  name: string;
2012
2022
  /** OAuth 2.0 token for the current user. */
2013
2023
  oauth_token?: string;
@@ -2040,7 +2050,7 @@ declare namespace gapi.client {
2040
2050
  fields?: string;
2041
2051
  /** 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. */
2042
2052
  key?: string;
2043
- /** Optional. The full resource name for the GitHubEnterpriseConfig For example: "projects/{$project_id}/githubEnterpriseConfigs/{$config_id}" */
2053
+ /** Optional. The full resource name for the GitHubEnterpriseConfig For example: "projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}" */
2044
2054
  name: string;
2045
2055
  /** OAuth 2.0 token for the current user. */
2046
2056
  oauth_token?: string;
@@ -2839,7 +2849,7 @@ declare namespace gapi.client {
2839
2849
  fields?: string;
2840
2850
  /** 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. */
2841
2851
  key?: string;
2842
- /** This field should contain the name of the enterprise config resource. For example: "projects/{$project_id}/githubEnterpriseConfigs/{$config_id}" */
2852
+ /** This field should contain the name of the enterprise config resource. For example: "projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}" */
2843
2853
  name: string;
2844
2854
  /** OAuth 2.0 token for the current user. */
2845
2855
  oauth_token?: string;
@@ -2870,7 +2880,7 @@ declare namespace gapi.client {
2870
2880
  fields?: string;
2871
2881
  /** 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. */
2872
2882
  key?: string;
2873
- /** This field should contain the name of the enterprise config resource. For example: "projects/{$project_id}/githubEnterpriseConfigs/{$config_id}" */
2883
+ /** This field should contain the name of the enterprise config resource. For example: "projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}" */
2874
2884
  name: string;
2875
2885
  /** OAuth 2.0 token for the current user. */
2876
2886
  oauth_token?: string;
@@ -2928,7 +2938,7 @@ declare namespace gapi.client {
2928
2938
  fields?: string;
2929
2939
  /** 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. */
2930
2940
  key?: string;
2931
- /** Optional. The full resource name for the GitHubEnterpriseConfig For example: "projects/{$project_id}/githubEnterpriseConfigs/{$config_id}" */
2941
+ /** Optional. The full resource name for the GitHubEnterpriseConfig For example: "projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}" */
2932
2942
  name: string;
2933
2943
  /** OAuth 2.0 token for the current user. */
2934
2944
  oauth_token?: string;
@@ -2961,7 +2971,7 @@ declare namespace gapi.client {
2961
2971
  fields?: string;
2962
2972
  /** 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. */
2963
2973
  key?: string;
2964
- /** Optional. The full resource name for the GitHubEnterpriseConfig For example: "projects/{$project_id}/githubEnterpriseConfigs/{$config_id}" */
2974
+ /** Optional. The full resource name for the GitHubEnterpriseConfig For example: "projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}" */
2965
2975
  name: string;
2966
2976
  /** OAuth 2.0 token for the current user. */
2967
2977
  oauth_token?: string;
@@ -3669,8 +3679,9 @@ declare namespace gapi.client {
3669
3679
  },
3670
3680
  body: BuildTrigger): Request<BuildTrigger>;
3671
3681
  /**
3672
- * Runs a `BuildTrigger` at a particular source revision. To run a regional or global trigger, use the POST request that includes the location endpoint in the path. The POST request
3673
- * that does not include the location endpoint in the path can only be used when running global triggers.
3682
+ * Runs a `BuildTrigger` at a particular source revision. To run a regional or global trigger, use the POST request that includes the location endpoint in the path (ex.
3683
+ * v1/projects/{projectId}/locations/{region}/triggers/{triggerId}:run). The POST request that does not include the location endpoint in the path can only be used when running global
3684
+ * triggers.
3674
3685
  */
3675
3686
  run(request: {
3676
3687
  /** V1 error format. */
@@ -4255,8 +4266,9 @@ declare namespace gapi.client {
4255
4266
  },
4256
4267
  body: BuildTrigger): Request<BuildTrigger>;
4257
4268
  /**
4258
- * Runs a `BuildTrigger` at a particular source revision. To run a regional or global trigger, use the POST request that includes the location endpoint in the path. The POST request
4259
- * that does not include the location endpoint in the path can only be used when running global triggers.
4269
+ * Runs a `BuildTrigger` at a particular source revision. To run a regional or global trigger, use the POST request that includes the location endpoint in the path (ex.
4270
+ * v1/projects/{projectId}/locations/{region}/triggers/{triggerId}:run). The POST request that does not include the location endpoint in the path can only be used when running global
4271
+ * triggers.
4260
4272
  */
4261
4273
  run(request: {
4262
4274
  /** V1 error format. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.cloudbuild-v1",
3
- "version": "0.0.20221110",
3
+ "version": "0.0.20221201",
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: 20221110
6
+ // Revision: 20221201
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -2109,8 +2109,9 @@ gapi.load('client', async () => {
2109
2109
  },
2110
2110
  });
2111
2111
  /**
2112
- * Runs a `BuildTrigger` at a particular source revision. To run a regional or global trigger, use the POST request that includes the location endpoint in the path. The POST request that
2113
- * does not include the location endpoint in the path can only be used when running global triggers.
2112
+ * Runs a `BuildTrigger` at a particular source revision. To run a regional or global trigger, use the POST request that includes the location endpoint in the path (ex.
2113
+ * v1/projects/{projectId}/locations/{region}/triggers/{triggerId}:run). The POST request that does not include the location endpoint in the path can only be used when running global
2114
+ * triggers.
2114
2115
  */
2115
2116
  await gapi.client.cloudbuild.projects.locations.triggers.run({
2116
2117
  name: "Test string",
@@ -2163,6 +2164,7 @@ gapi.load('client', async () => {
2163
2164
  networkConfig: {
2164
2165
  egressOption: "Test string",
2165
2166
  peeredNetwork: "Test string",
2167
+ peeredNetworkIpRange: "Test string",
2166
2168
  },
2167
2169
  workerConfig: {
2168
2170
  diskSizeGb: "Test string",
@@ -2208,6 +2210,7 @@ gapi.load('client', async () => {
2208
2210
  networkConfig: {
2209
2211
  egressOption: "Test string",
2210
2212
  peeredNetwork: "Test string",
2213
+ peeredNetworkIpRange: "Test string",
2211
2214
  },
2212
2215
  workerConfig: {
2213
2216
  diskSizeGb: "Test string",
@@ -3182,8 +3185,9 @@ gapi.load('client', async () => {
3182
3185
  },
3183
3186
  });
3184
3187
  /**
3185
- * Runs a `BuildTrigger` at a particular source revision. To run a regional or global trigger, use the POST request that includes the location endpoint in the path. The POST request that
3186
- * does not include the location endpoint in the path can only be used when running global triggers.
3188
+ * Runs a `BuildTrigger` at a particular source revision. To run a regional or global trigger, use the POST request that includes the location endpoint in the path (ex.
3189
+ * v1/projects/{projectId}/locations/{region}/triggers/{triggerId}:run). The POST request that does not include the location endpoint in the path can only be used when running global
3190
+ * triggers.
3187
3191
  */
3188
3192
  await gapi.client.cloudbuild.projects.triggers.run({
3189
3193
  name: "Test string",