Skip to main content

features

Creates, updates, deletes, gets or lists a features resource.

Overview

Namefeatures
TypeResource
Idgoogle.gkehub.features

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringOutput 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)
createTimestring (google-datetime)Output only. When the MembershipFeature resource was created.
deleteTimestring (google-datetime)Output only. When the MembershipFeature resource was deleted.
labelsobjectGCP labels for this MembershipFeature.
lifecycleStateobjectOutput only. Lifecycle information of the resource itself. (id: LifecycleState)
specobjectOptional. Spec of this membershipFeature. (id: FeatureSpec)
stateobjectOutput only. State of the this membershipFeature. (id: FeatureState)
updateTimestring (google-datetime)Output only. When the MembershipFeature resource was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_memberships_features_getselectprojectsId, locationsId, membershipsId, featuresId========= MembershipFeature Services ========= Gets details of a membershipFeature.
projects_locations_memberships_features_listselectprojectsId, locationsId, membershipsIdpageSize, pageToken, filter, orderByLists MembershipFeatures in a given project and location.
projects_locations_memberships_features_createinsertprojectsId, locationsId, membershipsIdrequestId, featureIdCreates membershipFeature under a given parent.
projects_locations_memberships_features_patchupdateprojectsId, locationsId, membershipsId, featuresIdupdateMask, requestId, allowMissingUpdates an existing MembershipFeature.
projects_locations_memberships_features_deletedeleteprojectsId, locationsId, membershipsId, featuresIdrequestIdRemoves 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.

NameDatatypeDescription
featuresIdstring
locationsIdstring
membershipsIdstring
projectsIdstring
allowMissingboolean
featureIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
requestIdstring
updateMaskstring (google-fieldmask)

SELECT examples

========= 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;

INSERT examples

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
;

UPDATE examples

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

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 }}';