service_classes
Creates, updates, deletes, gets or lists a service_classes
resource.
Overview
Name | service_classes |
Type | Resource |
Id | google.networkconnectivity.service_classes |
Fields
The following fields are returned by SELECT
queries:
- get
- list
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Immutable. The name of a ServiceClass resource. Format: projects/{project}/locations/{location}/serviceClasses/{service_class} See: https://google.aip.dev/122#fields-representing-resource-names |
createTime | string (google-datetime) | Output only. Time when the ServiceClass was created. |
description | string | A description of this resource. |
etag | string | Optional. The etag is computed by the server, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. |
labels | object | User-defined labels. |
serviceClass | string | Output only. The generated service class name. Use this name to refer to the Service class in Service Connection Maps and Service Connection Policies. |
updateTime | string (google-datetime) | Output only. Time when the ServiceClass was updated. |
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Immutable. The name of a ServiceClass resource. Format: projects/{project}/locations/{location}/serviceClasses/{service_class} See: https://google.aip.dev/122#fields-representing-resource-names |
createTime | string (google-datetime) | Output only. Time when the ServiceClass was created. |
description | string | A description of this resource. |
etag | string | Optional. The etag is computed by the server, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. |
labels | object | User-defined labels. |
serviceClass | string | Output only. The generated service class name. Use this name to refer to the Service class in Service Connection Maps and Service Connection Policies. |
updateTime | string (google-datetime) | Output only. Time when the ServiceClass was updated. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | projectsId , locationsId , serviceClassesId | Gets details of a single ServiceClass. | |
list | select | projectsId , locationsId | pageSize , pageToken , filter , orderBy | Lists ServiceClasses in a given project and location. |
patch | update | projectsId , locationsId , serviceClassesId | updateMask , requestId | Updates the parameters of a single ServiceClass. |
delete | delete | projectsId , locationsId , serviceClassesId | requestId , etag | Deletes a single ServiceClass. |
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 |
---|---|---|
locationsId | string | |
projectsId | string | |
serviceClassesId | string | |
etag | string | |
filter | string | |
orderBy | string | |
pageSize | integer (int32) | |
pageToken | string | |
requestId | string | |
updateMask | string (google-fieldmask) |
SELECT
examples
- get
- list
Gets details of a single ServiceClass.
SELECT
name,
createTime,
description,
etag,
labels,
serviceClass,
updateTime
FROM google.networkconnectivity.service_classes
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND serviceClassesId = '{{ serviceClassesId }}' -- required;
Lists ServiceClasses in a given project and location.
SELECT
name,
createTime,
description,
etag,
labels,
serviceClass,
updateTime
FROM google.networkconnectivity.service_classes
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
AND filter = '{{ filter }}'
AND orderBy = '{{ orderBy }}';
UPDATE
examples
- patch
Updates the parameters of a single ServiceClass.
UPDATE google.networkconnectivity.service_classes
SET
data__name = '{{ name }}',
data__labels = '{{ labels }}',
data__description = '{{ description }}',
data__etag = '{{ etag }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND serviceClassesId = '{{ serviceClassesId }}' --required
AND updateMask = '{{ updateMask}}'
AND requestId = '{{ requestId}}'
RETURNING
name,
done,
error,
metadata,
response;
DELETE
examples
- delete
Deletes a single ServiceClass.
DELETE FROM google.networkconnectivity.service_classes
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND serviceClassesId = '{{ serviceClassesId }}' --required
AND requestId = '{{ requestId }}'
AND etag = '{{ etag }}';