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, pageSize, pageToken | 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 | allowMissing, requestId, updateMask | 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 pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
;
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:
cloudbuild:
securityPolicy: "{{ securityPolicy }}"
version: "{{ version }}"
configmanagement:
binauthz:
enabled: {{ enabled }}
cluster: "{{ cluster }}"
configSync:
deploymentOverrides:
- containers: "{{ containers }}"
deploymentName: "{{ deploymentName }}"
deploymentNamespace: "{{ deploymentNamespace }}"
enabled: {{ enabled }}
git:
gcpServiceAccountEmail: "{{ gcpServiceAccountEmail }}"
httpsProxy: "{{ httpsProxy }}"
policyDir: "{{ policyDir }}"
secretType: "{{ secretType }}"
syncBranch: "{{ syncBranch }}"
syncRepo: "{{ syncRepo }}"
syncRev: "{{ syncRev }}"
syncWaitSecs: "{{ syncWaitSecs }}"
metricsGcpServiceAccountEmail: "{{ metricsGcpServiceAccountEmail }}"
oci:
gcpServiceAccountEmail: "{{ gcpServiceAccountEmail }}"
policyDir: "{{ policyDir }}"
secretType: "{{ secretType }}"
syncRepo: "{{ syncRepo }}"
syncWaitSecs: "{{ syncWaitSecs }}"
preventDrift: {{ preventDrift }}
sourceFormat: "{{ sourceFormat }}"
stopSyncing: {{ stopSyncing }}
hierarchyController:
enableHierarchicalResourceQuota: {{ enableHierarchicalResourceQuota }}
enablePodTreeLabels: {{ enablePodTreeLabels }}
enabled: {{ enabled }}
management: "{{ management }}"
policyController:
auditIntervalSeconds: "{{ auditIntervalSeconds }}"
enabled: {{ enabled }}
exemptableNamespaces:
- "{{ exemptableNamespaces }}"
logDeniesEnabled: {{ logDeniesEnabled }}
monitoring:
backends:
- "{{ backends }}"
mutationEnabled: {{ mutationEnabled }}
referentialRulesEnabled: {{ referentialRulesEnabled }}
templateLibraryInstalled: {{ templateLibraryInstalled }}
updateTime: "{{ updateTime }}"
version: "{{ version }}"
identityservice:
authMethods:
- azureadConfig:
clientId: "{{ clientId }}"
clientSecret: "{{ clientSecret }}"
encryptedClientSecret: "{{ encryptedClientSecret }}"
groupFormat: "{{ groupFormat }}"
kubectlRedirectUri: "{{ kubectlRedirectUri }}"
tenant: "{{ tenant }}"
userClaim: "{{ userClaim }}"
googleConfig:
disable: {{ disable }}
ldapConfig:
group:
baseDn: "{{ baseDn }}"
filter: "{{ filter }}"
idAttribute: "{{ idAttribute }}"
server:
certificateAuthorityData: "{{ certificateAuthorityData }}"
connectionType: "{{ connectionType }}"
host: "{{ host }}"
serviceAccount:
simpleBindCredentials: "{{ simpleBindCredentials }}"
user:
baseDn: "{{ baseDn }}"
filter: "{{ filter }}"
idAttribute: "{{ idAttribute }}"
loginAttribute: "{{ loginAttribute }}"
name: "{{ name }}"
oidcConfig:
certificateAuthorityData: "{{ certificateAuthorityData }}"
clientId: "{{ clientId }}"
clientSecret: "{{ clientSecret }}"
deployCloudConsoleProxy: {{ deployCloudConsoleProxy }}
enableAccessToken: {{ enableAccessToken }}
encryptedClientSecret: "{{ encryptedClientSecret }}"
extraParams: "{{ extraParams }}"
groupPrefix: "{{ groupPrefix }}"
groupsClaim: "{{ groupsClaim }}"
issuerUri: "{{ issuerUri }}"
kubectlRedirectUri: "{{ kubectlRedirectUri }}"
scopes: "{{ scopes }}"
userClaim: "{{ userClaim }}"
userPrefix: "{{ userPrefix }}"
proxy: "{{ proxy }}"
samlConfig:
attributeMapping: "{{ attributeMapping }}"
groupPrefix: "{{ groupPrefix }}"
groupsAttribute: "{{ groupsAttribute }}"
identityProviderCertificates:
- "{{ identityProviderCertificates }}"
identityProviderId: "{{ identityProviderId }}"
identityProviderSsoUri: "{{ identityProviderSsoUri }}"
userAttribute: "{{ userAttribute }}"
userPrefix: "{{ userPrefix }}"
identityServiceOptions:
diagnosticInterface:
enabled: {{ enabled }}
expirationTime: "{{ expirationTime }}"
sessionDuration: "{{ sessionDuration }}"
origin:
type: "{{ type }}"
policycontroller:
policyControllerHubConfig:
auditIntervalSeconds: "{{ auditIntervalSeconds }}"
constraintViolationLimit: "{{ constraintViolationLimit }}"
deploymentConfigs: "{{ deploymentConfigs }}"
exemptableNamespaces:
- "{{ exemptableNamespaces }}"
installSpec: "{{ installSpec }}"
logDeniesEnabled: {{ logDeniesEnabled }}
monitoring:
backends:
- "{{ backends }}"
mutationEnabled: {{ mutationEnabled }}
policyContent:
bundles: "{{ bundles }}"
templateLibrary:
installation: "{{ installation }}"
referentialRulesEnabled: {{ referentialRulesEnabled }}
version: "{{ version }}"
rbacrolebindingactuation: "{{ rbacrolebindingactuation }}"
servicemesh:
configApi: "{{ configApi }}"
controlPlane: "{{ controlPlane }}"
defaultChannel: "{{ defaultChannel }}"
management: "{{ management }}"
workloadcertificate:
certificateManagement: "{{ certificateManagement }}"
- 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 allowMissing = {{ allowMissing}}
AND requestId = '{{ requestId}}'
AND updateMask = '{{ updateMask}}'
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 }}'
;