features
Creates, updates, deletes, gets or lists a features
resource.
Overview
Name | features |
Type | Resource |
Id | google.gkehub.features |
Fields
The following fields are returned by SELECT
queries:
- projects_locations_memberships_features_get
- projects_locations_memberships_features_list
Successful response
Name | Datatype | Description |
---|---|---|
name | string | 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) |
createTime | string (google-datetime) | Output only. When the MembershipFeature resource was created. |
deleteTime | string (google-datetime) | Output only. When the MembershipFeature resource was deleted. |
labels | object | GCP labels for this MembershipFeature. |
lifecycleState | object | Output only. Lifecycle information of the resource itself. (id: LifecycleState) |
spec | object | Optional. Spec of this membershipFeature. (id: FeatureSpec) |
state | object | Output only. State of the this membershipFeature. (id: FeatureState) |
updateTime | string (google-datetime) | Output only. When the MembershipFeature resource was last updated. |
Successful response
Name | Datatype | Description |
---|---|---|
name | string | 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) |
createTime | string (google-datetime) | Output only. When the MembershipFeature resource was created. |
deleteTime | string (google-datetime) | Output only. When the MembershipFeature resource was deleted. |
labels | object | GCP labels for this MembershipFeature. |
lifecycleState | object | Output only. Lifecycle information of the resource itself. (id: LifecycleState) |
spec | object | Optional. Spec of this membershipFeature. (id: FeatureSpec) |
state | object | Output only. State of the this membershipFeature. (id: FeatureState) |
updateTime | string (google-datetime) | Output only. When the MembershipFeature resource was last updated. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
projects_locations_memberships_features_get | select | projectsId , locationsId , membershipsId , featuresId | ========= MembershipFeature Services ========= Gets details of a membershipFeature. | |
projects_locations_memberships_features_list | select | projectsId , locationsId , membershipsId | pageSize , pageToken , filter , orderBy | Lists MembershipFeatures in a given project and location. |
projects_locations_memberships_features_create | insert | projectsId , locationsId , membershipsId | requestId , featureId | Creates membershipFeature under a given parent. |
projects_locations_memberships_features_patch | update | projectsId , locationsId , membershipsId , featuresId | updateMask , requestId , allowMissing | Updates an existing MembershipFeature. |
projects_locations_memberships_features_delete | delete | projectsId , locationsId , membershipsId , featuresId | requestId | Removes a membershipFeature. |
Parameters
Parameters can be passed in the WHERE
clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
Name | Datatype | Description |
---|---|---|
featuresId | string | |
locationsId | string | |
membershipsId | string | |
projectsId | string | |
allowMissing | boolean | |
featureId | string | |
filter | string | |
orderBy | string | |
pageSize | integer (int32) | |
pageToken | string | |
requestId | string | |
updateMask | string (google-fieldmask) |
SELECT
examples
- projects_locations_memberships_features_get
- projects_locations_memberships_features_list
========= MembershipFeature Services ========= Gets details of a membershipFeature.
SELECT
name,
createTime,
deleteTime,
labels,
lifecycleState,
spec,
state,
updateTime
FROM google.gkehub.features
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND membershipsId = '{{ membershipsId }}' -- required
AND featuresId = '{{ featuresId }}' -- required;
Lists MembershipFeatures in a given project and location.
SELECT
name,
createTime,
deleteTime,
labels,
lifecycleState,
spec,
state,
updateTime
FROM google.gkehub.features
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND membershipsId = '{{ membershipsId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
AND filter = '{{ filter }}'
AND orderBy = '{{ orderBy }}';
INSERT
examples
- projects_locations_memberships_features_create
- Manifest
Creates membershipFeature under a given parent.
INSERT INTO google.gkehub.features (
data__labels,
data__spec,
projectsId,
locationsId,
membershipsId,
requestId,
featureId
)
SELECT
'{{ labels }}',
'{{ spec }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ membershipsId }}',
'{{ requestId }}',
'{{ featureId }}'
RETURNING
name,
done,
error,
metadata,
response
;
# Description fields are for documentation purposes
- name: features
props:
- name: projectsId
value: string
description: Required parameter for the features resource.
- name: locationsId
value: string
description: Required parameter for the features resource.
- name: membershipsId
value: string
description: Required parameter for the features resource.
- name: labels
value: object
description: >
GCP labels for this MembershipFeature.
- name: spec
value: object
description: >
Optional. Spec of this membershipFeature.
- name: requestId
value: string
- name: featureId
value: string
UPDATE
examples
- projects_locations_memberships_features_patch
Updates an existing MembershipFeature.
UPDATE google.gkehub.features
SET
data__labels = '{{ labels }}',
data__spec = '{{ spec }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND membershipsId = '{{ membershipsId }}' --required
AND featuresId = '{{ featuresId }}' --required
AND updateMask = '{{ updateMask}}'
AND requestId = '{{ requestId}}'
AND allowMissing = {{ allowMissing}}
RETURNING
name,
done,
error,
metadata,
response;
DELETE
examples
- projects_locations_memberships_features_delete
Removes a membershipFeature.
DELETE FROM google.gkehub.features
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND membershipsId = '{{ membershipsId }}' --required
AND featuresId = '{{ featuresId }}' --required
AND requestId = '{{ requestId }}';