ProjectsSchemas
class ProjectsSchemas extends Resource (View source)
The "schemas" collection of methods.
Typical usage is:
$pubsubService = new Google\Service\Pubsub(...);
$schemas = $pubsubService->projects_schemas;
Methods
Commits a new schema revision to an existing schema. (schemas.commit)
Deletes a schema. (schemas.delete)
Deletes a specific schema revision. (schemas.deleteRevision)
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. (schemas.getIamPolicy)
Lists schemas in a project. (schemas.listProjectsSchemas)
Lists all schema revisions for the named schema. (schemas.listRevisions)
Creates a new schema revision that is a copy of the provided revision_id.
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND
, INVALID_ARGUMENT
, and
PERMISSION_DENIED
errors. (schemas.setIamPolicy)
Returns permissions that a caller has on the specified resource. If the
resource does not exist, this will return an empty set of permissions, not a
NOT_FOUND
error. Note: This operation is designed to be used for building
permission-aware UIs and command-line tools, not for authorization checking.
Validates a schema. (schemas.validate)
Validates a message against a schema. (schemas.validateMessage)
Details
Schema
commit(string $name, CommitSchemaRequest $postBody, array $optParams = [])
Commits a new schema revision to an existing schema. (schemas.commit)
Schema
create(string $parent, Schema $postBody, array $optParams = [])
Creates a schema. (schemas.create)
PubsubEmpty
delete(string $name, array $optParams = [])
Deletes a schema. (schemas.delete)
Schema
deleteRevision(string $name, array $optParams = [])
Deletes a specific schema revision. (schemas.deleteRevision)
Schema
get(string $name, array $optParams = [])
Gets a schema. (schemas.get)
Policy
getIamPolicy(string $resource, array $optParams = [])
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. (schemas.getIamPolicy)
ListSchemasResponse
listProjectsSchemas(string $parent, array $optParams = [])
Lists schemas in a project. (schemas.listProjectsSchemas)
ListSchemaRevisionsResponse
listRevisions(string $name, array $optParams = [])
Lists all schema revisions for the named schema. (schemas.listRevisions)
Schema
rollback(string $name, RollbackSchemaRequest $postBody, array $optParams = [])
Creates a new schema revision that is a copy of the provided revision_id.
(schemas.rollback)
Policy
setIamPolicy(string $resource, SetIamPolicyRequest $postBody, array $optParams = [])
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND
, INVALID_ARGUMENT
, and
PERMISSION_DENIED
errors. (schemas.setIamPolicy)
TestIamPermissionsResponse
testIamPermissions(string $resource, TestIamPermissionsRequest $postBody, array $optParams = [])
Returns permissions that a caller has on the specified resource. If the
resource does not exist, this will return an empty set of permissions, not a
NOT_FOUND
error. Note: This operation is designed to be used for building
permission-aware UIs and command-line tools, not for authorization checking.
This operation may "fail open" without warning. (schemas.testIamPermissions)
ValidateSchemaResponse
validate(string $parent, ValidateSchemaRequest $postBody, array $optParams = [])
Validates a schema. (schemas.validate)
ValidateMessageResponse
validateMessage(string $parent, ValidateMessageRequest $postBody, array $optParams = [])
Validates a message against a schema. (schemas.validateMessage)