GetRestrictionsMeta
Get meta information about available restrictions.
- TypeScript
- Python
import { cloudApi, serviceClients, Session } from "@yandex-cloud/nodejs-sdk";
(async () => {
const authToken = process.env["YC_OAUTH_TOKEN"];
const session = new Session({ oauthToken: authToken });
const client = session.client(serviceClients.ProjectServiceClient);
const result = await client.getRestrictionsMeta(
google.protobuf.Empty.fromPartial({})
);
console.log(result);
})();
import os
import grpc
import yandexcloud
from yandex.cloud.datasphere.v1.project_service_pb2_grpc import ProjectServiceStub
token = os.getenv("YC_OAUTH_TOKEN")
sdk = yandexcloud.SDK(token=token)
service = sdk.client(ProjectServiceStub)
response = service.GetRestrictionsMeta(Empty())
print(response)
Empty
GetRestrictionsMetaResponse
restrictionsMeta
: RestrictionMeta
List of restrictions.
RestrictionMeta
RestrictionValueType
RESTRICTION_VALUE_TYPE_UNSPECIFIED
BOOLEAN
LONG
STRING
name
: string
Name of restriction.
valueType
: RestrictionValueType
Value type of restriction.