mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-01-11 22:13:19 +01:00
1067 lines
60 KiB
JSON
1067 lines
60 KiB
JSON
{
|
|
"auth": {
|
|
"oauth2": {
|
|
"scopes": {
|
|
"https://www.googleapis.com/auth/cloud-platform": {
|
|
"description": "See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account."
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"basePath": "",
|
|
"baseUrl": "https://gkehub.googleapis.com/",
|
|
"batchPath": "batch",
|
|
"canonicalName": "GKE Hub",
|
|
"description": "",
|
|
"discoveryVersion": "v1",
|
|
"documentationLink": "https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster",
|
|
"fullyEncodeReservedExpansion": true,
|
|
"icons": {
|
|
"x16": "http://www.google.com/images/icons/product/search-16.gif",
|
|
"x32": "http://www.google.com/images/icons/product/search-32.gif"
|
|
},
|
|
"id": "gkehub:v2alpha",
|
|
"kind": "discovery#restDescription",
|
|
"mtlsRootUrl": "https://gkehub.mtls.googleapis.com/",
|
|
"name": "gkehub",
|
|
"ownerDomain": "google.com",
|
|
"ownerName": "Google",
|
|
"parameters": {
|
|
"$.xgafv": {
|
|
"description": "V1 error format.",
|
|
"enum": [
|
|
"1",
|
|
"2"
|
|
],
|
|
"enumDescriptions": [
|
|
"v1 error format",
|
|
"v2 error format"
|
|
],
|
|
"location": "query",
|
|
"type": "string"
|
|
},
|
|
"access_token": {
|
|
"description": "OAuth access token.",
|
|
"location": "query",
|
|
"type": "string"
|
|
},
|
|
"alt": {
|
|
"default": "json",
|
|
"description": "Data format for response.",
|
|
"enum": [
|
|
"json",
|
|
"media",
|
|
"proto"
|
|
],
|
|
"enumDescriptions": [
|
|
"Responses with Content-Type of application/json",
|
|
"Media download with context-dependent Content-Type",
|
|
"Responses with Content-Type of application/x-protobuf"
|
|
],
|
|
"location": "query",
|
|
"type": "string"
|
|
},
|
|
"callback": {
|
|
"description": "JSONP",
|
|
"location": "query",
|
|
"type": "string"
|
|
},
|
|
"fields": {
|
|
"description": "Selector specifying which fields to include in a partial response.",
|
|
"location": "query",
|
|
"type": "string"
|
|
},
|
|
"key": {
|
|
"description": "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.",
|
|
"location": "query",
|
|
"type": "string"
|
|
},
|
|
"oauth_token": {
|
|
"description": "OAuth 2.0 token for the current user.",
|
|
"location": "query",
|
|
"type": "string"
|
|
},
|
|
"prettyPrint": {
|
|
"default": "true",
|
|
"description": "Returns response with indentations and line breaks.",
|
|
"location": "query",
|
|
"type": "boolean"
|
|
},
|
|
"quotaUser": {
|
|
"description": "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.",
|
|
"location": "query",
|
|
"type": "string"
|
|
},
|
|
"uploadType": {
|
|
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
|
|
"location": "query",
|
|
"type": "string"
|
|
},
|
|
"upload_protocol": {
|
|
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
|
|
"location": "query",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"protocol": "rest",
|
|
"resources": {
|
|
"projects": {
|
|
"resources": {
|
|
"locations": {
|
|
"methods": {
|
|
"get": {
|
|
"description": "Gets information about a location.",
|
|
"flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}",
|
|
"httpMethod": "GET",
|
|
"id": "gkehub.projects.locations.get",
|
|
"parameterOrder": [
|
|
"name"
|
|
],
|
|
"parameters": {
|
|
"name": {
|
|
"description": "Resource name for the location.",
|
|
"location": "path",
|
|
"pattern": "^projects/[^/]+/locations/[^/]+$",
|
|
"required": true,
|
|
"type": "string"
|
|
}
|
|
},
|
|
"path": "v2alpha/{+name}",
|
|
"response": {
|
|
"$ref": "Location"
|
|
},
|
|
"scopes": [
|
|
"https://www.googleapis.com/auth/cloud-platform"
|
|
]
|
|
},
|
|
"list": {
|
|
"description": "Lists information about the supported locations for this service.",
|
|
"flatPath": "v2alpha/projects/{projectsId}/locations",
|
|
"httpMethod": "GET",
|
|
"id": "gkehub.projects.locations.list",
|
|
"parameterOrder": [
|
|
"name"
|
|
],
|
|
"parameters": {
|
|
"filter": {
|
|
"description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like \"displayName=tokyo\", and is documented in more detail in [AIP-160](https://google.aip.dev/160).",
|
|
"location": "query",
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"description": "The resource that owns the locations collection, if applicable.",
|
|
"location": "path",
|
|
"pattern": "^projects/[^/]+$",
|
|
"required": true,
|
|
"type": "string"
|
|
},
|
|
"pageSize": {
|
|
"description": "The maximum number of results to return. If not set, the service selects a default.",
|
|
"format": "int32",
|
|
"location": "query",
|
|
"type": "integer"
|
|
},
|
|
"pageToken": {
|
|
"description": "A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.",
|
|
"location": "query",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"path": "v2alpha/{+name}/locations",
|
|
"response": {
|
|
"$ref": "ListLocationsResponse"
|
|
},
|
|
"scopes": [
|
|
"https://www.googleapis.com/auth/cloud-platform"
|
|
]
|
|
}
|
|
},
|
|
"resources": {
|
|
"featureConfigs": {
|
|
"methods": {
|
|
"create": {
|
|
"description": "Creates FeatureConfig under a given parent.",
|
|
"flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/featureConfigs",
|
|
"httpMethod": "POST",
|
|
"id": "gkehub.projects.locations.featureConfigs.create",
|
|
"parameterOrder": [
|
|
"parent"
|
|
],
|
|
"parameters": {
|
|
"featureConfigId": {
|
|
"description": "The ID of the feature config to create.",
|
|
"location": "query",
|
|
"type": "string"
|
|
},
|
|
"parent": {
|
|
"description": "Required. The name of parent where the FeatureConfig will be created. Specified in the format `projects/{project}/locations/global/featureConfigs/{feature_type}/{feature_config}/`.",
|
|
"location": "path",
|
|
"pattern": "^projects/[^/]+/locations/[^/]+$",
|
|
"required": true,
|
|
"type": "string"
|
|
},
|
|
"requestId": {
|
|
"description": "Idempotent request UUID.",
|
|
"location": "query",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"path": "v2alpha/{+parent}/featureConfigs",
|
|
"request": {
|
|
"$ref": "FeatureConfig"
|
|
},
|
|
"response": {
|
|
"$ref": "Operation"
|
|
},
|
|
"scopes": [
|
|
"https://www.googleapis.com/auth/cloud-platform"
|
|
]
|
|
},
|
|
"delete": {
|
|
"description": "Removes a FeatureConfig.",
|
|
"flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/featureConfigs/{featureConfigsId}",
|
|
"httpMethod": "DELETE",
|
|
"id": "gkehub.projects.locations.featureConfigs.delete",
|
|
"parameterOrder": [
|
|
"name"
|
|
],
|
|
"parameters": {
|
|
"name": {
|
|
"description": "Required. The name of the membershipFeature to be deleted. Specified in the format `projects/*/locations/*/featureConfigs/**`.",
|
|
"location": "path",
|
|
"pattern": "^projects/[^/]+/locations/[^/]+/featureConfigs/.*$",
|
|
"required": true,
|
|
"type": "string"
|
|
},
|
|
"requestId": {
|
|
"description": "Idempotent request UUID.",
|
|
"location": "query",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"path": "v2alpha/{+name}",
|
|
"response": {
|
|
"$ref": "Operation"
|
|
},
|
|
"scopes": [
|
|
"https://www.googleapis.com/auth/cloud-platform"
|
|
]
|
|
},
|
|
"get": {
|
|
"description": "========= FeatureConfig Services ========= Gets details of a featureConfig.",
|
|
"flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/featureConfigs/{featureConfigsId}",
|
|
"httpMethod": "GET",
|
|
"id": "gkehub.projects.locations.featureConfigs.get",
|
|
"parameterOrder": [
|
|
"name"
|
|
],
|
|
"parameters": {
|
|
"name": {
|
|
"description": "Required. The FeatureConfig resource name in the format `projects/*/locations/*/featureConfigs/**`.",
|
|
"location": "path",
|
|
"pattern": "^projects/[^/]+/locations/[^/]+/featureConfigs/.*$",
|
|
"required": true,
|
|
"type": "string"
|
|
}
|
|
},
|
|
"path": "v2alpha/{+name}",
|
|
"response": {
|
|
"$ref": "FeatureConfig"
|
|
},
|
|
"scopes": [
|
|
"https://www.googleapis.com/auth/cloud-platform"
|
|
]
|
|
},
|
|
"list": {
|
|
"description": "Lists all FeatureConfigs in a given project and location.",
|
|
"flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/featureConfigs",
|
|
"httpMethod": "GET",
|
|
"id": "gkehub.projects.locations.featureConfigs.list",
|
|
"parameterOrder": [
|
|
"parent"
|
|
],
|
|
"parameters": {
|
|
"filter": {
|
|
"description": "Lists FeatureConfigs that match the filter expression, following the syntax outlined in https://google.aip.dev/160.",
|
|
"location": "query",
|
|
"type": "string"
|
|
},
|
|
"orderBy": {
|
|
"description": "One or more fields to compare and use to sort the output. See https://google.aip.dev/132#ordering.",
|
|
"location": "query",
|
|
"type": "string"
|
|
},
|
|
"pageSize": {
|
|
"description": "When requesting a 'page' of resources, `page_size` specifies number of resources to return. If unspecified or set to 0, all resources will be returned.",
|
|
"format": "int32",
|
|
"location": "query",
|
|
"type": "integer"
|
|
},
|
|
"pageToken": {
|
|
"description": "Token returned by previous call to `ListFeatures` which specifies the position in the list from where to continue listing the resources.",
|
|
"location": "query",
|
|
"type": "string"
|
|
},
|
|
"parent": {
|
|
"description": "Required. The parent where the FeatureConfigs will be listed. In the format: `projects/*/locations/*`.",
|
|
"location": "path",
|
|
"pattern": "^projects/[^/]+/locations/[^/]+$",
|
|
"required": true,
|
|
"type": "string"
|
|
}
|
|
},
|
|
"path": "v2alpha/{+parent}/featureConfigs",
|
|
"response": {
|
|
"$ref": "ListFeatureConfigsResponse"
|
|
},
|
|
"scopes": [
|
|
"https://www.googleapis.com/auth/cloud-platform"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"memberships": {
|
|
"resources": {
|
|
"features": {
|
|
"methods": {
|
|
"create": {
|
|
"description": "Creates membershipFeature under a given parent.",
|
|
"flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/memberships/{membershipsId}/features",
|
|
"httpMethod": "POST",
|
|
"id": "gkehub.projects.locations.memberships.features.create",
|
|
"parameterOrder": [
|
|
"parent"
|
|
],
|
|
"parameters": {
|
|
"parent": {
|
|
"description": "Required. The name of parent where the MembershipFeature will be created. Specified in the format `projects/*/locations/*/memberships/*/features/*`.",
|
|
"location": "path",
|
|
"pattern": "^projects/[^/]+/locations/[^/]+/memberships/[^/]+$",
|
|
"required": true,
|
|
"type": "string"
|
|
},
|
|
"requestId": {
|
|
"description": "Idempotent request UUID.",
|
|
"location": "query",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"path": "v2alpha/{+parent}/features",
|
|
"request": {
|
|
"$ref": "MembershipFeature"
|
|
},
|
|
"response": {
|
|
"$ref": "Operation"
|
|
},
|
|
"scopes": [
|
|
"https://www.googleapis.com/auth/cloud-platform"
|
|
]
|
|
},
|
|
"delete": {
|
|
"description": "Removes a membershipFeature.",
|
|
"flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/memberships/{membershipsId}/features/{featuresId}",
|
|
"httpMethod": "DELETE",
|
|
"id": "gkehub.projects.locations.memberships.features.delete",
|
|
"parameterOrder": [
|
|
"name"
|
|
],
|
|
"parameters": {
|
|
"name": {
|
|
"description": "Required. The name of the membershipFeature to be deleted. Specified in the format `projects/*/locations/*/memberships/*/features/*`.",
|
|
"location": "path",
|
|
"pattern": "^projects/[^/]+/locations/[^/]+/memberships/[^/]+/features/[^/]+$",
|
|
"required": true,
|
|
"type": "string"
|
|
},
|
|
"requestId": {
|
|
"description": "Idempotent request UUID.",
|
|
"location": "query",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"path": "v2alpha/{+name}",
|
|
"response": {
|
|
"$ref": "Operation"
|
|
},
|
|
"scopes": [
|
|
"https://www.googleapis.com/auth/cloud-platform"
|
|
]
|
|
},
|
|
"get": {
|
|
"description": "========= MembershipFeature Services ========= Gets details of a membershipFeature.",
|
|
"flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/memberships/{membershipsId}/features/{featuresId}",
|
|
"httpMethod": "GET",
|
|
"id": "gkehub.projects.locations.memberships.features.get",
|
|
"parameterOrder": [
|
|
"name"
|
|
],
|
|
"parameters": {
|
|
"name": {
|
|
"description": "Required. The MembershipFeature resource name in the format `projects/*/locations/*/memberships/*/features/*`.",
|
|
"location": "path",
|
|
"pattern": "^projects/[^/]+/locations/[^/]+/memberships/[^/]+/features/[^/]+$",
|
|
"required": true,
|
|
"type": "string"
|
|
}
|
|
},
|
|
"path": "v2alpha/{+name}",
|
|
"response": {
|
|
"$ref": "MembershipFeature"
|
|
},
|
|
"scopes": [
|
|
"https://www.googleapis.com/auth/cloud-platform"
|
|
]
|
|
},
|
|
"list": {
|
|
"description": "Lists MembershipFeatures in a given project and location.",
|
|
"flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/memberships/{membershipsId}/features",
|
|
"httpMethod": "GET",
|
|
"id": "gkehub.projects.locations.memberships.features.list",
|
|
"parameterOrder": [
|
|
"parent"
|
|
],
|
|
"parameters": {
|
|
"filter": {
|
|
"description": "Lists MembershipFeatures that match the filter expression, following the syntax outlined in https://google.aip.dev/160. Examples: - Feature with the name \"helloworld\" in project \"foo-proj\" and membership \"member-bar\": name = \"projects/foo-proj/locations/global/memberships/member-bar/features/helloworld\" - Features that have a label called `foo`: labels.foo:* - Features that have a label called `foo` whose value is `bar`: labels.foo = bar",
|
|
"location": "query",
|
|
"type": "string"
|
|
},
|
|
"orderBy": {
|
|
"description": "One or more fields to compare and use to sort the output. See https://google.aip.dev/132#ordering.",
|
|
"location": "query",
|
|
"type": "string"
|
|
},
|
|
"pageSize": {
|
|
"description": "When requesting a 'page' of resources, `page_size` specifies number of resources to return. If unspecified or set to 0, all resources will be returned.",
|
|
"format": "int32",
|
|
"location": "query",
|
|
"type": "integer"
|
|
},
|
|
"pageToken": {
|
|
"description": "Token returned by previous call to `ListFeatures` which specifies the position in the list from where to continue listing the resources.",
|
|
"location": "query",
|
|
"type": "string"
|
|
},
|
|
"parent": {
|
|
"description": "Required. The parent where the MembershipFeature will be listed. In the format: `projects/*/locations/*/memberships/*`.",
|
|
"location": "path",
|
|
"pattern": "^projects/[^/]+/locations/[^/]+/memberships/[^/]+$",
|
|
"required": true,
|
|
"type": "string"
|
|
}
|
|
},
|
|
"path": "v2alpha/{+parent}/features",
|
|
"response": {
|
|
"$ref": "ListMembershipFeaturesResponse"
|
|
},
|
|
"scopes": [
|
|
"https://www.googleapis.com/auth/cloud-platform"
|
|
]
|
|
},
|
|
"patch": {
|
|
"description": "Updates an existing MembershipFeature.",
|
|
"flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/memberships/{membershipsId}/features/{featuresId}",
|
|
"httpMethod": "PATCH",
|
|
"id": "gkehub.projects.locations.memberships.features.patch",
|
|
"parameterOrder": [
|
|
"name"
|
|
],
|
|
"parameters": {
|
|
"name": {
|
|
"description": "Output only. The resource name of the membershipFeature, in the format: `projects/{project}/locations/{location}/memberships/{membership}/features/{feature}`. Note that `membershipFeatures` is shortened to `features` in the resource name. (see http://go/aip/122#collection-identifiers)",
|
|
"location": "path",
|
|
"pattern": "^projects/[^/]+/locations/[^/]+/memberships/[^/]+/features/[^/]+$",
|
|
"required": true,
|
|
"type": "string"
|
|
},
|
|
"requestId": {
|
|
"description": "Idempotent request UUID.",
|
|
"location": "query",
|
|
"type": "string"
|
|
},
|
|
"updateMask": {
|
|
"description": "Required. Mask of fields to update.",
|
|
"format": "google-fieldmask",
|
|
"location": "query",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"path": "v2alpha/{+name}",
|
|
"request": {
|
|
"$ref": "MembershipFeature"
|
|
},
|
|
"response": {
|
|
"$ref": "Operation"
|
|
},
|
|
"scopes": [
|
|
"https://www.googleapis.com/auth/cloud-platform"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"operations": {
|
|
"methods": {
|
|
"cancel": {
|
|
"description": "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 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 completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.",
|
|
"flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel",
|
|
"httpMethod": "POST",
|
|
"id": "gkehub.projects.locations.operations.cancel",
|
|
"parameterOrder": [
|
|
"name"
|
|
],
|
|
"parameters": {
|
|
"name": {
|
|
"description": "The name of the operation resource to be cancelled.",
|
|
"location": "path",
|
|
"pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$",
|
|
"required": true,
|
|
"type": "string"
|
|
}
|
|
},
|
|
"path": "v2alpha/{+name}:cancel",
|
|
"request": {
|
|
"$ref": "CancelOperationRequest"
|
|
},
|
|
"response": {
|
|
"$ref": "Empty"
|
|
},
|
|
"scopes": [
|
|
"https://www.googleapis.com/auth/cloud-platform"
|
|
]
|
|
},
|
|
"get": {
|
|
"description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.",
|
|
"flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}",
|
|
"httpMethod": "GET",
|
|
"id": "gkehub.projects.locations.operations.get",
|
|
"parameterOrder": [
|
|
"name"
|
|
],
|
|
"parameters": {
|
|
"name": {
|
|
"description": "The name of the operation resource.",
|
|
"location": "path",
|
|
"pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$",
|
|
"required": true,
|
|
"type": "string"
|
|
}
|
|
},
|
|
"path": "v2alpha/{+name}",
|
|
"response": {
|
|
"$ref": "Operation"
|
|
},
|
|
"scopes": [
|
|
"https://www.googleapis.com/auth/cloud-platform"
|
|
]
|
|
},
|
|
"list": {
|
|
"description": "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 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 `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.",
|
|
"flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/operations",
|
|
"httpMethod": "GET",
|
|
"id": "gkehub.projects.locations.operations.list",
|
|
"parameterOrder": [
|
|
"name"
|
|
],
|
|
"parameters": {
|
|
"filter": {
|
|
"description": "The standard list filter.",
|
|
"location": "query",
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"description": "The name of the operation's parent resource.",
|
|
"location": "path",
|
|
"pattern": "^projects/[^/]+/locations/[^/]+$",
|
|
"required": true,
|
|
"type": "string"
|
|
},
|
|
"pageSize": {
|
|
"description": "The standard list page size.",
|
|
"format": "int32",
|
|
"location": "query",
|
|
"type": "integer"
|
|
},
|
|
"pageToken": {
|
|
"description": "The standard list page token.",
|
|
"location": "query",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"path": "v2alpha/{+name}/operations",
|
|
"response": {
|
|
"$ref": "ListOperationsResponse"
|
|
},
|
|
"scopes": [
|
|
"https://www.googleapis.com/auth/cloud-platform"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"revision": "20220211",
|
|
"rootUrl": "https://gkehub.googleapis.com/",
|
|
"schemas": {
|
|
"CancelOperationRequest": {
|
|
"description": "The request message for Operations.CancelOperation.",
|
|
"id": "CancelOperationRequest",
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"Empty": {
|
|
"description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.",
|
|
"id": "Empty",
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"FeatureConfig": {
|
|
"description": "FeatureConfig contains configurations for a Fleet feature. FeatureConfig can be applied to MembershipFeature(s) to setup per-membership FeatureSpec.",
|
|
"id": "FeatureConfig",
|
|
"properties": {
|
|
"createTime": {
|
|
"description": "Output only. When the FeatureConfig resource was created.",
|
|
"format": "google-datetime",
|
|
"readOnly": true,
|
|
"type": "string"
|
|
},
|
|
"deleteTime": {
|
|
"description": "Output only. When the FeatureConfig resource was deleted.",
|
|
"format": "google-datetime",
|
|
"readOnly": true,
|
|
"type": "string"
|
|
},
|
|
"labels": {
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
},
|
|
"description": "GCP labels for this FeatureConfig.",
|
|
"type": "object"
|
|
},
|
|
"name": {
|
|
"description": "Output only. Resource name of this FeatureConfig, in the format: `projects/{project}/locations/global/FeatureConfigs/{feature_type}/{feature_config}`",
|
|
"readOnly": true,
|
|
"type": "string"
|
|
},
|
|
"spec": {
|
|
"$ref": "FeatureSpec",
|
|
"description": "Input only. Immutable. User input of feature spec. Note that this field is immutable. Must create a new FeatureConfig if a new feature spec is needed."
|
|
},
|
|
"state": {
|
|
"$ref": "FeatureConfigState",
|
|
"description": "Lifecycle information of the FeatureConfig."
|
|
},
|
|
"uniqueId": {
|
|
"description": "Output only. Google-generated UUID for this resource. This is unique across all FeatureConfig resources. If a Membership resource is deleted and another resource with the same name is created, it gets a different unique_id.",
|
|
"readOnly": true,
|
|
"type": "string"
|
|
},
|
|
"updateTime": {
|
|
"description": "Output only. When the FeatureConfig resource was last updated.",
|
|
"format": "google-datetime",
|
|
"readOnly": true,
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"FeatureConfigRef": {
|
|
"description": "Information of the FeatureConfig applied on the MembershipFeature.",
|
|
"id": "FeatureConfigRef",
|
|
"properties": {
|
|
"config": {
|
|
"description": "Input only. Resource name of FeatureConfig, in the format: `projects/{project}/locations/global/featureConfigs/{feature_config}`.",
|
|
"type": "string"
|
|
},
|
|
"configUpdateTime": {
|
|
"description": "Output only. When the FeatureConfig was last applied and copied to FeatureSpec.",
|
|
"format": "google-datetime",
|
|
"readOnly": true,
|
|
"type": "string"
|
|
},
|
|
"uuid": {
|
|
"description": "Output only. An id that uniquely identify a FeatureConfig object.",
|
|
"readOnly": true,
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"FeatureConfigState": {
|
|
"description": "FeatureConfigState describes the state of a FeatureConfig resource.",
|
|
"id": "FeatureConfigState",
|
|
"properties": {
|
|
"state": {
|
|
"description": "Output only. The current state of the FeatureConfig resource.",
|
|
"enum": [
|
|
"STATE_UNSPECIFIED",
|
|
"CREATING",
|
|
"ACTIVE",
|
|
"DELETING"
|
|
],
|
|
"enumDescriptions": [
|
|
"The code is not set.",
|
|
"The FeatureConfig is being created.",
|
|
"The FeatureConfig has been created.",
|
|
"The FeatureConfig is being deleted."
|
|
],
|
|
"readOnly": true,
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"FeatureSpec": {
|
|
"description": "FeatureSpec contains user input per-feature spec information.",
|
|
"id": "FeatureSpec",
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"FeatureState": {
|
|
"description": "FeatureState contains high-level state information and per-feature state information for this MembershipFeature.",
|
|
"id": "FeatureState",
|
|
"properties": {
|
|
"state": {
|
|
"$ref": "State",
|
|
"description": "The high-level state of this MembershipFeature."
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"GoogleRpcStatus": {
|
|
"description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).",
|
|
"id": "GoogleRpcStatus",
|
|
"properties": {
|
|
"code": {
|
|
"description": "The status code, which should be an enum value of google.rpc.Code.",
|
|
"format": "int32",
|
|
"type": "integer"
|
|
},
|
|
"details": {
|
|
"description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.",
|
|
"items": {
|
|
"additionalProperties": {
|
|
"description": "Properties of the object. Contains field @type with type URL.",
|
|
"type": "any"
|
|
},
|
|
"type": "object"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"message": {
|
|
"description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"ListFeatureConfigsResponse": {
|
|
"description": "Response message for the `GkeHubFeature.ListFeatureConfigs` method.",
|
|
"id": "ListFeatureConfigsResponse",
|
|
"properties": {
|
|
"featureConfigs": {
|
|
"description": "The list of FeatureConfig(s).",
|
|
"items": {
|
|
"$ref": "FeatureConfig"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"nextPageToken": {
|
|
"description": "A token to request the next page of resources from the `ListFeatureConfigs` method. The value of an empty string means that there are no more resources to return.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"ListLocationsResponse": {
|
|
"description": "The response message for Locations.ListLocations.",
|
|
"id": "ListLocationsResponse",
|
|
"properties": {
|
|
"locations": {
|
|
"description": "A list of locations that matches the specified filter in the request.",
|
|
"items": {
|
|
"$ref": "Location"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"nextPageToken": {
|
|
"description": "The standard List next-page token.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"ListMembershipFeaturesResponse": {
|
|
"description": "Response message for the `GkeHubFeature.ListMembershipFeatures` method.",
|
|
"id": "ListMembershipFeaturesResponse",
|
|
"properties": {
|
|
"membershipFeatures": {
|
|
"description": "The list of matching MembershipFeatures.",
|
|
"items": {
|
|
"$ref": "MembershipFeature"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"nextPageToken": {
|
|
"description": "A token to request the next page of resources from the `ListMembershipFeatures` method. The value of an empty string means that there are no more resources to return.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"ListOperationsResponse": {
|
|
"description": "The response message for Operations.ListOperations.",
|
|
"id": "ListOperationsResponse",
|
|
"properties": {
|
|
"nextPageToken": {
|
|
"description": "The standard List next-page token.",
|
|
"type": "string"
|
|
},
|
|
"operations": {
|
|
"description": "A list of operations that matches the specified filter in the request.",
|
|
"items": {
|
|
"$ref": "Operation"
|
|
},
|
|
"type": "array"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"Location": {
|
|
"description": "A resource that represents Google Cloud Platform location.",
|
|
"id": "Location",
|
|
"properties": {
|
|
"displayName": {
|
|
"description": "The friendly name for this location, typically a nearby city name. For example, \"Tokyo\".",
|
|
"type": "string"
|
|
},
|
|
"labels": {
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
},
|
|
"description": "Cross-service attributes for the location. For example {\"cloud.googleapis.com/region\": \"us-east1\"}",
|
|
"type": "object"
|
|
},
|
|
"locationId": {
|
|
"description": "The canonical id for this location. For example: `\"us-east1\"`.",
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"additionalProperties": {
|
|
"description": "Properties of the object. Contains field @type with type URL.",
|
|
"type": "any"
|
|
},
|
|
"description": "Service-specific metadata. For example the available capacity at the given location.",
|
|
"type": "object"
|
|
},
|
|
"name": {
|
|
"description": "Resource name for the location, which may vary between implementations. For example: `\"projects/example-project/locations/us-east1\"`",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"MembershipFeature": {
|
|
"description": "MembershipFeature represents the settings and status of a Fleet Feature enabled on a single Fleet Membership.",
|
|
"id": "MembershipFeature",
|
|
"properties": {
|
|
"createTime": {
|
|
"description": "Output only. When the MembershipFeature resource was created.",
|
|
"format": "google-datetime",
|
|
"readOnly": true,
|
|
"type": "string"
|
|
},
|
|
"deleteTime": {
|
|
"description": "Output only. When the MembershipFeature resource was deleted.",
|
|
"format": "google-datetime",
|
|
"readOnly": true,
|
|
"type": "string"
|
|
},
|
|
"featureConfigRef": {
|
|
"$ref": "FeatureConfigRef",
|
|
"description": "Reference information for a FeatureConfig applied on the MembershipFeature."
|
|
},
|
|
"labels": {
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
},
|
|
"description": "GCP labels for this MembershipFeature.",
|
|
"type": "object"
|
|
},
|
|
"name": {
|
|
"description": "Output only. The resource name of the membershipFeature, in the format: `projects/{project}/locations/{location}/memberships/{membership}/features/{feature}`. Note that `membershipFeatures` is shortened to `features` in the resource name. (see http://go/aip/122#collection-identifiers)",
|
|
"readOnly": true,
|
|
"type": "string"
|
|
},
|
|
"resourceState": {
|
|
"$ref": "ResourceState",
|
|
"description": "Lifecycle information of the resource itself."
|
|
},
|
|
"spec": {
|
|
"$ref": "FeatureSpec",
|
|
"description": "Output only. Spec of this membershipFeature.",
|
|
"readOnly": true
|
|
},
|
|
"state": {
|
|
"$ref": "FeatureState",
|
|
"description": "Output only. State of the this membershipFeature.",
|
|
"readOnly": true
|
|
},
|
|
"updateTime": {
|
|
"description": "Output only. When the MembershipFeature resource was last updated.",
|
|
"format": "google-datetime",
|
|
"readOnly": true,
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"Operation": {
|
|
"description": "This resource represents a long-running operation that is the result of a network API call.",
|
|
"id": "Operation",
|
|
"properties": {
|
|
"done": {
|
|
"description": "If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.",
|
|
"type": "boolean"
|
|
},
|
|
"error": {
|
|
"$ref": "GoogleRpcStatus",
|
|
"description": "The error result of the operation in case of failure or cancellation."
|
|
},
|
|
"metadata": {
|
|
"additionalProperties": {
|
|
"description": "Properties of the object. Contains field @type with type URL.",
|
|
"type": "any"
|
|
},
|
|
"description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.",
|
|
"type": "object"
|
|
},
|
|
"name": {
|
|
"description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.",
|
|
"type": "string"
|
|
},
|
|
"response": {
|
|
"additionalProperties": {
|
|
"description": "Properties of the object. Contains field @type with type URL.",
|
|
"type": "any"
|
|
},
|
|
"description": "The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.",
|
|
"type": "object"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"OperationMetadata": {
|
|
"description": "Metadata of the long-running operation.",
|
|
"id": "OperationMetadata",
|
|
"properties": {
|
|
"apiVersion": {
|
|
"description": "Output only. API version used to start the operation.",
|
|
"readOnly": true,
|
|
"type": "string"
|
|
},
|
|
"cancelRequested": {
|
|
"description": "Output only. Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.",
|
|
"readOnly": true,
|
|
"type": "boolean"
|
|
},
|
|
"createTime": {
|
|
"description": "Output only. The time the operation was created.",
|
|
"format": "google-datetime",
|
|
"readOnly": true,
|
|
"type": "string"
|
|
},
|
|
"endTime": {
|
|
"description": "Output only. The time the operation finished running.",
|
|
"format": "google-datetime",
|
|
"readOnly": true,
|
|
"type": "string"
|
|
},
|
|
"statusDetail": {
|
|
"description": "Output only. Human-readable status of the operation, if any.",
|
|
"readOnly": true,
|
|
"type": "string"
|
|
},
|
|
"target": {
|
|
"description": "Output only. Server-defined resource path for the target of the operation.",
|
|
"readOnly": true,
|
|
"type": "string"
|
|
},
|
|
"verb": {
|
|
"description": "Output only. Name of the verb executed by the operation.",
|
|
"readOnly": true,
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"ResourceState": {
|
|
"description": "ResourceState describes the state of a MembershipFeature *resource* in the GkeHub API. See `FeatureState` for the \"running state\" of the MembershipFeature.",
|
|
"id": "ResourceState",
|
|
"properties": {
|
|
"state": {
|
|
"description": "Output only. The current state of the Feature resource in the Hub API.",
|
|
"enum": [
|
|
"STATE_UNSPECIFIED",
|
|
"ENABLING",
|
|
"ACTIVE",
|
|
"DISABLING",
|
|
"UPDATING",
|
|
"SERVICE_UPDATING"
|
|
],
|
|
"enumDescriptions": [
|
|
"State is unknown or not set.",
|
|
"The MembershipFeature is being enabled, and the MembershipFeature resource is being created. Once complete, the corresponding MembershipFeature will be enabled in this Hub.",
|
|
"The MembershipFeature is enabled in this Hub, and the MembershipFeature resource is fully available.",
|
|
"The MembershipFeature is being disabled in this Hub, and the MembershipFeature resource is being deleted.",
|
|
"The MembershipFeature resource is being updated.",
|
|
"The MembershipFeature resource is being updated by the Hub Service."
|
|
],
|
|
"readOnly": true,
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"State": {
|
|
"description": "High-level state of a MembershipFeature.",
|
|
"id": "State",
|
|
"properties": {
|
|
"code": {
|
|
"description": "The high-level, machine-readable status of this MembershipFeature.",
|
|
"enum": [
|
|
"CODE_UNSPECIFIED",
|
|
"OK",
|
|
"WARNING",
|
|
"ERROR"
|
|
],
|
|
"enumDescriptions": [
|
|
"Unknown or not set.",
|
|
"The MembershipFeature is operating normally.",
|
|
"The MembershipFeature has encountered an issue, and is operating in a degraded state. The MembershipFeature may need intervention to return to normal operation. See the description and any associated MembershipFeature-specific details for more information.",
|
|
"The MembershipFeature is not operating or is in a severely degraded state. The MembershipFeature may need intervention to return to normal operation. See the description and any associated MembershipFeature-specific details for more information."
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"description": "A human-readable description of the current status.",
|
|
"type": "string"
|
|
},
|
|
"updateTime": {
|
|
"description": "The time this status and any related Feature-specific details were updated.",
|
|
"format": "google-datetime",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
},
|
|
"servicePath": "",
|
|
"title": "GKE Hub API",
|
|
"version": "v2alpha",
|
|
"version_module": true
|
|
} |