Skip to main content

service_classes

Creates, updates, deletes, gets or lists a service_classes resource.

Overview

Nameservice_classes
TypeResource
Idgoogle.networkconnectivity.service_classes

Fields

NameDatatypeDescription
namestringImmutable. The name of a ServiceClass resource. Format: projects/{project}/locations/{location}/serviceClasses/{service_class} See: https://google.aip.dev/122#fields-representing-resource-names
descriptionstringA description of this resource.
createTimestringOutput only. Time when the ServiceClass was created.
etagstringOptional. 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.
labelsobjectUser-defined labels.
serviceClassstringOutput only. The generated service class name. Use this name to refer to the Service class in Service Connection Maps and Service Connection Policies.
updateTimestringOutput only. Time when the ServiceClass was updated.

Methods

NameAccessible byRequired ParamsDescription
getSELECTlocationsId, projectsId, serviceClassesIdGets details of a single ServiceClass.
listSELECTlocationsId, projectsIdLists ServiceClasses in a given project and location.
deleteDELETElocationsId, projectsId, serviceClassesIdDeletes a single ServiceClass.
patchUPDATElocationsId, projectsId, serviceClassesIdUpdates 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 }}';