service_classes
Creates, updates, deletes, gets or lists a service_classes
resource.
Overview
Name | service_classes |
Type | Resource |
Id | google.networkconnectivity.service_classes |
Fields
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 |
description | string | A description of this resource. |
createTime | string | Output only. Time when the ServiceClass was created. |
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 | Output only. Time when the ServiceClass was updated. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | locationsId, projectsId, serviceClassesId | Gets details of a single ServiceClass. |
list | SELECT | locationsId, projectsId | Lists ServiceClasses in a given project and location. |
delete | DELETE | locationsId, projectsId, serviceClassesId | Deletes a single ServiceClass. |
patch | UPDATE | locationsId, projectsId, serviceClassesId | Updates the parameters of a single ServiceClass. |
SELECT
examples
Lists ServiceClasses in a given project and location.
SELECT
name,
description,
createTime,
etag,
labels,
serviceClass,
updateTime
FROM google.networkconnectivity.service_classes
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';
UPDATE
example
Updates a service_classes
resource.
/*+ update */
UPDATE google.networkconnectivity.service_classes
SET
name = '{{ name }}',
labels = '{{ labels }}',
description = '{{ description }}',
etag = '{{ etag }}'
WHERE
locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND serviceClassesId = '{{ serviceClassesId }}';
DELETE
example
Deletes the specified service_classes
resource.
/*+ delete */
DELETE FROM google.networkconnectivity.service_classes
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND serviceClassesId = '{{ serviceClassesId }}';