@maxim_mazurok/gapi.client.compute-alpha 0.0.20220816 → 0.0.20220823
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.
- package/index.d.ts +230 -9
- package/package.json +1 -1
- package/readme.md +20 -0
- package/tests.ts +276 -1
package/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
11
11
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
12
12
|
// Generated from: https://www.googleapis.com/discovery/v1/apis/compute/alpha/rest
|
|
13
|
-
// Revision:
|
|
13
|
+
// Revision: 20220823
|
|
14
14
|
|
|
15
15
|
/// <reference types="gapi.client" />
|
|
16
16
|
|
|
@@ -464,9 +464,8 @@ declare namespace gapi.client {
|
|
|
464
464
|
*/
|
|
465
465
|
initializeParams?: AttachedDiskInitializeParams;
|
|
466
466
|
/**
|
|
467
|
-
* Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME.
|
|
468
|
-
*
|
|
469
|
-
* performance.
|
|
467
|
+
* Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. For most machine types, the default is SCSI. Local SSDs can use either NVME or SCSI. In
|
|
468
|
+
* certain configurations, persistent disks can use NVMe. For more information, see About persistent disks.
|
|
470
469
|
*/
|
|
471
470
|
interface?: string;
|
|
472
471
|
/** [Output Only] Type of the resource. Always compute#attachedDisk for attached disks. */
|
|
@@ -2855,10 +2854,7 @@ declare namespace gapi.client {
|
|
|
2855
2854
|
* IPv4 and IPv6 are supported.
|
|
2856
2855
|
*/
|
|
2857
2856
|
destinationRanges?: string[];
|
|
2858
|
-
/**
|
|
2859
|
-
* Direction of traffic to which this firewall applies, either `INGRESS` or `EGRESS`. The default is `INGRESS`. For `INGRESS` traffic, you cannot specify the destinationRanges field,
|
|
2860
|
-
* and for `EGRESS` traffic, you cannot specify the sourceRanges or sourceTags fields.
|
|
2861
|
-
*/
|
|
2857
|
+
/** Direction of traffic to which this firewall applies, either `INGRESS` or `EGRESS`. The default is `INGRESS`. For `EGRESS` traffic, you cannot specify the sourceTags fields. */
|
|
2862
2858
|
direction?: string;
|
|
2863
2859
|
/**
|
|
2864
2860
|
* Denotes whether the firewall rule is disabled. When set to true, the firewall rule is not enforced and the network behaves as if it did not exist. If this is unspecified, the
|
|
@@ -5204,6 +5200,8 @@ declare namespace gapi.client {
|
|
|
5204
5200
|
deleting?: number;
|
|
5205
5201
|
/** [Output Only] The number of instances in the managed instance group that are running and have no scheduled actions. */
|
|
5206
5202
|
none?: number;
|
|
5203
|
+
/** [Output Only] The number of instances that the managed instance group is currently queuing. */
|
|
5204
|
+
queuing?: number;
|
|
5207
5205
|
/**
|
|
5208
5206
|
* [Output Only] The number of instances in the managed instance group that are scheduled to be recreated or are currently being being recreated. Recreating an instance deletes the
|
|
5209
5207
|
* existing root persistent disk and creates a new disk from the image that is defined in the instance template.
|
|
@@ -7615,6 +7613,8 @@ declare namespace gapi.client {
|
|
|
7615
7613
|
instanceTemplate?: string;
|
|
7616
7614
|
/** [Output Only] Information about the last attempt to create or delete the instance. */
|
|
7617
7615
|
lastAttempt?: ManagedInstanceLastAttempt;
|
|
7616
|
+
/** [Output Only] The name of the instance. The name will always exist even if the instance has not yet been created. */
|
|
7617
|
+
name?: string;
|
|
7618
7618
|
/** [Output Only] Preserved state applied from per-instance config for this instance. */
|
|
7619
7619
|
preservedStateFromConfig?: PreservedState;
|
|
7620
7620
|
/** [Output Only] Preserved state generated based on stateful policy for this instance. */
|
|
@@ -7760,7 +7760,10 @@ declare namespace gapi.client {
|
|
|
7760
7760
|
IPv4Range?: string;
|
|
7761
7761
|
/** [Output Only] Type of the resource. Always compute#network for networks. */
|
|
7762
7762
|
kind?: string;
|
|
7763
|
-
/**
|
|
7763
|
+
/**
|
|
7764
|
+
* Maximum Transmission Unit in bytes. The minimum value for this field is 1300 and the maximum value is 8896. The suggested value is 1500, which is the default MTU used on the
|
|
7765
|
+
* Internet, or 8896 if you want to use Jumbo frames. If unspecified, the value defaults to 1460.
|
|
7766
|
+
*/
|
|
7764
7767
|
mtu?: number;
|
|
7765
7768
|
/**
|
|
7766
7769
|
* Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63
|
|
@@ -49762,6 +49765,78 @@ declare namespace gapi.client {
|
|
|
49762
49765
|
}): Request<RegionList>;
|
|
49763
49766
|
}
|
|
49764
49767
|
interface RegionSecurityPoliciesResource {
|
|
49768
|
+
/** Inserts a rule into a security policy. */
|
|
49769
|
+
addRule(request: {
|
|
49770
|
+
/** V1 error format. */
|
|
49771
|
+
"$.xgafv"?: string;
|
|
49772
|
+
/** OAuth access token. */
|
|
49773
|
+
access_token?: string;
|
|
49774
|
+
/** Data format for response. */
|
|
49775
|
+
alt?: string;
|
|
49776
|
+
/** JSONP */
|
|
49777
|
+
callback?: string;
|
|
49778
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
49779
|
+
fields?: string;
|
|
49780
|
+
/** 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. */
|
|
49781
|
+
key?: string;
|
|
49782
|
+
/** OAuth 2.0 token for the current user. */
|
|
49783
|
+
oauth_token?: string;
|
|
49784
|
+
/** Returns response with indentations and line breaks. */
|
|
49785
|
+
prettyPrint?: boolean;
|
|
49786
|
+
/** Project ID for this request. */
|
|
49787
|
+
project: string;
|
|
49788
|
+
/** 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. */
|
|
49789
|
+
quotaUser?: string;
|
|
49790
|
+
/** Name of the region scoping this request. */
|
|
49791
|
+
region: string;
|
|
49792
|
+
/** Name of the security policy to update. */
|
|
49793
|
+
securityPolicy: string;
|
|
49794
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
49795
|
+
upload_protocol?: string;
|
|
49796
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
49797
|
+
uploadType?: string;
|
|
49798
|
+
/** Legacy name for parameter that has been superseded by `quotaUser`. */
|
|
49799
|
+
userIp?: string;
|
|
49800
|
+
/** If true, the request will not be committed. */
|
|
49801
|
+
validateOnly?: boolean;
|
|
49802
|
+
/** Request body */
|
|
49803
|
+
resource: SecurityPolicyRule;
|
|
49804
|
+
}): Request<Operation>;
|
|
49805
|
+
addRule(request: {
|
|
49806
|
+
/** V1 error format. */
|
|
49807
|
+
"$.xgafv"?: string;
|
|
49808
|
+
/** OAuth access token. */
|
|
49809
|
+
access_token?: string;
|
|
49810
|
+
/** Data format for response. */
|
|
49811
|
+
alt?: string;
|
|
49812
|
+
/** JSONP */
|
|
49813
|
+
callback?: string;
|
|
49814
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
49815
|
+
fields?: string;
|
|
49816
|
+
/** 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. */
|
|
49817
|
+
key?: string;
|
|
49818
|
+
/** OAuth 2.0 token for the current user. */
|
|
49819
|
+
oauth_token?: string;
|
|
49820
|
+
/** Returns response with indentations and line breaks. */
|
|
49821
|
+
prettyPrint?: boolean;
|
|
49822
|
+
/** Project ID for this request. */
|
|
49823
|
+
project: string;
|
|
49824
|
+
/** 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. */
|
|
49825
|
+
quotaUser?: string;
|
|
49826
|
+
/** Name of the region scoping this request. */
|
|
49827
|
+
region: string;
|
|
49828
|
+
/** Name of the security policy to update. */
|
|
49829
|
+
securityPolicy: string;
|
|
49830
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
49831
|
+
upload_protocol?: string;
|
|
49832
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
49833
|
+
uploadType?: string;
|
|
49834
|
+
/** Legacy name for parameter that has been superseded by `quotaUser`. */
|
|
49835
|
+
userIp?: string;
|
|
49836
|
+
/** If true, the request will not be committed. */
|
|
49837
|
+
validateOnly?: boolean;
|
|
49838
|
+
},
|
|
49839
|
+
body: SecurityPolicyRule): Request<Operation>;
|
|
49765
49840
|
/** Deletes the specified policy. */
|
|
49766
49841
|
delete(request?: {
|
|
49767
49842
|
/** V1 error format. */
|
|
@@ -49835,6 +49910,41 @@ declare namespace gapi.client {
|
|
|
49835
49910
|
/** Legacy name for parameter that has been superseded by `quotaUser`. */
|
|
49836
49911
|
userIp?: string;
|
|
49837
49912
|
}): Request<SecurityPolicy>;
|
|
49913
|
+
/** Gets a rule at the specified priority. */
|
|
49914
|
+
getRule(request?: {
|
|
49915
|
+
/** V1 error format. */
|
|
49916
|
+
"$.xgafv"?: string;
|
|
49917
|
+
/** OAuth access token. */
|
|
49918
|
+
access_token?: string;
|
|
49919
|
+
/** Data format for response. */
|
|
49920
|
+
alt?: string;
|
|
49921
|
+
/** JSONP */
|
|
49922
|
+
callback?: string;
|
|
49923
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
49924
|
+
fields?: string;
|
|
49925
|
+
/** 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. */
|
|
49926
|
+
key?: string;
|
|
49927
|
+
/** OAuth 2.0 token for the current user. */
|
|
49928
|
+
oauth_token?: string;
|
|
49929
|
+
/** Returns response with indentations and line breaks. */
|
|
49930
|
+
prettyPrint?: boolean;
|
|
49931
|
+
/** The priority of the rule to get from the security policy. */
|
|
49932
|
+
priority?: number;
|
|
49933
|
+
/** Project ID for this request. */
|
|
49934
|
+
project: string;
|
|
49935
|
+
/** 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. */
|
|
49936
|
+
quotaUser?: string;
|
|
49937
|
+
/** Name of the region scoping this request. */
|
|
49938
|
+
region: string;
|
|
49939
|
+
/** Name of the security policy to which the queried rule belongs. */
|
|
49940
|
+
securityPolicy: string;
|
|
49941
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
49942
|
+
upload_protocol?: string;
|
|
49943
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
49944
|
+
uploadType?: string;
|
|
49945
|
+
/** Legacy name for parameter that has been superseded by `quotaUser`. */
|
|
49946
|
+
userIp?: string;
|
|
49947
|
+
}): Request<SecurityPolicyRule>;
|
|
49838
49948
|
/** Creates a new policy in the specified project using the data included in the request. */
|
|
49839
49949
|
insert(request: {
|
|
49840
49950
|
/** V1 error format. */
|
|
@@ -50067,6 +50177,117 @@ declare namespace gapi.client {
|
|
|
50067
50177
|
userIp?: string;
|
|
50068
50178
|
},
|
|
50069
50179
|
body: SecurityPolicy): Request<Operation>;
|
|
50180
|
+
/** Patches a rule at the specified priority. */
|
|
50181
|
+
patchRule(request: {
|
|
50182
|
+
/** V1 error format. */
|
|
50183
|
+
"$.xgafv"?: string;
|
|
50184
|
+
/** OAuth access token. */
|
|
50185
|
+
access_token?: string;
|
|
50186
|
+
/** Data format for response. */
|
|
50187
|
+
alt?: string;
|
|
50188
|
+
/** JSONP */
|
|
50189
|
+
callback?: string;
|
|
50190
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
50191
|
+
fields?: string;
|
|
50192
|
+
/** 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. */
|
|
50193
|
+
key?: string;
|
|
50194
|
+
/** OAuth 2.0 token for the current user. */
|
|
50195
|
+
oauth_token?: string;
|
|
50196
|
+
/** Returns response with indentations and line breaks. */
|
|
50197
|
+
prettyPrint?: boolean;
|
|
50198
|
+
/** The priority of the rule to patch. */
|
|
50199
|
+
priority?: number;
|
|
50200
|
+
/** Project ID for this request. */
|
|
50201
|
+
project: string;
|
|
50202
|
+
/** 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. */
|
|
50203
|
+
quotaUser?: string;
|
|
50204
|
+
/** Name of the region scoping this request. */
|
|
50205
|
+
region: string;
|
|
50206
|
+
/** Name of the security policy to update. */
|
|
50207
|
+
securityPolicy: string;
|
|
50208
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
50209
|
+
upload_protocol?: string;
|
|
50210
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
50211
|
+
uploadType?: string;
|
|
50212
|
+
/** Legacy name for parameter that has been superseded by `quotaUser`. */
|
|
50213
|
+
userIp?: string;
|
|
50214
|
+
/** If true, the request will not be committed. */
|
|
50215
|
+
validateOnly?: boolean;
|
|
50216
|
+
/** Request body */
|
|
50217
|
+
resource: SecurityPolicyRule;
|
|
50218
|
+
}): Request<Operation>;
|
|
50219
|
+
patchRule(request: {
|
|
50220
|
+
/** V1 error format. */
|
|
50221
|
+
"$.xgafv"?: string;
|
|
50222
|
+
/** OAuth access token. */
|
|
50223
|
+
access_token?: string;
|
|
50224
|
+
/** Data format for response. */
|
|
50225
|
+
alt?: string;
|
|
50226
|
+
/** JSONP */
|
|
50227
|
+
callback?: string;
|
|
50228
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
50229
|
+
fields?: string;
|
|
50230
|
+
/** 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. */
|
|
50231
|
+
key?: string;
|
|
50232
|
+
/** OAuth 2.0 token for the current user. */
|
|
50233
|
+
oauth_token?: string;
|
|
50234
|
+
/** Returns response with indentations and line breaks. */
|
|
50235
|
+
prettyPrint?: boolean;
|
|
50236
|
+
/** The priority of the rule to patch. */
|
|
50237
|
+
priority?: number;
|
|
50238
|
+
/** Project ID for this request. */
|
|
50239
|
+
project: string;
|
|
50240
|
+
/** 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. */
|
|
50241
|
+
quotaUser?: string;
|
|
50242
|
+
/** Name of the region scoping this request. */
|
|
50243
|
+
region: string;
|
|
50244
|
+
/** Name of the security policy to update. */
|
|
50245
|
+
securityPolicy: string;
|
|
50246
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
50247
|
+
upload_protocol?: string;
|
|
50248
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
50249
|
+
uploadType?: string;
|
|
50250
|
+
/** Legacy name for parameter that has been superseded by `quotaUser`. */
|
|
50251
|
+
userIp?: string;
|
|
50252
|
+
/** If true, the request will not be committed. */
|
|
50253
|
+
validateOnly?: boolean;
|
|
50254
|
+
},
|
|
50255
|
+
body: SecurityPolicyRule): Request<Operation>;
|
|
50256
|
+
/** Deletes a rule at the specified priority. */
|
|
50257
|
+
removeRule(request?: {
|
|
50258
|
+
/** V1 error format. */
|
|
50259
|
+
"$.xgafv"?: string;
|
|
50260
|
+
/** OAuth access token. */
|
|
50261
|
+
access_token?: string;
|
|
50262
|
+
/** Data format for response. */
|
|
50263
|
+
alt?: string;
|
|
50264
|
+
/** JSONP */
|
|
50265
|
+
callback?: string;
|
|
50266
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
50267
|
+
fields?: string;
|
|
50268
|
+
/** 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. */
|
|
50269
|
+
key?: string;
|
|
50270
|
+
/** OAuth 2.0 token for the current user. */
|
|
50271
|
+
oauth_token?: string;
|
|
50272
|
+
/** Returns response with indentations and line breaks. */
|
|
50273
|
+
prettyPrint?: boolean;
|
|
50274
|
+
/** The priority of the rule to remove from the security policy. */
|
|
50275
|
+
priority?: number;
|
|
50276
|
+
/** Project ID for this request. */
|
|
50277
|
+
project: string;
|
|
50278
|
+
/** 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. */
|
|
50279
|
+
quotaUser?: string;
|
|
50280
|
+
/** Name of the region scoping this request. */
|
|
50281
|
+
region: string;
|
|
50282
|
+
/** Name of the security policy to update. */
|
|
50283
|
+
securityPolicy: string;
|
|
50284
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
50285
|
+
upload_protocol?: string;
|
|
50286
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
50287
|
+
uploadType?: string;
|
|
50288
|
+
/** Legacy name for parameter that has been superseded by `quotaUser`. */
|
|
50289
|
+
userIp?: string;
|
|
50290
|
+
}): Request<Operation>;
|
|
50070
50291
|
}
|
|
50071
50292
|
interface RegionSslCertificatesResource {
|
|
50072
50293
|
/** Deletes the specified SslCertificate resource in the region. */
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -3061,6 +3061,11 @@ Retrieves the list of region resources available to the specified project. To de
|
|
|
3061
3061
|
*/
|
|
3062
3062
|
await gapi.client.compute.regions.list({ project: "project", });
|
|
3063
3063
|
|
|
3064
|
+
/*
|
|
3065
|
+
Inserts a rule into a security policy.
|
|
3066
|
+
*/
|
|
3067
|
+
await gapi.client.compute.regionSecurityPolicies.addRule({ project: "project", region: "region", securityPolicy: "securityPolicy", });
|
|
3068
|
+
|
|
3064
3069
|
/*
|
|
3065
3070
|
Deletes the specified policy.
|
|
3066
3071
|
*/
|
|
@@ -3071,6 +3076,11 @@ List all of the ordered rules present in a single specified policy.
|
|
|
3071
3076
|
*/
|
|
3072
3077
|
await gapi.client.compute.regionSecurityPolicies.get({ project: "project", region: "region", securityPolicy: "securityPolicy", });
|
|
3073
3078
|
|
|
3079
|
+
/*
|
|
3080
|
+
Gets a rule at the specified priority.
|
|
3081
|
+
*/
|
|
3082
|
+
await gapi.client.compute.regionSecurityPolicies.getRule({ project: "project", region: "region", securityPolicy: "securityPolicy", });
|
|
3083
|
+
|
|
3074
3084
|
/*
|
|
3075
3085
|
Creates a new policy in the specified project using the data included in the request.
|
|
3076
3086
|
*/
|
|
@@ -3086,6 +3096,16 @@ Patches the specified policy with the data included in the request.
|
|
|
3086
3096
|
*/
|
|
3087
3097
|
await gapi.client.compute.regionSecurityPolicies.patch({ project: "project", region: "region", securityPolicy: "securityPolicy", });
|
|
3088
3098
|
|
|
3099
|
+
/*
|
|
3100
|
+
Patches a rule at the specified priority.
|
|
3101
|
+
*/
|
|
3102
|
+
await gapi.client.compute.regionSecurityPolicies.patchRule({ project: "project", region: "region", securityPolicy: "securityPolicy", });
|
|
3103
|
+
|
|
3104
|
+
/*
|
|
3105
|
+
Deletes a rule at the specified priority.
|
|
3106
|
+
*/
|
|
3107
|
+
await gapi.client.compute.regionSecurityPolicies.removeRule({ project: "project", region: "region", securityPolicy: "securityPolicy", });
|
|
3108
|
+
|
|
3089
3109
|
/*
|
|
3090
3110
|
Deletes the specified SslCertificate resource in the region.
|
|
3091
3111
|
*/
|
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:
|
|
6
|
+
// Revision: 20220823
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -5634,6 +5634,7 @@ gapi.load('client', async () => {
|
|
|
5634
5634
|
creatingWithoutRetries: 42,
|
|
5635
5635
|
deleting: 42,
|
|
5636
5636
|
none: 42,
|
|
5637
|
+
queuing: 42,
|
|
5637
5638
|
recreating: 42,
|
|
5638
5639
|
refreshing: 42,
|
|
5639
5640
|
restarting: 42,
|
|
@@ -5847,6 +5848,7 @@ gapi.load('client', async () => {
|
|
|
5847
5848
|
creatingWithoutRetries: 42,
|
|
5848
5849
|
deleting: 42,
|
|
5849
5850
|
none: 42,
|
|
5851
|
+
queuing: 42,
|
|
5850
5852
|
recreating: 42,
|
|
5851
5853
|
refreshing: 42,
|
|
5852
5854
|
restarting: 42,
|
|
@@ -6240,6 +6242,7 @@ gapi.load('client', async () => {
|
|
|
6240
6242
|
creatingWithoutRetries: 42,
|
|
6241
6243
|
deleting: 42,
|
|
6242
6244
|
none: 42,
|
|
6245
|
+
queuing: 42,
|
|
6243
6246
|
recreating: 42,
|
|
6244
6247
|
refreshing: 42,
|
|
6245
6248
|
restarting: 42,
|
|
@@ -16894,6 +16897,7 @@ gapi.load('client', async () => {
|
|
|
16894
16897
|
creatingWithoutRetries: 42,
|
|
16895
16898
|
deleting: 42,
|
|
16896
16899
|
none: 42,
|
|
16900
|
+
queuing: 42,
|
|
16897
16901
|
recreating: 42,
|
|
16898
16902
|
refreshing: 42,
|
|
16899
16903
|
restarting: 42,
|
|
@@ -17106,6 +17110,7 @@ gapi.load('client', async () => {
|
|
|
17106
17110
|
creatingWithoutRetries: 42,
|
|
17107
17111
|
deleting: 42,
|
|
17108
17112
|
none: 42,
|
|
17113
|
+
queuing: 42,
|
|
17109
17114
|
recreating: 42,
|
|
17110
17115
|
refreshing: 42,
|
|
17111
17116
|
restarting: 42,
|
|
@@ -17490,6 +17495,7 @@ gapi.load('client', async () => {
|
|
|
17490
17495
|
creatingWithoutRetries: 42,
|
|
17491
17496
|
deleting: 42,
|
|
17492
17497
|
none: 42,
|
|
17498
|
+
queuing: 42,
|
|
17493
17499
|
recreating: 42,
|
|
17494
17500
|
refreshing: 42,
|
|
17495
17501
|
restarting: 42,
|
|
@@ -19713,6 +19719,133 @@ gapi.load('client', async () => {
|
|
|
19713
19719
|
project: "Test string",
|
|
19714
19720
|
returnPartialSuccess: true,
|
|
19715
19721
|
});
|
|
19722
|
+
/** Inserts a rule into a security policy. */
|
|
19723
|
+
await gapi.client.compute.regionSecurityPolicies.addRule({
|
|
19724
|
+
project: "Test string",
|
|
19725
|
+
region: "Test string",
|
|
19726
|
+
securityPolicy: "Test string",
|
|
19727
|
+
validateOnly: true,
|
|
19728
|
+
}, {
|
|
19729
|
+
action: "Test string",
|
|
19730
|
+
description: "Test string",
|
|
19731
|
+
direction: "Test string",
|
|
19732
|
+
enableLogging: true,
|
|
19733
|
+
headerAction: {
|
|
19734
|
+
requestHeadersToAdds: [
|
|
19735
|
+
{
|
|
19736
|
+
headerName: "Test string",
|
|
19737
|
+
headerValue: "Test string",
|
|
19738
|
+
}
|
|
19739
|
+
],
|
|
19740
|
+
},
|
|
19741
|
+
kind: "Test string",
|
|
19742
|
+
match: {
|
|
19743
|
+
config: {
|
|
19744
|
+
destIpRanges: [
|
|
19745
|
+
"Test string"
|
|
19746
|
+
],
|
|
19747
|
+
destPorts: [
|
|
19748
|
+
{
|
|
19749
|
+
ipProtocol: "Test string",
|
|
19750
|
+
ports: [
|
|
19751
|
+
"Test string"
|
|
19752
|
+
],
|
|
19753
|
+
}
|
|
19754
|
+
],
|
|
19755
|
+
layer4Configs: [
|
|
19756
|
+
{
|
|
19757
|
+
ipProtocol: "Test string",
|
|
19758
|
+
ports: [
|
|
19759
|
+
"Test string"
|
|
19760
|
+
],
|
|
19761
|
+
}
|
|
19762
|
+
],
|
|
19763
|
+
srcIpRanges: [
|
|
19764
|
+
"Test string"
|
|
19765
|
+
],
|
|
19766
|
+
},
|
|
19767
|
+
expr: {
|
|
19768
|
+
description: "Test string",
|
|
19769
|
+
expression: "Test string",
|
|
19770
|
+
location: "Test string",
|
|
19771
|
+
title: "Test string",
|
|
19772
|
+
},
|
|
19773
|
+
versionedExpr: "Test string",
|
|
19774
|
+
},
|
|
19775
|
+
preconfiguredWafConfig: {
|
|
19776
|
+
exclusions: [
|
|
19777
|
+
{
|
|
19778
|
+
requestCookiesToExclude: [
|
|
19779
|
+
{
|
|
19780
|
+
op: "Test string",
|
|
19781
|
+
val: "Test string",
|
|
19782
|
+
}
|
|
19783
|
+
],
|
|
19784
|
+
requestHeadersToExclude: [
|
|
19785
|
+
{
|
|
19786
|
+
op: "Test string",
|
|
19787
|
+
val: "Test string",
|
|
19788
|
+
}
|
|
19789
|
+
],
|
|
19790
|
+
requestQueryParamsToExclude: [
|
|
19791
|
+
{
|
|
19792
|
+
op: "Test string",
|
|
19793
|
+
val: "Test string",
|
|
19794
|
+
}
|
|
19795
|
+
],
|
|
19796
|
+
requestUrisToExclude: [
|
|
19797
|
+
{
|
|
19798
|
+
op: "Test string",
|
|
19799
|
+
val: "Test string",
|
|
19800
|
+
}
|
|
19801
|
+
],
|
|
19802
|
+
targetRuleIds: [
|
|
19803
|
+
"Test string"
|
|
19804
|
+
],
|
|
19805
|
+
targetRuleSet: "Test string",
|
|
19806
|
+
}
|
|
19807
|
+
],
|
|
19808
|
+
},
|
|
19809
|
+
preview: true,
|
|
19810
|
+
priority: 42,
|
|
19811
|
+
rateLimitOptions: {
|
|
19812
|
+
banDurationSec: 42,
|
|
19813
|
+
banThreshold: {
|
|
19814
|
+
count: 42,
|
|
19815
|
+
intervalSec: 42,
|
|
19816
|
+
},
|
|
19817
|
+
conformAction: "Test string",
|
|
19818
|
+
enforceOnKey: "Test string",
|
|
19819
|
+
enforceOnKeyName: "Test string",
|
|
19820
|
+
exceedAction: "Test string",
|
|
19821
|
+
exceedActionRpcStatus: {
|
|
19822
|
+
code: 42,
|
|
19823
|
+
message: "Test string",
|
|
19824
|
+
},
|
|
19825
|
+
exceedRedirectOptions: {
|
|
19826
|
+
target: "Test string",
|
|
19827
|
+
type: "Test string",
|
|
19828
|
+
},
|
|
19829
|
+
rateLimitThreshold: {
|
|
19830
|
+
count: 42,
|
|
19831
|
+
intervalSec: 42,
|
|
19832
|
+
},
|
|
19833
|
+
},
|
|
19834
|
+
redirectOptions: {
|
|
19835
|
+
target: "Test string",
|
|
19836
|
+
type: "Test string",
|
|
19837
|
+
},
|
|
19838
|
+
redirectTarget: "Test string",
|
|
19839
|
+
ruleManagedProtectionTier: "Test string",
|
|
19840
|
+
ruleNumber: "Test string",
|
|
19841
|
+
ruleTupleCount: 42,
|
|
19842
|
+
targetResources: [
|
|
19843
|
+
"Test string"
|
|
19844
|
+
],
|
|
19845
|
+
targetServiceAccounts: [
|
|
19846
|
+
"Test string"
|
|
19847
|
+
],
|
|
19848
|
+
});
|
|
19716
19849
|
/** Deletes the specified policy. */
|
|
19717
19850
|
await gapi.client.compute.regionSecurityPolicies.delete({
|
|
19718
19851
|
project: "Test string",
|
|
@@ -19726,6 +19859,13 @@ gapi.load('client', async () => {
|
|
|
19726
19859
|
region: "Test string",
|
|
19727
19860
|
securityPolicy: "Test string",
|
|
19728
19861
|
});
|
|
19862
|
+
/** Gets a rule at the specified priority. */
|
|
19863
|
+
await gapi.client.compute.regionSecurityPolicies.getRule({
|
|
19864
|
+
priority: 42,
|
|
19865
|
+
project: "Test string",
|
|
19866
|
+
region: "Test string",
|
|
19867
|
+
securityPolicy: "Test string",
|
|
19868
|
+
});
|
|
19729
19869
|
/** Creates a new policy in the specified project using the data included in the request. */
|
|
19730
19870
|
await gapi.client.compute.regionSecurityPolicies.insert({
|
|
19731
19871
|
project: "Test string",
|
|
@@ -20110,6 +20250,141 @@ gapi.load('client', async () => {
|
|
|
20110
20250
|
selfLinkWithId: "Test string",
|
|
20111
20251
|
type: "Test string",
|
|
20112
20252
|
});
|
|
20253
|
+
/** Patches a rule at the specified priority. */
|
|
20254
|
+
await gapi.client.compute.regionSecurityPolicies.patchRule({
|
|
20255
|
+
priority: 42,
|
|
20256
|
+
project: "Test string",
|
|
20257
|
+
region: "Test string",
|
|
20258
|
+
securityPolicy: "Test string",
|
|
20259
|
+
validateOnly: true,
|
|
20260
|
+
}, {
|
|
20261
|
+
action: "Test string",
|
|
20262
|
+
description: "Test string",
|
|
20263
|
+
direction: "Test string",
|
|
20264
|
+
enableLogging: true,
|
|
20265
|
+
headerAction: {
|
|
20266
|
+
requestHeadersToAdds: [
|
|
20267
|
+
{
|
|
20268
|
+
headerName: "Test string",
|
|
20269
|
+
headerValue: "Test string",
|
|
20270
|
+
}
|
|
20271
|
+
],
|
|
20272
|
+
},
|
|
20273
|
+
kind: "Test string",
|
|
20274
|
+
match: {
|
|
20275
|
+
config: {
|
|
20276
|
+
destIpRanges: [
|
|
20277
|
+
"Test string"
|
|
20278
|
+
],
|
|
20279
|
+
destPorts: [
|
|
20280
|
+
{
|
|
20281
|
+
ipProtocol: "Test string",
|
|
20282
|
+
ports: [
|
|
20283
|
+
"Test string"
|
|
20284
|
+
],
|
|
20285
|
+
}
|
|
20286
|
+
],
|
|
20287
|
+
layer4Configs: [
|
|
20288
|
+
{
|
|
20289
|
+
ipProtocol: "Test string",
|
|
20290
|
+
ports: [
|
|
20291
|
+
"Test string"
|
|
20292
|
+
],
|
|
20293
|
+
}
|
|
20294
|
+
],
|
|
20295
|
+
srcIpRanges: [
|
|
20296
|
+
"Test string"
|
|
20297
|
+
],
|
|
20298
|
+
},
|
|
20299
|
+
expr: {
|
|
20300
|
+
description: "Test string",
|
|
20301
|
+
expression: "Test string",
|
|
20302
|
+
location: "Test string",
|
|
20303
|
+
title: "Test string",
|
|
20304
|
+
},
|
|
20305
|
+
versionedExpr: "Test string",
|
|
20306
|
+
},
|
|
20307
|
+
preconfiguredWafConfig: {
|
|
20308
|
+
exclusions: [
|
|
20309
|
+
{
|
|
20310
|
+
requestCookiesToExclude: [
|
|
20311
|
+
{
|
|
20312
|
+
op: "Test string",
|
|
20313
|
+
val: "Test string",
|
|
20314
|
+
}
|
|
20315
|
+
],
|
|
20316
|
+
requestHeadersToExclude: [
|
|
20317
|
+
{
|
|
20318
|
+
op: "Test string",
|
|
20319
|
+
val: "Test string",
|
|
20320
|
+
}
|
|
20321
|
+
],
|
|
20322
|
+
requestQueryParamsToExclude: [
|
|
20323
|
+
{
|
|
20324
|
+
op: "Test string",
|
|
20325
|
+
val: "Test string",
|
|
20326
|
+
}
|
|
20327
|
+
],
|
|
20328
|
+
requestUrisToExclude: [
|
|
20329
|
+
{
|
|
20330
|
+
op: "Test string",
|
|
20331
|
+
val: "Test string",
|
|
20332
|
+
}
|
|
20333
|
+
],
|
|
20334
|
+
targetRuleIds: [
|
|
20335
|
+
"Test string"
|
|
20336
|
+
],
|
|
20337
|
+
targetRuleSet: "Test string",
|
|
20338
|
+
}
|
|
20339
|
+
],
|
|
20340
|
+
},
|
|
20341
|
+
preview: true,
|
|
20342
|
+
priority: 42,
|
|
20343
|
+
rateLimitOptions: {
|
|
20344
|
+
banDurationSec: 42,
|
|
20345
|
+
banThreshold: {
|
|
20346
|
+
count: 42,
|
|
20347
|
+
intervalSec: 42,
|
|
20348
|
+
},
|
|
20349
|
+
conformAction: "Test string",
|
|
20350
|
+
enforceOnKey: "Test string",
|
|
20351
|
+
enforceOnKeyName: "Test string",
|
|
20352
|
+
exceedAction: "Test string",
|
|
20353
|
+
exceedActionRpcStatus: {
|
|
20354
|
+
code: 42,
|
|
20355
|
+
message: "Test string",
|
|
20356
|
+
},
|
|
20357
|
+
exceedRedirectOptions: {
|
|
20358
|
+
target: "Test string",
|
|
20359
|
+
type: "Test string",
|
|
20360
|
+
},
|
|
20361
|
+
rateLimitThreshold: {
|
|
20362
|
+
count: 42,
|
|
20363
|
+
intervalSec: 42,
|
|
20364
|
+
},
|
|
20365
|
+
},
|
|
20366
|
+
redirectOptions: {
|
|
20367
|
+
target: "Test string",
|
|
20368
|
+
type: "Test string",
|
|
20369
|
+
},
|
|
20370
|
+
redirectTarget: "Test string",
|
|
20371
|
+
ruleManagedProtectionTier: "Test string",
|
|
20372
|
+
ruleNumber: "Test string",
|
|
20373
|
+
ruleTupleCount: 42,
|
|
20374
|
+
targetResources: [
|
|
20375
|
+
"Test string"
|
|
20376
|
+
],
|
|
20377
|
+
targetServiceAccounts: [
|
|
20378
|
+
"Test string"
|
|
20379
|
+
],
|
|
20380
|
+
});
|
|
20381
|
+
/** Deletes a rule at the specified priority. */
|
|
20382
|
+
await gapi.client.compute.regionSecurityPolicies.removeRule({
|
|
20383
|
+
priority: 42,
|
|
20384
|
+
project: "Test string",
|
|
20385
|
+
region: "Test string",
|
|
20386
|
+
securityPolicy: "Test string",
|
|
20387
|
+
});
|
|
20113
20388
|
/** Deletes the specified SslCertificate resource in the region. */
|
|
20114
20389
|
await gapi.client.compute.regionSslCertificates.delete({
|
|
20115
20390
|
project: "Test string",
|