Class ProjectsResource.SchemasResource
The "schemas" collection of methods.
Inherited Members
Namespace: Google.Apis.Pubsub.v1
Assembly: Google.Apis.Pubsub.v1.dll
Syntax
public class ProjectsResource.SchemasResource
Constructors
SchemasResource(IClientService)
Constructs a new resource.
Declaration
public SchemasResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClient |
service |
Methods
Commit(CommitSchemaRequest, string)
Commits a new schema revision to an existing schema.
Declaration
public virtual ProjectsResource.SchemasResource.CommitRequest Commit(CommitSchemaRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
Commit |
body | The body of the request. |
string | name | Required. The name of the schema we are revising. Format is |
Returns
Type | Description |
---|---|
Projects |
Create(Schema, string)
Creates a schema.
Declaration
public virtual ProjectsResource.SchemasResource.CreateRequest Create(Schema body, string parent)
Parameters
Type | Name | Description |
---|---|---|
Schema | body | The body of the request. |
string | parent | Required. The name of the project in which to create the schema. Format is |
Returns
Type | Description |
---|---|
Projects |
Delete(string)
Deletes a schema.
Declaration
public virtual ProjectsResource.SchemasResource.DeleteRequest Delete(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. Name of the schema to delete. Format is |
Returns
Type | Description |
---|---|
Projects |
DeleteRevision(string)
Deletes a specific schema revision.
Declaration
public virtual ProjectsResource.SchemasResource.DeleteRevisionRequest DeleteRevision(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the schema revision to be deleted, with a revision ID explicitly included.
Example: |
Returns
Type | Description |
---|---|
Projects |
Get(string)
Gets a schema.
Declaration
public virtual ProjectsResource.SchemasResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the schema to get. Format is |
Returns
Type | Description |
---|---|
Projects |
GetIamPolicy(string)
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
Declaration
public virtual ProjectsResource.SchemasResource.GetIamPolicyRequest GetIamPolicy(string resource)
Parameters
Type | Name | Description |
---|---|---|
string | resource | REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field. |
Returns
Type | Description |
---|---|
Projects |
List(string)
Lists schemas in a project.
Declaration
public virtual ProjectsResource.SchemasResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The name of the project in which to list schemas. Format is |
Returns
Type | Description |
---|---|
Projects |
ListRevisions(string)
Lists all schema revisions for the named schema.
Declaration
public virtual ProjectsResource.SchemasResource.ListRevisionsRequest ListRevisions(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the schema to list revisions for. |
Returns
Type | Description |
---|---|
Projects |
Rollback(RollbackSchemaRequest, string)
Creates a new schema revision that is a copy of the provided revision_id.
Declaration
public virtual ProjectsResource.SchemasResource.RollbackRequest Rollback(RollbackSchemaRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
Rollback |
body | The body of the request. |
string | name | Required. The schema being rolled back with revision id. |
Returns
Type | Description |
---|---|
Projects |
SetIamPolicy(SetIamPolicyRequest, string)
Sets the access control policy on the specified resource. Replaces any existing policy. Can return
NOT_FOUND
, INVALID_ARGUMENT
, and PERMISSION_DENIED
errors.
Declaration
public virtual ProjectsResource.SchemasResource.SetIamPolicyRequest SetIamPolicy(SetIamPolicyRequest body, string resource)
Parameters
Type | Name | Description |
---|---|---|
Set |
body | The body of the request. |
string | resource | REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field. |
Returns
Type | Description |
---|---|
Projects |
TestIamPermissions(TestIamPermissionsRequest, string)
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.
Declaration
public virtual ProjectsResource.SchemasResource.TestIamPermissionsRequest TestIamPermissions(TestIamPermissionsRequest body, string resource)
Parameters
Type | Name | Description |
---|---|---|
Test |
body | The body of the request. |
string | resource | REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field. |
Returns
Type | Description |
---|---|
Projects |
Validate(ValidateSchemaRequest, string)
Validates a schema.
Declaration
public virtual ProjectsResource.SchemasResource.ValidateRequest Validate(ValidateSchemaRequest body, string parent)
Parameters
Type | Name | Description |
---|---|---|
Validate |
body | The body of the request. |
string | parent | Required. The name of the project in which to validate schemas. Format is |
Returns
Type | Description |
---|---|
Projects |
ValidateMessage(ValidateMessageRequest, string)
Validates a message against a schema.
Declaration
public virtual ProjectsResource.SchemasResource.ValidateMessageRequest ValidateMessage(ValidateMessageRequest body, string parent)
Parameters
Type | Name | Description |
---|---|---|
Validate |
body | The body of the request. |
string | parent | Required. The name of the project in which to validate schemas. Format is |
Returns
Type | Description |
---|---|
Projects |