Skip to content

Commit

Permalink
fix(gkehub): update the API
Browse files Browse the repository at this point in the history
#### gkehub:v1alpha

The following keys were changed:
- schemas.CloudAuditLoggingFeatureSpec.description
- schemas.ConfigManagementMembershipSpec.description
- schemas.ConfigManagementMembershipState.description
- schemas.MeteringMembershipState.description
- schemas.MultiClusterIngressFeatureSpec.description
- schemas.ServiceMeshFeatureState.description
- schemas.ServiceMeshMembershipState.description

#### gkehub:v1alpha2

The following keys were changed:
- resources.projects.resources.locations.resources.memberships.methods.create.description
- resources.projects.resources.locations.resources.memberships.methods.delete.description
- resources.projects.resources.locations.resources.memberships.methods.generateConnectManifest.description

#### gkehub:v1beta

The following keys were changed:
- schemas.ConfigManagementMembershipSpec.description
- schemas.ConfigManagementMembershipState.description
- schemas.MeteringMembershipState.description
- schemas.MultiClusterIngressFeatureSpec.description

#### gkehub:v1beta1

The following keys were changed:
- resources.projects.resources.locations.resources.memberships.methods.create.description
- resources.projects.resources.locations.resources.memberships.methods.delete.description
- resources.projects.resources.locations.resources.memberships.methods.generateConnectManifest.description

#### gkehub:v1

The following keys were changed:
- resources.projects.resources.locations.resources.memberships.methods.create.description
- resources.projects.resources.locations.resources.memberships.methods.delete.description
- resources.projects.resources.locations.resources.memberships.methods.generateConnectManifest.description
  • Loading branch information
yoshi-automation authored and sofisl committed May 21, 2021
1 parent 841467a commit b8b4603
Show file tree
Hide file tree
Showing 10 changed files with 107 additions and 92 deletions.
8 changes: 4 additions & 4 deletions discovery/gkehub-v1.json
Expand Up @@ -180,7 +180,7 @@
"memberships": {
"methods": {
"create": {
"description": "Adds a new Membership.",
"description": "Creates a new Membership. **This is currently only supported for GKE clusters on Google Cloud**. To register other clusters, follow the instructions at https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/memberships",
"httpMethod": "POST",
"id": "gkehub.projects.locations.memberships.create",
Expand Down Expand Up @@ -218,7 +218,7 @@
]
},
"delete": {
"description": "Removes a Membership.",
"description": "Removes a Membership. **This is currently only supported for GKE clusters on Google Cloud**. To unregister other clusters, follow the instructions at https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/memberships/{membershipsId}",
"httpMethod": "DELETE",
"id": "gkehub.projects.locations.memberships.delete",
Expand Down Expand Up @@ -248,7 +248,7 @@
]
},
"generateConnectManifest": {
"description": "Generates the manifest for deployment of the GKE connect agent.",
"description": "Generates the manifest for deployment of the GKE connect agent. **This method is used internally by Google-provided libraries.** Most clients should not need to call this method directly.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/memberships/{membershipsId}:generateConnectManifest",
"httpMethod": "GET",
"id": "gkehub.projects.locations.memberships.generateConnectManifest",
Expand Down Expand Up @@ -631,7 +631,7 @@
}
}
},
"revision": "20210409",
"revision": "20210507",
"rootUrl": "https://gkehub.googleapis.com/",
"schemas": {
"AuditConfig": {
Expand Down
16 changes: 8 additions & 8 deletions discovery/gkehub-v1alpha.json
Expand Up @@ -670,7 +670,7 @@
}
}
},
"revision": "20210423",
"revision": "20210512",
"rootUrl": "https://gkehub.googleapis.com/",
"schemas": {
"AuditConfig": {
Expand Down Expand Up @@ -750,7 +750,7 @@
"type": "object"
},
"CloudAuditLoggingFeatureSpec": {
"description": "Spec for Audit Logging Allowlisting.",
"description": "**Cloud Audit Logging**: Spec for Audit Logging Allowlisting.",
"id": "CloudAuditLoggingFeatureSpec",
"properties": {
"allowlistedServiceAccounts": {
Expand Down Expand Up @@ -1232,7 +1232,7 @@
"type": "object"
},
"ConfigManagementMembershipSpec": {
"description": "Configuration for a single cluster. Intended to parallel the ConfigManagement CR.",
"description": "**Anthos Config Management**: Configuration for a single cluster. Intended to parallel the ConfigManagement CR.",
"id": "ConfigManagementMembershipSpec",
"properties": {
"binauthz": {
Expand All @@ -1259,7 +1259,7 @@
"type": "object"
},
"ConfigManagementMembershipState": {
"description": "State for Anthos Config Management",
"description": "**Anthos Config Management**: State for a single cluster.",
"id": "ConfigManagementMembershipState",
"properties": {
"binauthzState": {
Expand Down Expand Up @@ -1773,7 +1773,7 @@
"type": "object"
},
"MeteringMembershipState": {
"description": "Metering per-Membership Feature State.",
"description": "**Metering**: Per-Membership Feature State.",
"id": "MeteringMembershipState",
"properties": {
"lastMeasurementTime": {
Expand All @@ -1790,7 +1790,7 @@
"type": "object"
},
"MultiClusterIngressFeatureSpec": {
"description": "FeatureSpec contains the input for the MultiClusterIngress feature.",
"description": "**Multi-cluster Ingress**: The configuration for the MultiClusterIngress feature.",
"id": "MultiClusterIngressFeatureSpec",
"properties": {
"billing": {
Expand Down Expand Up @@ -1986,7 +1986,7 @@
"type": "object"
},
"ServiceMeshFeatureState": {
"description": "FeatureState describes the state of the Service Mesh Hub Feature as analyzed by the Service Mesh Hub Controller, for the whole Hub.",
"description": "**Service Mesh**: State for the whole Hub, as analyzed by the Service Mesh Hub Controller.",
"id": "ServiceMeshFeatureState",
"properties": {
"analysisMessages": {
Expand All @@ -2001,7 +2001,7 @@
"type": "object"
},
"ServiceMeshMembershipState": {
"description": "MembershipState describes the state of the Service Mesh Hub Feature as analyzed by the Service Mesh Hub Controller, for single Membership.",
"description": "**Service Mesh**: State for a single Membership, as analyzed by the Service Mesh Hub Controller.",
"id": "ServiceMeshMembershipState",
"properties": {
"analysisMessages": {
Expand Down
8 changes: 4 additions & 4 deletions discovery/gkehub-v1alpha2.json
Expand Up @@ -216,7 +216,7 @@
"memberships": {
"methods": {
"create": {
"description": "Adds a new Membership.",
"description": "Creates a new Membership. **This is currently only supported for GKE clusters on Google Cloud**. To register other clusters, follow the instructions at https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.",
"flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/memberships",
"httpMethod": "POST",
"id": "gkehub.projects.locations.memberships.create",
Expand Down Expand Up @@ -249,7 +249,7 @@
]
},
"delete": {
"description": "Removes a Membership.",
"description": "Removes a Membership. **This is currently only supported for GKE clusters on Google Cloud**. To unregister other clusters, follow the instructions at https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.",
"flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/memberships/{membershipsId}",
"httpMethod": "DELETE",
"id": "gkehub.projects.locations.memberships.delete",
Expand All @@ -274,7 +274,7 @@
]
},
"generateConnectManifest": {
"description": "Generates the manifest for deployment of the GKE connect agent.",
"description": "Generates the manifest for deployment of the GKE connect agent. **This method is used internally by Google-provided libraries.** Most clients should not need to call this method directly.",
"flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/memberships/{membershipsId}:generateConnectManifest",
"httpMethod": "GET",
"id": "gkehub.projects.locations.memberships.generateConnectManifest",
Expand Down Expand Up @@ -652,7 +652,7 @@
}
}
},
"revision": "20210409",
"revision": "20210507",
"rootUrl": "https://gkehub.googleapis.com/",
"schemas": {
"AuditConfig": {
Expand Down
10 changes: 5 additions & 5 deletions discovery/gkehub-v1beta.json
Expand Up @@ -670,7 +670,7 @@
}
}
},
"revision": "20210423",
"revision": "20210512",
"rootUrl": "https://gkehub.googleapis.com/",
"schemas": {
"AuditConfig": {
Expand Down Expand Up @@ -1210,7 +1210,7 @@
"type": "object"
},
"ConfigManagementMembershipSpec": {
"description": "Configuration for a single cluster. Intended to parallel the ConfigManagement CR.",
"description": "**Anthos Config Management**: Configuration for a single cluster. Intended to parallel the ConfigManagement CR.",
"id": "ConfigManagementMembershipSpec",
"properties": {
"binauthz": {
Expand All @@ -1237,7 +1237,7 @@
"type": "object"
},
"ConfigManagementMembershipState": {
"description": "State for Anthos Config Management",
"description": "**Anthos Config Management**: State for a single cluster.",
"id": "ConfigManagementMembershipState",
"properties": {
"binauthzState": {
Expand Down Expand Up @@ -1747,7 +1747,7 @@
"type": "object"
},
"MeteringMembershipState": {
"description": "Metering per-Membership Feature State.",
"description": "**Metering**: Per-Membership Feature State.",
"id": "MeteringMembershipState",
"properties": {
"lastMeasurementTime": {
Expand All @@ -1764,7 +1764,7 @@
"type": "object"
},
"MultiClusterIngressFeatureSpec": {
"description": "FeatureSpec contains the input for the MultiClusterIngress feature.",
"description": "**Multi-cluster Ingress**: The configuration for the MultiClusterIngress feature.",
"id": "MultiClusterIngressFeatureSpec",
"properties": {
"billing": {
Expand Down
8 changes: 4 additions & 4 deletions discovery/gkehub-v1beta1.json
Expand Up @@ -180,7 +180,7 @@
"memberships": {
"methods": {
"create": {
"description": "Adds a new Membership.",
"description": "Creates a new Membership. **This is currently only supported for GKE clusters on Google Cloud**. To register other clusters, follow the instructions at https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.",
"flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/memberships",
"httpMethod": "POST",
"id": "gkehub.projects.locations.memberships.create",
Expand Down Expand Up @@ -218,7 +218,7 @@
]
},
"delete": {
"description": "Removes a Membership.",
"description": "Removes a Membership. **This is currently only supported for GKE clusters on Google Cloud**. To unregister other clusters, follow the instructions at https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.",
"flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/memberships/{membershipsId}",
"httpMethod": "DELETE",
"id": "gkehub.projects.locations.memberships.delete",
Expand Down Expand Up @@ -248,7 +248,7 @@
]
},
"generateConnectManifest": {
"description": "Generates the manifest for deployment of the GKE connect agent.",
"description": "Generates the manifest for deployment of the GKE connect agent. **This method is used internally by Google-provided libraries.** Most clients should not need to call this method directly.",
"flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/memberships/{membershipsId}:generateConnectManifest",
"httpMethod": "GET",
"id": "gkehub.projects.locations.memberships.generateConnectManifest",
Expand Down Expand Up @@ -706,7 +706,7 @@
}
}
},
"revision": "20210416",
"revision": "20210507",
"rootUrl": "https://gkehub.googleapis.com/",
"schemas": {
"AuditConfig": {
Expand Down
28 changes: 15 additions & 13 deletions src/apis/gkehub/v1.ts
Expand Up @@ -887,7 +887,7 @@ export namespace gkehub_v1 {
}

/**
* Adds a new Membership.
* Creates a new Membership. **This is currently only supported for GKE clusters on Google Cloud**. To register other clusters, follow the instructions at https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
* @example
* ```js
* // Before running the sample:
Expand Down Expand Up @@ -1043,7 +1043,7 @@ export namespace gkehub_v1 {
}

/**
* Removes a Membership.
* Removes a Membership. **This is currently only supported for GKE clusters on Google Cloud**. To unregister other clusters, follow the instructions at https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
* @example
* ```js
* // Before running the sample:
Expand Down Expand Up @@ -1175,7 +1175,7 @@ export namespace gkehub_v1 {
}

/**
* Generates the manifest for deployment of the GKE connect agent.
* Generates the manifest for deployment of the GKE connect agent. **This method is used internally by Google-provided libraries.** Most clients should not need to call this method directly.
* @example
* ```js
* // Before running the sample:
Expand All @@ -1200,15 +1200,14 @@ export namespace gkehub_v1 {
* google.options({auth: authClient});
*
* // Do the magic
* const res = await gkehub.projects.locations.memberships.generateConnectManifest(
* {
* const res =
* await gkehub.projects.locations.memberships.generateConnectManifest({
* // Optional. The image pull secret content for the registry, if not public.
* imagePullSecretContent: 'placeholder-value',
* // Optional. If true, generate the resources for upgrade only. Some resources generated only for installation (e.g. secrets) will be excluded.
* isUpgrade: 'placeholder-value',
* // Required. The Membership resource name the Agent will associate with, in the format `projects/x/locations/x/memberships/x`.
* name:
* 'projects/my-project/locations/my-location/memberships/my-membership',
* name: 'projects/my-project/locations/my-location/memberships/my-membership',
* // Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`. The Connect Agent is authorized automatically when run in the default namespace. Otherwise, explicit authorization must be granted with an additional IAM binding.
* namespace: 'placeholder-value',
* // Optional. URI of a proxy if connectivity from the agent to gkeconnect.googleapis.com requires the use of a proxy. Format must be in the form `http(s)://{proxy_address\}`, depending on the HTTP/HTTPS protocol supported by the proxy. This will direct the connect agent's outbound traffic through a HTTP(S) proxy.
Expand All @@ -1217,8 +1216,7 @@ export namespace gkehub_v1 {
* registry: 'placeholder-value',
* // Optional. The Connect agent version to use. Defaults to the most current version.
* version: 'placeholder-value',
* }
* );
* });
* console.log(res.data);
*
* // Example response
Expand Down Expand Up @@ -1289,7 +1287,8 @@ export namespace gkehub_v1 {

if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Projects$Locations$Memberships$Generateconnectmanifest;
params =
{} as Params$Resource$Projects$Locations$Memberships$Generateconnectmanifest;
options = {};
}

Expand Down Expand Up @@ -1563,7 +1562,8 @@ export namespace gkehub_v1 {

if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Projects$Locations$Memberships$Getiampolicy;
params =
{} as Params$Resource$Projects$Locations$Memberships$Getiampolicy;
options = {};
}

Expand Down Expand Up @@ -2002,7 +2002,8 @@ export namespace gkehub_v1 {

if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Projects$Locations$Memberships$Setiampolicy;
params =
{} as Params$Resource$Projects$Locations$Memberships$Setiampolicy;
options = {};
}

Expand Down Expand Up @@ -2147,7 +2148,8 @@ export namespace gkehub_v1 {

if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Projects$Locations$Memberships$Testiampermissions;
params =
{} as Params$Resource$Projects$Locations$Memberships$Testiampermissions;
options = {};
}

Expand Down

0 comments on commit b8b4603

Please sign in to comment.