preview_features
Creates, updates, deletes, gets or lists a preview_features resource.
Overview
| Name | preview_features |
| Type | Resource |
| Id | google.compute.preview_features |
Fields
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
id | string (uint64) | Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server. |
name | string | Name of the feature. |
activationStatus | string | Specifies whether the feature is enabled or disabled. (ACTIVATION_STATE_UNSPECIFIED, DISABLED, ENABLED) |
creationTimestamp | string | Output only. [Output Only] Creation timestamp inRFC3339 text format. |
description | string | Output only. [Output Only] Description of the feature. |
kind | string | Output only. [Output only] The type of the feature. Always "compute#previewFeature" for preview features. (default: compute#previewFeature) |
rolloutOperation | object | Rollout operation of the feature. (id: PreviewFeatureRolloutOperation) |
selfLink | string | Output only. [Output Only] Server-defined URL for the resource. |
status | object | Output only. [Output only] Status of the feature. (id: PreviewFeatureStatus) |
| Name | Datatype | Description |
|---|---|---|
id | string | [Output Only] Unique identifier for the resource; defined by the server. |
etag | string | |
items | array | A list of PreviewFeature resources. |
nextPageToken | string | [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. |
selfLink | string | Output only. [Output Only] Server-defined URL for this resource. |
unreachables | array | Output only. [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder |
warning | object | [Output Only] Informational warning message. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | project, previewFeature | Returns the details of the given PreviewFeature. | |
list | select | project | returnPartialSuccess, maxResults, pageToken, filter, orderBy | Returns the details of the given PreviewFeature. |
update | update | project, previewFeature | requestId | Patches the given PreviewFeature. This method is used to enable or disable a PreviewFeature. |
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 |
|---|---|---|
previewFeature | string | |
project | string | |
filter | string | |
maxResults | integer (uint32) | |
orderBy | string | |
pageToken | string | |
requestId | string | |
returnPartialSuccess | boolean |
SELECT examples
- get
- list
Returns the details of the given PreviewFeature.
SELECT
id,
name,
activationStatus,
creationTimestamp,
description,
kind,
rolloutOperation,
selfLink,
status
FROM google.compute.preview_features
WHERE project = '{{ project }}' -- required
AND previewFeature = '{{ previewFeature }}' -- required
;
Returns the details of the given PreviewFeature.
SELECT
id,
etag,
items,
nextPageToken,
selfLink,
unreachables,
warning
FROM google.compute.preview_features
WHERE project = '{{ project }}' -- required
AND returnPartialSuccess = '{{ returnPartialSuccess }}'
AND maxResults = '{{ maxResults }}'
AND pageToken = '{{ pageToken }}'
AND filter = '{{ filter }}'
AND orderBy = '{{ orderBy }}'
;
UPDATE examples
- update
Patches the given PreviewFeature. This method is used to enable or disable
a PreviewFeature.
UPDATE google.compute.preview_features
SET
data__name = '{{ name }}',
data__rolloutOperation = '{{ rolloutOperation }}',
data__activationStatus = '{{ activationStatus }}'
WHERE
project = '{{ project }}' --required
AND previewFeature = '{{ previewFeature }}' --required
AND requestId = '{{ requestId}}'
RETURNING
id,
name,
clientOperationId,
creationTimestamp,
description,
endTime,
error,
getVersionOperationMetadata,
httpErrorMessage,
httpErrorStatusCode,
insertTime,
instancesBulkInsertOperationMetadata,
kind,
operationGroupId,
operationType,
progress,
region,
selfLink,
setCommonInstanceMetadataOperationMetadata,
startTime,
status,
statusMessage,
targetId,
targetLink,
user,
warnings,
zone;