Googly. DocumentAI. Projects. Locations. Schemas. SchemaVersions
(googly_document_ai v0.1.0)
Copy Markdown
View Source
Endpoints for the Projects.Locations.Schemas.SchemaVersions resource.
Summary
Functions
Creates a schema version.
Deletes a schema version.
Generates a schema version.
Gets a schema version.
Lists SchemaVersions.
Updates a schema version. Editable fields are: - display_name - labels
Functions
@spec create( String.t(), keyword() ) :: {:ok, Googly.DocumentAI.Model.GoogleCloudDocumentaiV1SchemaVersion.t()} | {:error, term()}
Creates a schema version.
Parameters
-
parent(type:String.t()) - Required. The parent (project and location) under which to create the SchemaVersion. Format:projects/{project}/locations/{location}/schemas/{schema} -
opts(type:keyword()) - Query and call options (:token, plus any of the below)-
access_token(type:String.t()) - OAuth access token. -
alt(type:String.t()) - Data format for response. -
callback(type:String.t()) - JSONP -
fields(type:String.t()) - Selector specifying which fields to include in a partial response. -
key(type:String.t()) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. -
oauth_token(type:String.t()) - OAuth 2.0 token for the current user. -
pretty_print(type:boolean()) - Returns response with indentations and line breaks. -
quota_user(type:String.t()) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. -
upload_protocol(type:String.t()) - Upload protocol for media (e.g. "raw", "multipart"). -
upload_type(type:String.t()) - Legacy upload protocol for media (e.g. "media", "multipart"). -
xgafv(type:String.t()) - V1 error format. -
body(type:Googly.DocumentAI.Model.GoogleCloudDocumentaiV1SchemaVersion.t()) -
-
Returns
-
{:ok, %Googly.DocumentAI.Model.GoogleCloudDocumentaiV1SchemaVersion{}}on success -
{:error, %Googly.DocumentAI.Error{}}on failure
@spec delete( String.t(), keyword() ) :: {:ok, Googly.DocumentAI.Model.GoogleLongrunningOperation.t()} | {:error, term()}
Deletes a schema version.
Parameters
-
name(type:String.t()) - Required. The name of the SchemaVersion to delete. Format:projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version} -
opts(type:keyword()) - Query and call options (:token, plus any of the below)-
access_token(type:String.t()) - OAuth access token. -
alt(type:String.t()) - Data format for response. -
callback(type:String.t()) - JSONP -
fields(type:String.t()) - Selector specifying which fields to include in a partial response. -
key(type:String.t()) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. -
oauth_token(type:String.t()) - OAuth 2.0 token for the current user. -
pretty_print(type:boolean()) - Returns response with indentations and line breaks. -
quota_user(type:String.t()) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. -
upload_protocol(type:String.t()) - Upload protocol for media (e.g. "raw", "multipart"). -
upload_type(type:String.t()) - Legacy upload protocol for media (e.g. "media", "multipart"). -
xgafv(type:String.t()) - V1 error format.
-
Returns
-
{:ok, %Googly.DocumentAI.Model.GoogleLongrunningOperation{}}on success -
{:error, %Googly.DocumentAI.Error{}}on failure
@spec generate( String.t(), keyword() ) :: {:ok, Googly.DocumentAI.Model.GoogleCloudDocumentaiV1GenerateSchemaVersionResponse.t()} | {:error, term()}
Generates a schema version.
Parameters
-
parent(type:String.t()) - Required. The parent (project, location and schema) under which to generate the SchemaVersion. Format:projects/{project}/locations/{location}/schemas/{schema} -
opts(type:keyword()) - Query and call options (:token, plus any of the below)-
access_token(type:String.t()) - OAuth access token. -
alt(type:String.t()) - Data format for response. -
callback(type:String.t()) - JSONP -
fields(type:String.t()) - Selector specifying which fields to include in a partial response. -
key(type:String.t()) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. -
oauth_token(type:String.t()) - OAuth 2.0 token for the current user. -
pretty_print(type:boolean()) - Returns response with indentations and line breaks. -
quota_user(type:String.t()) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. -
upload_protocol(type:String.t()) - Upload protocol for media (e.g. "raw", "multipart"). -
upload_type(type:String.t()) - Legacy upload protocol for media (e.g. "media", "multipart"). -
xgafv(type:String.t()) - V1 error format. -
body(type:Googly.DocumentAI.Model.GoogleCloudDocumentaiV1GenerateSchemaVersionRequest.t()) -
-
Returns
-
{:ok, %Googly.DocumentAI.Model.GoogleCloudDocumentaiV1GenerateSchemaVersionResponse{}}on success -
{:error, %Googly.DocumentAI.Error{}}on failure
@spec get( String.t(), keyword() ) :: {:ok, Googly.DocumentAI.Model.GoogleCloudDocumentaiV1SchemaVersion.t()} | {:error, term()}
Gets a schema version.
Parameters
-
name(type:String.t()) - Required. The name of the SchemaVersion to get. Format:projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version} -
opts(type:keyword()) - Query and call options (:token, plus any of the below)-
access_token(type:String.t()) - OAuth access token. -
alt(type:String.t()) - Data format for response. -
callback(type:String.t()) - JSONP -
fields(type:String.t()) - Selector specifying which fields to include in a partial response. -
key(type:String.t()) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. -
oauth_token(type:String.t()) - OAuth 2.0 token for the current user. -
pretty_print(type:boolean()) - Returns response with indentations and line breaks. -
quota_user(type:String.t()) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. -
upload_protocol(type:String.t()) - Upload protocol for media (e.g. "raw", "multipart"). -
upload_type(type:String.t()) - Legacy upload protocol for media (e.g. "media", "multipart"). -
xgafv(type:String.t()) - V1 error format.
-
Returns
-
{:ok, %Googly.DocumentAI.Model.GoogleCloudDocumentaiV1SchemaVersion{}}on success -
{:error, %Googly.DocumentAI.Error{}}on failure
@spec list( String.t(), keyword() ) :: {:ok, Googly.DocumentAI.Model.GoogleCloudDocumentaiV1ListSchemaVersionsResponse.t()} | {:error, term()}
Lists SchemaVersions.
Parameters
-
parent(type:String.t()) - Required. Format:projects/{project}/locations/{location}/schemas/{schema} -
opts(type:keyword()) - Query and call options (:token, plus any of the below)-
access_token(type:String.t()) - OAuth access token. -
alt(type:String.t()) - Data format for response. -
callback(type:String.t()) - JSONP -
fields(type:String.t()) - Selector specifying which fields to include in a partial response. -
key(type:String.t()) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. -
oauth_token(type:String.t()) - OAuth 2.0 token for the current user. -
pretty_print(type:boolean()) - Returns response with indentations and line breaks. -
quota_user(type:String.t()) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. -
upload_protocol(type:String.t()) - Upload protocol for media (e.g. "raw", "multipart"). -
upload_type(type:String.t()) - Legacy upload protocol for media (e.g. "media", "multipart"). -
xgafv(type:String.t()) - V1 error format. -
page_size(type:integer()) - Optional. The maximum number of SchemaVersion to return. If unspecified, at most10SchemaVersion will be returned. The maximum value is20. Values above20will be coerced to20. -
page_token(type:String.t()) - Optional. Returns the SchemaVersion sorted by creation time. The page token will point to the next SchemaVersion.
-
Returns
-
{:ok, %Googly.DocumentAI.Model.GoogleCloudDocumentaiV1ListSchemaVersionsResponse{}}on success -
{:error, %Googly.DocumentAI.Error{}}on failure
@spec patch( String.t(), keyword() ) :: {:ok, Googly.DocumentAI.Model.GoogleCloudDocumentaiV1SchemaVersion.t()} | {:error, term()}
Updates a schema version. Editable fields are: - display_name - labels
Parameters
-
name(type:String.t()) - Identifier. The resource name of the SchemaVersion. Format:projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version} -
opts(type:keyword()) - Query and call options (:token, plus any of the below)-
access_token(type:String.t()) - OAuth access token. -
alt(type:String.t()) - Data format for response. -
callback(type:String.t()) - JSONP -
fields(type:String.t()) - Selector specifying which fields to include in a partial response. -
key(type:String.t()) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. -
oauth_token(type:String.t()) - OAuth 2.0 token for the current user. -
pretty_print(type:boolean()) - Returns response with indentations and line breaks. -
quota_user(type:String.t()) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. -
upload_protocol(type:String.t()) - Upload protocol for media (e.g. "raw", "multipart"). -
upload_type(type:String.t()) - Legacy upload protocol for media (e.g. "media", "multipart"). -
xgafv(type:String.t()) - V1 error format. -
update_mask(type:String.t()) - Optional. The update mask to apply to the resource. Note: Only the following fields can be updated: -display_name-labels -
body(type:Googly.DocumentAI.Model.GoogleCloudDocumentaiV1SchemaVersion.t()) -
-
Returns
-
{:ok, %Googly.DocumentAI.Model.GoogleCloudDocumentaiV1SchemaVersion{}}on success -
{:error, %Googly.DocumentAI.Error{}}on failure