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
| 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 | Google Cloud 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. |
| 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 | Google Cloud 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 | filter, orderBy, pageToken, pageSize | Lists MembershipFeatures in a given project and location. |
projects_locations_memberships_features_create | insert | projectsId, locationsId, membershipsId | featureId, requestId | Creates membershipFeature under a given parent. |
projects_locations_memberships_features_patch | update | projectsId, locationsId, membershipsId, featuresId | updateMask, allowMissing, requestId | 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 filter = '{{ filter }}'
AND orderBy = '{{ orderBy }}'
AND pageToken = '{{ pageToken }}'
AND pageSize = '{{ pageSize }}'
;
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,
featureId,
requestId
)
SELECT
'{{ labels }}',
'{{ spec }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ membershipsId }}',
'{{ featureId }}',
'{{ requestId }}'
RETURNING
name,
done,
error,
metadata,
response
;
# Description fields are for documentation purposes
- name: features
props:
- name: projectsId
value: "{{ projectsId }}"
description: Required parameter for the features resource.
- name: locationsId
value: "{{ locationsId }}"
description: Required parameter for the features resource.
- name: membershipsId
value: "{{ membershipsId }}"
description: Required parameter for the features resource.
- name: labels
value: "{{ labels }}"
description: |
Google Cloud labels for this MembershipFeature.
- name: spec
description: |
Optional. Spec of this membershipFeature.
value:
identityservice:
identityServiceOptions:
sessionDuration: "{{ sessionDuration }}"
diagnosticInterface:
enabled: {{ enabled }}
expirationTime: "{{ expirationTime }}"
authMethods:
- oidcConfig:
deployCloudConsoleProxy: {{ deployCloudConsoleProxy }}
clientId: "{{ clientId }}"
userClaim: "{{ userClaim }}"
extraParams: "{{ extraParams }}"
encryptedClientSecret: "{{ encryptedClientSecret }}"
groupPrefix: "{{ groupPrefix }}"
clientSecret: "{{ clientSecret }}"
issuerUri: "{{ issuerUri }}"
scopes: "{{ scopes }}"
enableAccessToken: {{ enableAccessToken }}
certificateAuthorityData: "{{ certificateAuthorityData }}"
userPrefix: "{{ userPrefix }}"
kubectlRedirectUri: "{{ kubectlRedirectUri }}"
groupsClaim: "{{ groupsClaim }}"
googleConfig:
disable: {{ disable }}
proxy: "{{ proxy }}"
name: "{{ name }}"
azureadConfig:
tenant: "{{ tenant }}"
clientSecret: "{{ clientSecret }}"
kubectlRedirectUri: "{{ kubectlRedirectUri }}"
clientId: "{{ clientId }}"
groupFormat: "{{ groupFormat }}"
encryptedClientSecret: "{{ encryptedClientSecret }}"
userClaim: "{{ userClaim }}"
ldapConfig:
user:
baseDn: "{{ baseDn }}"
loginAttribute: "{{ loginAttribute }}"
idAttribute: "{{ idAttribute }}"
filter: "{{ filter }}"
server:
certificateAuthorityData: "{{ certificateAuthorityData }}"
host: "{{ host }}"
connectionType: "{{ connectionType }}"
group:
idAttribute: "{{ idAttribute }}"
filter: "{{ filter }}"
baseDn: "{{ baseDn }}"
serviceAccount:
simpleBindCredentials: "{{ simpleBindCredentials }}"
samlConfig:
identityProviderSsoUri: "{{ identityProviderSsoUri }}"
groupsAttribute: "{{ groupsAttribute }}"
groupPrefix: "{{ groupPrefix }}"
userPrefix: "{{ userPrefix }}"
attributeMapping: "{{ attributeMapping }}"
userAttribute: "{{ userAttribute }}"
identityProviderId: "{{ identityProviderId }}"
identityProviderCertificates:
- "{{ identityProviderCertificates }}"
servicemesh:
management: "{{ management }}"
configApi: "{{ configApi }}"
defaultChannel: "{{ defaultChannel }}"
controlPlane: "{{ controlPlane }}"
configmanagement:
hierarchyController:
enabled: {{ enabled }}
enableHierarchicalResourceQuota: {{ enableHierarchicalResourceQuota }}
enablePodTreeLabels: {{ enablePodTreeLabels }}
cluster: "{{ cluster }}"
binauthz:
enabled: {{ enabled }}
configSync:
oci:
syncWaitSecs: "{{ syncWaitSecs }}"
syncRepo: "{{ syncRepo }}"
gcpServiceAccountEmail: "{{ gcpServiceAccountEmail }}"
secretType: "{{ secretType }}"
policyDir: "{{ policyDir }}"
stopSyncing: {{ stopSyncing }}
metricsGcpServiceAccountEmail: "{{ metricsGcpServiceAccountEmail }}"
sourceFormat: "{{ sourceFormat }}"
enabled: {{ enabled }}
preventDrift: {{ preventDrift }}
deploymentOverrides:
- deploymentName: "{{ deploymentName }}"
containers: "{{ containers }}"
deploymentNamespace: "{{ deploymentNamespace }}"
git:
syncWaitSecs: "{{ syncWaitSecs }}"
syncBranch: "{{ syncBranch }}"
httpsProxy: "{{ httpsProxy }}"
gcpServiceAccountEmail: "{{ gcpServiceAccountEmail }}"
syncRepo: "{{ syncRepo }}"
syncRev: "{{ syncRev }}"
secretType: "{{ secretType }}"
policyDir: "{{ policyDir }}"
version: "{{ version }}"
policyController:
enabled: {{ enabled }}
updateTime: "{{ updateTime }}"
referentialRulesEnabled: {{ referentialRulesEnabled }}
mutationEnabled: {{ mutationEnabled }}
auditIntervalSeconds: "{{ auditIntervalSeconds }}"
exemptableNamespaces:
- "{{ exemptableNamespaces }}"
templateLibraryInstalled: {{ templateLibraryInstalled }}
monitoring:
backends:
- "{{ backends }}"
logDeniesEnabled: {{ logDeniesEnabled }}
management: "{{ management }}"
cloudbuild:
securityPolicy: "{{ securityPolicy }}"
version: "{{ version }}"
policycontroller:
policyControllerHubConfig:
installSpec: "{{ installSpec }}"
exemptableNamespaces:
- "{{ exemptableNamespaces }}"
auditIntervalSeconds: "{{ auditIntervalSeconds }}"
logDeniesEnabled: {{ logDeniesEnabled }}
deploymentConfigs: "{{ deploymentConfigs }}"
monitoring:
backends:
- "{{ backends }}"
policyContent:
templateLibrary:
installation: "{{ installation }}"
bundles: "{{ bundles }}"
constraintViolationLimit: "{{ constraintViolationLimit }}"
mutationEnabled: {{ mutationEnabled }}
referentialRulesEnabled: {{ referentialRulesEnabled }}
version: "{{ version }}"
rbacrolebindingactuation: "{{ rbacrolebindingactuation }}"
workloadcertificate:
certificateManagement: "{{ certificateManagement }}"
origin:
type: "{{ type }}"
- name: featureId
value: "{{ featureId }}"
- name: requestId
value: "{{ requestId }}"
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 allowMissing = {{ allowMissing}}
AND requestId = '{{ requestId}}'
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 }}'
;