@maxim_mazurok/gapi.client.gkehub-v1alpha 0.0.20230224 → 0.0.20230316
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 +19 -12
- package/package.json +1 -1
- package/tests.ts +36 -7
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://gkehub.googleapis.com/$discovery/rest?version=v1alpha
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230316
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -1015,9 +1015,9 @@ declare namespace gapi.client {
|
|
|
1015
1015
|
version?: number;
|
|
1016
1016
|
}
|
|
1017
1017
|
interface PolicyControllerBundleInstallSpec {
|
|
1018
|
-
/** the set of namespaces to be exempted from the bundle */
|
|
1018
|
+
/** the set of namespaces to be exempted from the bundle TODO (b/271878194): Decrement this */
|
|
1019
1019
|
exemptedNamespaces?: string[];
|
|
1020
|
-
/** Management specifies how the bundle will be managed by the controller. */
|
|
1020
|
+
/** Management specifies how the bundle will be managed by the controller. TODO (b/271878194): Remove this */
|
|
1021
1021
|
management?: string;
|
|
1022
1022
|
}
|
|
1023
1023
|
interface PolicyControllerHubConfig {
|
|
@@ -1044,7 +1044,7 @@ declare namespace gapi.client {
|
|
|
1044
1044
|
policyContent?: PolicyControllerPolicyContentSpec;
|
|
1045
1045
|
/** Enables the ability to use Constraint Templates that reference to objects other than the object currently being evaluated. */
|
|
1046
1046
|
referentialRulesEnabled?: boolean;
|
|
1047
|
-
/** Configures the library templates to install along with Policy Controller. */
|
|
1047
|
+
/** Configures the library templates to install along with Policy Controller. TODO (b/271878194): Remove this */
|
|
1048
1048
|
templateLibraryConfig?: PolicyControllerTemplateLibraryConfig;
|
|
1049
1049
|
}
|
|
1050
1050
|
interface PolicyControllerMembershipSpec {
|
|
@@ -1056,8 +1056,10 @@ declare namespace gapi.client {
|
|
|
1056
1056
|
interface PolicyControllerMembershipState {
|
|
1057
1057
|
/** Currently these include (also serving as map keys): 1. "admission" 2. "audit" 3. "mutation" */
|
|
1058
1058
|
componentStates?: { [P in string]: PolicyControllerOnClusterState };
|
|
1059
|
-
/** The state of the template library and any bundles included in the chosen version of the manifest */
|
|
1059
|
+
/** The state of the template library and any bundles included in the chosen version of the manifest TODO (b/271878194): Remove this */
|
|
1060
1060
|
contentStates?: { [P in string]: PolicyControllerOnClusterState };
|
|
1061
|
+
/** The overall content state observed by the Hub Feature controller. TODO (b/271878194): Decrement this */
|
|
1062
|
+
policyContentState?: PolicyControllerPolicyContentState;
|
|
1061
1063
|
/** The overall Policy Controller lifecycle state observed by the Hub Feature controller. */
|
|
1062
1064
|
state?: string;
|
|
1063
1065
|
}
|
|
@@ -1074,6 +1076,14 @@ declare namespace gapi.client {
|
|
|
1074
1076
|
interface PolicyControllerPolicyContentSpec {
|
|
1075
1077
|
/** map of bundle name to BundleInstallSpec. The bundle name maps to the `bundleName` key in the `policycontroller.gke.io/constraintData` annotation on a constraint. */
|
|
1076
1078
|
bundles?: { [P in string]: PolicyControllerBundleInstallSpec };
|
|
1079
|
+
/** Configures the installation of the Template Library. */
|
|
1080
|
+
templateLibrary?: PolicyControllerTemplateLibraryConfig;
|
|
1081
|
+
}
|
|
1082
|
+
interface PolicyControllerPolicyContentState {
|
|
1083
|
+
/** The state of the any bundles included in the chosen version of the manifest */
|
|
1084
|
+
bundleStates?: { [P in string]: PolicyControllerOnClusterState };
|
|
1085
|
+
/** The state of the template library */
|
|
1086
|
+
templateLibraryState?: PolicyControllerOnClusterState;
|
|
1077
1087
|
}
|
|
1078
1088
|
interface PolicyControllerPolicyControllerDeploymentConfig {
|
|
1079
1089
|
/** Container resource requirements. */
|
|
@@ -1098,8 +1108,10 @@ declare namespace gapi.client {
|
|
|
1098
1108
|
requests?: PolicyControllerResourceList;
|
|
1099
1109
|
}
|
|
1100
1110
|
interface PolicyControllerTemplateLibraryConfig {
|
|
1101
|
-
/** Whether the standard template library should be installed or not. */
|
|
1111
|
+
/** Whether the standard template library should be installed or not. TODO (b/271878194): Remove this */
|
|
1102
1112
|
included?: boolean;
|
|
1113
|
+
/** Configures the manner in which the template library is installed on the cluster. TODO (b/271878194): Decrement this */
|
|
1114
|
+
installation?: string;
|
|
1103
1115
|
}
|
|
1104
1116
|
interface PolicyControllerToleration {
|
|
1105
1117
|
/** Matches a taint effect. */
|
|
@@ -3228,12 +3240,7 @@ declare namespace gapi.client {
|
|
|
3228
3240
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3229
3241
|
uploadType?: string;
|
|
3230
3242
|
}): Request<Operation>;
|
|
3231
|
-
/**
|
|
3232
|
-
* Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services
|
|
3233
|
-
* to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as
|
|
3234
|
-
* `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
|
|
3235
|
-
* ensure the name binding is the parent resource, without the operations collection id.
|
|
3236
|
-
*/
|
|
3243
|
+
/** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
|
|
3237
3244
|
list(request?: {
|
|
3238
3245
|
/** V1 error format. */
|
|
3239
3246
|
"$.xgafv"?: string;
|
package/package.json
CHANGED
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: 20230316
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -244,10 +244,15 @@ gapi.load('client', async () => {
|
|
|
244
244
|
management: "Test string",
|
|
245
245
|
}
|
|
246
246
|
},
|
|
247
|
+
templateLibrary: {
|
|
248
|
+
included: true,
|
|
249
|
+
installation: "Test string",
|
|
250
|
+
},
|
|
247
251
|
},
|
|
248
252
|
referentialRulesEnabled: true,
|
|
249
253
|
templateLibraryConfig: {
|
|
250
254
|
included: true,
|
|
255
|
+
installation: "Test string",
|
|
251
256
|
},
|
|
252
257
|
},
|
|
253
258
|
version: "Test string",
|
|
@@ -460,6 +465,18 @@ gapi.load('client', async () => {
|
|
|
460
465
|
state: "Test string",
|
|
461
466
|
}
|
|
462
467
|
},
|
|
468
|
+
policyContentState: {
|
|
469
|
+
bundleStates: {
|
|
470
|
+
A: {
|
|
471
|
+
details: "Test string",
|
|
472
|
+
state: "Test string",
|
|
473
|
+
}
|
|
474
|
+
},
|
|
475
|
+
templateLibraryState: {
|
|
476
|
+
details: "Test string",
|
|
477
|
+
state: "Test string",
|
|
478
|
+
},
|
|
479
|
+
},
|
|
463
480
|
state: "Test string",
|
|
464
481
|
},
|
|
465
482
|
servicemesh: {
|
|
@@ -813,10 +830,15 @@ gapi.load('client', async () => {
|
|
|
813
830
|
management: "Test string",
|
|
814
831
|
}
|
|
815
832
|
},
|
|
833
|
+
templateLibrary: {
|
|
834
|
+
included: true,
|
|
835
|
+
installation: "Test string",
|
|
836
|
+
},
|
|
816
837
|
},
|
|
817
838
|
referentialRulesEnabled: true,
|
|
818
839
|
templateLibraryConfig: {
|
|
819
840
|
included: true,
|
|
841
|
+
installation: "Test string",
|
|
820
842
|
},
|
|
821
843
|
},
|
|
822
844
|
version: "Test string",
|
|
@@ -1029,6 +1051,18 @@ gapi.load('client', async () => {
|
|
|
1029
1051
|
state: "Test string",
|
|
1030
1052
|
}
|
|
1031
1053
|
},
|
|
1054
|
+
policyContentState: {
|
|
1055
|
+
bundleStates: {
|
|
1056
|
+
A: {
|
|
1057
|
+
details: "Test string",
|
|
1058
|
+
state: "Test string",
|
|
1059
|
+
}
|
|
1060
|
+
},
|
|
1061
|
+
templateLibraryState: {
|
|
1062
|
+
details: "Test string",
|
|
1063
|
+
state: "Test string",
|
|
1064
|
+
},
|
|
1065
|
+
},
|
|
1032
1066
|
state: "Test string",
|
|
1033
1067
|
},
|
|
1034
1068
|
servicemesh: {
|
|
@@ -1751,12 +1785,7 @@ gapi.load('client', async () => {
|
|
|
1751
1785
|
await gapi.client.gkehub.projects.locations.operations.get({
|
|
1752
1786
|
name: "Test string",
|
|
1753
1787
|
});
|
|
1754
|
-
/**
|
|
1755
|
-
* Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to
|
|
1756
|
-
* override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as
|
|
1757
|
-
* `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
|
|
1758
|
-
* ensure the name binding is the parent resource, without the operations collection id.
|
|
1759
|
-
*/
|
|
1788
|
+
/** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
|
|
1760
1789
|
await gapi.client.gkehub.projects.locations.operations.list({
|
|
1761
1790
|
filter: "Test string",
|
|
1762
1791
|
name: "Test string",
|