1. Packages
  2. Google Cloud Native
  3. API Docs
  4. discoveryengine
  5. discoveryengine/v1beta
  6. Document

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

google-native.discoveryengine/v1beta.Document

Explore with Pulumi AI

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

Creates a Document.

Create Document Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new Document(name: string, args: DocumentArgs, opts?: CustomResourceOptions);
@overload
def Document(resource_name: str,
             args: DocumentArgs,
             opts: Optional[ResourceOptions] = None)

@overload
def Document(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             document_id: Optional[str] = None,
             collection_id: Optional[str] = None,
             branch_id: Optional[str] = None,
             data_store_id: Optional[str] = None,
             json_data: Optional[str] = None,
             id: Optional[str] = None,
             content: Optional[GoogleCloudDiscoveryengineV1betaDocumentContentArgs] = None,
             location: Optional[str] = None,
             name: Optional[str] = None,
             parent_document_id: Optional[str] = None,
             project: Optional[str] = None,
             schema_id: Optional[str] = None,
             struct_data: Optional[Mapping[str, str]] = None)
func NewDocument(ctx *Context, name string, args DocumentArgs, opts ...ResourceOption) (*Document, error)
public Document(string name, DocumentArgs args, CustomResourceOptions? opts = null)
public Document(String name, DocumentArgs args)
public Document(String name, DocumentArgs args, CustomResourceOptions options)
type: google-native:discoveryengine/v1beta:Document
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. DocumentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. DocumentArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. DocumentArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. DocumentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. DocumentArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var exampledocumentResourceResourceFromDiscoveryenginev1beta = new GoogleNative.DiscoveryEngine.V1Beta.Document("exampledocumentResourceResourceFromDiscoveryenginev1beta", new()
{
    DocumentId = "string",
    CollectionId = "string",
    BranchId = "string",
    DataStoreId = "string",
    JsonData = "string",
    Id = "string",
    Content = new GoogleNative.DiscoveryEngine.V1Beta.Inputs.GoogleCloudDiscoveryengineV1betaDocumentContentArgs
    {
        MimeType = "string",
        RawBytes = "string",
        Uri = "string",
    },
    Location = "string",
    Name = "string",
    ParentDocumentId = "string",
    Project = "string",
    SchemaId = "string",
    StructData = 
    {
        { "string", "string" },
    },
});
Copy
example, err := discoveryenginev1beta.NewDocument(ctx, "exampledocumentResourceResourceFromDiscoveryenginev1beta", &discoveryenginev1beta.DocumentArgs{
	DocumentId:   pulumi.String("string"),
	CollectionId: pulumi.String("string"),
	BranchId:     pulumi.String("string"),
	DataStoreId:  pulumi.String("string"),
	JsonData:     pulumi.String("string"),
	Id:           pulumi.String("string"),
	Content: &discoveryengine.GoogleCloudDiscoveryengineV1betaDocumentContentArgs{
		MimeType: pulumi.String("string"),
		RawBytes: pulumi.String("string"),
		Uri:      pulumi.String("string"),
	},
	Location:         pulumi.String("string"),
	Name:             pulumi.String("string"),
	ParentDocumentId: pulumi.String("string"),
	Project:          pulumi.String("string"),
	SchemaId:         pulumi.String("string"),
	StructData: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
Copy
var exampledocumentResourceResourceFromDiscoveryenginev1beta = new Document("exampledocumentResourceResourceFromDiscoveryenginev1beta", DocumentArgs.builder()
    .documentId("string")
    .collectionId("string")
    .branchId("string")
    .dataStoreId("string")
    .jsonData("string")
    .id("string")
    .content(GoogleCloudDiscoveryengineV1betaDocumentContentArgs.builder()
        .mimeType("string")
        .rawBytes("string")
        .uri("string")
        .build())
    .location("string")
    .name("string")
    .parentDocumentId("string")
    .project("string")
    .schemaId("string")
    .structData(Map.of("string", "string"))
    .build());
Copy
exampledocument_resource_resource_from_discoveryenginev1beta = google_native.discoveryengine.v1beta.Document("exampledocumentResourceResourceFromDiscoveryenginev1beta",
    document_id="string",
    collection_id="string",
    branch_id="string",
    data_store_id="string",
    json_data="string",
    id="string",
    content={
        "mime_type": "string",
        "raw_bytes": "string",
        "uri": "string",
    },
    location="string",
    name="string",
    parent_document_id="string",
    project="string",
    schema_id="string",
    struct_data={
        "string": "string",
    })
Copy
const exampledocumentResourceResourceFromDiscoveryenginev1beta = new google_native.discoveryengine.v1beta.Document("exampledocumentResourceResourceFromDiscoveryenginev1beta", {
    documentId: "string",
    collectionId: "string",
    branchId: "string",
    dataStoreId: "string",
    jsonData: "string",
    id: "string",
    content: {
        mimeType: "string",
        rawBytes: "string",
        uri: "string",
    },
    location: "string",
    name: "string",
    parentDocumentId: "string",
    project: "string",
    schemaId: "string",
    structData: {
        string: "string",
    },
});
Copy
type: google-native:discoveryengine/v1beta:Document
properties:
    branchId: string
    collectionId: string
    content:
        mimeType: string
        rawBytes: string
        uri: string
    dataStoreId: string
    documentId: string
    id: string
    jsonData: string
    location: string
    name: string
    parentDocumentId: string
    project: string
    schemaId: string
    structData:
        string: string
Copy

Document Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The Document resource accepts the following input properties:

BranchId
This property is required.
Changes to this property will trigger replacement.
string
CollectionId
This property is required.
Changes to this property will trigger replacement.
string
DataStoreId
This property is required.
Changes to this property will trigger replacement.
string
DocumentId
This property is required.
Changes to this property will trigger replacement.
string
Required. The ID to use for the Document, which will become the final component of the Document.name. If the caller does not have permission to create the Document, regardless of whether or not it exists, a PERMISSION_DENIED error is returned. This field must be unique among all Documents with the same parent. Otherwise, an ALREADY_EXISTS error is returned. This field must conform to RFC-1034 standard with a length limit of 63 characters. Otherwise, an INVALID_ARGUMENT error is returned.
Content Pulumi.GoogleNative.DiscoveryEngine.V1Beta.Inputs.GoogleCloudDiscoveryengineV1betaDocumentContent
The unstructured data linked to this document. Content must be set if this document is under a CONTENT_REQUIRED data store.
Id string
Immutable. The identifier of the document. Id should conform to RFC-1034 standard with a length limit of 63 characters.
JsonData string
The JSON string representation of the document. It should conform to the registered Schema or an INVALID_ARGUMENT error is thrown.
Location Changes to this property will trigger replacement. string
Name string
Immutable. The full resource name of the document. Format: projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}. This field must be a UTF-8 encoded string with a length limit of 1024 characters.
ParentDocumentId string
The identifier of the parent document. Currently supports at most two level document hierarchy. Id should conform to RFC-1034 standard with a length limit of 63 characters.
Project Changes to this property will trigger replacement. string
SchemaId string
The identifier of the schema located in the same data store.
StructData Dictionary<string, string>
The structured JSON data for the document. It should conform to the registered Schema or an INVALID_ARGUMENT error is thrown.
BranchId
This property is required.
Changes to this property will trigger replacement.
string
CollectionId
This property is required.
Changes to this property will trigger replacement.
string
DataStoreId
This property is required.
Changes to this property will trigger replacement.
string
DocumentId
This property is required.
Changes to this property will trigger replacement.
string
Required. The ID to use for the Document, which will become the final component of the Document.name. If the caller does not have permission to create the Document, regardless of whether or not it exists, a PERMISSION_DENIED error is returned. This field must be unique among all Documents with the same parent. Otherwise, an ALREADY_EXISTS error is returned. This field must conform to RFC-1034 standard with a length limit of 63 characters. Otherwise, an INVALID_ARGUMENT error is returned.
Content GoogleCloudDiscoveryengineV1betaDocumentContentArgs
The unstructured data linked to this document. Content must be set if this document is under a CONTENT_REQUIRED data store.
Id string
Immutable. The identifier of the document. Id should conform to RFC-1034 standard with a length limit of 63 characters.
JsonData string
The JSON string representation of the document. It should conform to the registered Schema or an INVALID_ARGUMENT error is thrown.
Location Changes to this property will trigger replacement. string
Name string
Immutable. The full resource name of the document. Format: projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}. This field must be a UTF-8 encoded string with a length limit of 1024 characters.
ParentDocumentId string
The identifier of the parent document. Currently supports at most two level document hierarchy. Id should conform to RFC-1034 standard with a length limit of 63 characters.
Project Changes to this property will trigger replacement. string
SchemaId string
The identifier of the schema located in the same data store.
StructData map[string]string
The structured JSON data for the document. It should conform to the registered Schema or an INVALID_ARGUMENT error is thrown.
branchId
This property is required.
Changes to this property will trigger replacement.
String
collectionId
This property is required.
Changes to this property will trigger replacement.
String
dataStoreId
This property is required.
Changes to this property will trigger replacement.
String
documentId
This property is required.
Changes to this property will trigger replacement.
String
Required. The ID to use for the Document, which will become the final component of the Document.name. If the caller does not have permission to create the Document, regardless of whether or not it exists, a PERMISSION_DENIED error is returned. This field must be unique among all Documents with the same parent. Otherwise, an ALREADY_EXISTS error is returned. This field must conform to RFC-1034 standard with a length limit of 63 characters. Otherwise, an INVALID_ARGUMENT error is returned.
content GoogleCloudDiscoveryengineV1betaDocumentContent
The unstructured data linked to this document. Content must be set if this document is under a CONTENT_REQUIRED data store.
id String
Immutable. The identifier of the document. Id should conform to RFC-1034 standard with a length limit of 63 characters.
jsonData String
The JSON string representation of the document. It should conform to the registered Schema or an INVALID_ARGUMENT error is thrown.
location Changes to this property will trigger replacement. String
name String
Immutable. The full resource name of the document. Format: projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}. This field must be a UTF-8 encoded string with a length limit of 1024 characters.
parentDocumentId String
The identifier of the parent document. Currently supports at most two level document hierarchy. Id should conform to RFC-1034 standard with a length limit of 63 characters.
project Changes to this property will trigger replacement. String
schemaId String
The identifier of the schema located in the same data store.
structData Map<String,String>
The structured JSON data for the document. It should conform to the registered Schema or an INVALID_ARGUMENT error is thrown.
branchId
This property is required.
Changes to this property will trigger replacement.
string
collectionId
This property is required.
Changes to this property will trigger replacement.
string
dataStoreId
This property is required.
Changes to this property will trigger replacement.
string
documentId
This property is required.
Changes to this property will trigger replacement.
string
Required. The ID to use for the Document, which will become the final component of the Document.name. If the caller does not have permission to create the Document, regardless of whether or not it exists, a PERMISSION_DENIED error is returned. This field must be unique among all Documents with the same parent. Otherwise, an ALREADY_EXISTS error is returned. This field must conform to RFC-1034 standard with a length limit of 63 characters. Otherwise, an INVALID_ARGUMENT error is returned.
content GoogleCloudDiscoveryengineV1betaDocumentContent
The unstructured data linked to this document. Content must be set if this document is under a CONTENT_REQUIRED data store.
id string
Immutable. The identifier of the document. Id should conform to RFC-1034 standard with a length limit of 63 characters.
jsonData string
The JSON string representation of the document. It should conform to the registered Schema or an INVALID_ARGUMENT error is thrown.
location Changes to this property will trigger replacement. string
name string
Immutable. The full resource name of the document. Format: projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}. This field must be a UTF-8 encoded string with a length limit of 1024 characters.
parentDocumentId string
The identifier of the parent document. Currently supports at most two level document hierarchy. Id should conform to RFC-1034 standard with a length limit of 63 characters.
project Changes to this property will trigger replacement. string
schemaId string
The identifier of the schema located in the same data store.
structData {[key: string]: string}
The structured JSON data for the document. It should conform to the registered Schema or an INVALID_ARGUMENT error is thrown.
branch_id
This property is required.
Changes to this property will trigger replacement.
str
collection_id
This property is required.
Changes to this property will trigger replacement.
str
data_store_id
This property is required.
Changes to this property will trigger replacement.
str
document_id
This property is required.
Changes to this property will trigger replacement.
str
Required. The ID to use for the Document, which will become the final component of the Document.name. If the caller does not have permission to create the Document, regardless of whether or not it exists, a PERMISSION_DENIED error is returned. This field must be unique among all Documents with the same parent. Otherwise, an ALREADY_EXISTS error is returned. This field must conform to RFC-1034 standard with a length limit of 63 characters. Otherwise, an INVALID_ARGUMENT error is returned.
content GoogleCloudDiscoveryengineV1betaDocumentContentArgs
The unstructured data linked to this document. Content must be set if this document is under a CONTENT_REQUIRED data store.
id str
Immutable. The identifier of the document. Id should conform to RFC-1034 standard with a length limit of 63 characters.
json_data str
The JSON string representation of the document. It should conform to the registered Schema or an INVALID_ARGUMENT error is thrown.
location Changes to this property will trigger replacement. str
name str
Immutable. The full resource name of the document. Format: projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}. This field must be a UTF-8 encoded string with a length limit of 1024 characters.
parent_document_id str
The identifier of the parent document. Currently supports at most two level document hierarchy. Id should conform to RFC-1034 standard with a length limit of 63 characters.
project Changes to this property will trigger replacement. str
schema_id str
The identifier of the schema located in the same data store.
struct_data Mapping[str, str]
The structured JSON data for the document. It should conform to the registered Schema or an INVALID_ARGUMENT error is thrown.
branchId
This property is required.
Changes to this property will trigger replacement.
String
collectionId
This property is required.
Changes to this property will trigger replacement.
String
dataStoreId
This property is required.
Changes to this property will trigger replacement.
String
documentId
This property is required.
Changes to this property will trigger replacement.
String
Required. The ID to use for the Document, which will become the final component of the Document.name. If the caller does not have permission to create the Document, regardless of whether or not it exists, a PERMISSION_DENIED error is returned. This field must be unique among all Documents with the same parent. Otherwise, an ALREADY_EXISTS error is returned. This field must conform to RFC-1034 standard with a length limit of 63 characters. Otherwise, an INVALID_ARGUMENT error is returned.
content Property Map
The unstructured data linked to this document. Content must be set if this document is under a CONTENT_REQUIRED data store.
id String
Immutable. The identifier of the document. Id should conform to RFC-1034 standard with a length limit of 63 characters.
jsonData String
The JSON string representation of the document. It should conform to the registered Schema or an INVALID_ARGUMENT error is thrown.
location Changes to this property will trigger replacement. String
name String
Immutable. The full resource name of the document. Format: projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}. This field must be a UTF-8 encoded string with a length limit of 1024 characters.
parentDocumentId String
The identifier of the parent document. Currently supports at most two level document hierarchy. Id should conform to RFC-1034 standard with a length limit of 63 characters.
project Changes to this property will trigger replacement. String
schemaId String
The identifier of the schema located in the same data store.
structData Map<String>
The structured JSON data for the document. It should conform to the registered Schema or an INVALID_ARGUMENT error is thrown.

Outputs

All input properties are implicitly available as output properties. Additionally, the Document resource produces the following output properties:

DerivedStructData Dictionary<string, string>
This field is OUTPUT_ONLY. It contains derived data that are not in the original input document.
Id string
The provider-assigned unique ID for this managed resource.
DerivedStructData map[string]string
This field is OUTPUT_ONLY. It contains derived data that are not in the original input document.
Id string
The provider-assigned unique ID for this managed resource.
derivedStructData Map<String,String>
This field is OUTPUT_ONLY. It contains derived data that are not in the original input document.
id String
The provider-assigned unique ID for this managed resource.
derivedStructData {[key: string]: string}
This field is OUTPUT_ONLY. It contains derived data that are not in the original input document.
id string
The provider-assigned unique ID for this managed resource.
derived_struct_data Mapping[str, str]
This field is OUTPUT_ONLY. It contains derived data that are not in the original input document.
id str
The provider-assigned unique ID for this managed resource.
derivedStructData Map<String>
This field is OUTPUT_ONLY. It contains derived data that are not in the original input document.
id String
The provider-assigned unique ID for this managed resource.

Supporting Types

GoogleCloudDiscoveryengineV1betaDocumentContent
, GoogleCloudDiscoveryengineV1betaDocumentContentArgs

MimeType string
The MIME type of the content. Supported types: * application/pdf (PDF, only native PDFs are supported for now) * text/html (HTML) * application/vnd.openxmlformats-officedocument.wordprocessingml.document (DOCX) * application/vnd.openxmlformats-officedocument.presentationml.presentation (PPTX) * text/plain (TXT) See https://www.iana.org/assignments/media-types/media-types.xhtml.
RawBytes string
The content represented as a stream of bytes. The maximum length is 1,000,000 bytes (1 MB / ~0.95 MiB). Note: As with all bytes fields, this field is represented as pure binary in Protocol Buffers and base64-encoded string in JSON. For example, abc123!?$*&()'-=@~ should be represented as YWJjMTIzIT8kKiYoKSctPUB+ in JSON. See https://developers.google.com/protocol-buffers/docs/proto3#json.
Uri string
The URI of the content. Only Cloud Storage URIs (e.g. gs://bucket-name/path/to/file) are supported. The maximum file size is 100 MB.
MimeType string
The MIME type of the content. Supported types: * application/pdf (PDF, only native PDFs are supported for now) * text/html (HTML) * application/vnd.openxmlformats-officedocument.wordprocessingml.document (DOCX) * application/vnd.openxmlformats-officedocument.presentationml.presentation (PPTX) * text/plain (TXT) See https://www.iana.org/assignments/media-types/media-types.xhtml.
RawBytes string
The content represented as a stream of bytes. The maximum length is 1,000,000 bytes (1 MB / ~0.95 MiB). Note: As with all bytes fields, this field is represented as pure binary in Protocol Buffers and base64-encoded string in JSON. For example, abc123!?$*&()'-=@~ should be represented as YWJjMTIzIT8kKiYoKSctPUB+ in JSON. See https://developers.google.com/protocol-buffers/docs/proto3#json.
Uri string
The URI of the content. Only Cloud Storage URIs (e.g. gs://bucket-name/path/to/file) are supported. The maximum file size is 100 MB.
mimeType String
The MIME type of the content. Supported types: * application/pdf (PDF, only native PDFs are supported for now) * text/html (HTML) * application/vnd.openxmlformats-officedocument.wordprocessingml.document (DOCX) * application/vnd.openxmlformats-officedocument.presentationml.presentation (PPTX) * text/plain (TXT) See https://www.iana.org/assignments/media-types/media-types.xhtml.
rawBytes String
The content represented as a stream of bytes. The maximum length is 1,000,000 bytes (1 MB / ~0.95 MiB). Note: As with all bytes fields, this field is represented as pure binary in Protocol Buffers and base64-encoded string in JSON. For example, abc123!?$*&()'-=@~ should be represented as YWJjMTIzIT8kKiYoKSctPUB+ in JSON. See https://developers.google.com/protocol-buffers/docs/proto3#json.
uri String
The URI of the content. Only Cloud Storage URIs (e.g. gs://bucket-name/path/to/file) are supported. The maximum file size is 100 MB.
mimeType string
The MIME type of the content. Supported types: * application/pdf (PDF, only native PDFs are supported for now) * text/html (HTML) * application/vnd.openxmlformats-officedocument.wordprocessingml.document (DOCX) * application/vnd.openxmlformats-officedocument.presentationml.presentation (PPTX) * text/plain (TXT) See https://www.iana.org/assignments/media-types/media-types.xhtml.
rawBytes string
The content represented as a stream of bytes. The maximum length is 1,000,000 bytes (1 MB / ~0.95 MiB). Note: As with all bytes fields, this field is represented as pure binary in Protocol Buffers and base64-encoded string in JSON. For example, abc123!?$*&()'-=@~ should be represented as YWJjMTIzIT8kKiYoKSctPUB+ in JSON. See https://developers.google.com/protocol-buffers/docs/proto3#json.
uri string
The URI of the content. Only Cloud Storage URIs (e.g. gs://bucket-name/path/to/file) are supported. The maximum file size is 100 MB.
mime_type str
The MIME type of the content. Supported types: * application/pdf (PDF, only native PDFs are supported for now) * text/html (HTML) * application/vnd.openxmlformats-officedocument.wordprocessingml.document (DOCX) * application/vnd.openxmlformats-officedocument.presentationml.presentation (PPTX) * text/plain (TXT) See https://www.iana.org/assignments/media-types/media-types.xhtml.
raw_bytes str
The content represented as a stream of bytes. The maximum length is 1,000,000 bytes (1 MB / ~0.95 MiB). Note: As with all bytes fields, this field is represented as pure binary in Protocol Buffers and base64-encoded string in JSON. For example, abc123!?$*&()'-=@~ should be represented as YWJjMTIzIT8kKiYoKSctPUB+ in JSON. See https://developers.google.com/protocol-buffers/docs/proto3#json.
uri str
The URI of the content. Only Cloud Storage URIs (e.g. gs://bucket-name/path/to/file) are supported. The maximum file size is 100 MB.
mimeType String
The MIME type of the content. Supported types: * application/pdf (PDF, only native PDFs are supported for now) * text/html (HTML) * application/vnd.openxmlformats-officedocument.wordprocessingml.document (DOCX) * application/vnd.openxmlformats-officedocument.presentationml.presentation (PPTX) * text/plain (TXT) See https://www.iana.org/assignments/media-types/media-types.xhtml.
rawBytes String
The content represented as a stream of bytes. The maximum length is 1,000,000 bytes (1 MB / ~0.95 MiB). Note: As with all bytes fields, this field is represented as pure binary in Protocol Buffers and base64-encoded string in JSON. For example, abc123!?$*&()'-=@~ should be represented as YWJjMTIzIT8kKiYoKSctPUB+ in JSON. See https://developers.google.com/protocol-buffers/docs/proto3#json.
uri String
The URI of the content. Only Cloud Storage URIs (e.g. gs://bucket-name/path/to/file) are supported. The maximum file size is 100 MB.

GoogleCloudDiscoveryengineV1betaDocumentContentResponse
, GoogleCloudDiscoveryengineV1betaDocumentContentResponseArgs

MimeType This property is required. string
The MIME type of the content. Supported types: * application/pdf (PDF, only native PDFs are supported for now) * text/html (HTML) * application/vnd.openxmlformats-officedocument.wordprocessingml.document (DOCX) * application/vnd.openxmlformats-officedocument.presentationml.presentation (PPTX) * text/plain (TXT) See https://www.iana.org/assignments/media-types/media-types.xhtml.
RawBytes This property is required. string
The content represented as a stream of bytes. The maximum length is 1,000,000 bytes (1 MB / ~0.95 MiB). Note: As with all bytes fields, this field is represented as pure binary in Protocol Buffers and base64-encoded string in JSON. For example, abc123!?$*&()'-=@~ should be represented as YWJjMTIzIT8kKiYoKSctPUB+ in JSON. See https://developers.google.com/protocol-buffers/docs/proto3#json.
Uri This property is required. string
The URI of the content. Only Cloud Storage URIs (e.g. gs://bucket-name/path/to/file) are supported. The maximum file size is 100 MB.
MimeType This property is required. string
The MIME type of the content. Supported types: * application/pdf (PDF, only native PDFs are supported for now) * text/html (HTML) * application/vnd.openxmlformats-officedocument.wordprocessingml.document (DOCX) * application/vnd.openxmlformats-officedocument.presentationml.presentation (PPTX) * text/plain (TXT) See https://www.iana.org/assignments/media-types/media-types.xhtml.
RawBytes This property is required. string
The content represented as a stream of bytes. The maximum length is 1,000,000 bytes (1 MB / ~0.95 MiB). Note: As with all bytes fields, this field is represented as pure binary in Protocol Buffers and base64-encoded string in JSON. For example, abc123!?$*&()'-=@~ should be represented as YWJjMTIzIT8kKiYoKSctPUB+ in JSON. See https://developers.google.com/protocol-buffers/docs/proto3#json.
Uri This property is required. string
The URI of the content. Only Cloud Storage URIs (e.g. gs://bucket-name/path/to/file) are supported. The maximum file size is 100 MB.
mimeType This property is required. String
The MIME type of the content. Supported types: * application/pdf (PDF, only native PDFs are supported for now) * text/html (HTML) * application/vnd.openxmlformats-officedocument.wordprocessingml.document (DOCX) * application/vnd.openxmlformats-officedocument.presentationml.presentation (PPTX) * text/plain (TXT) See https://www.iana.org/assignments/media-types/media-types.xhtml.
rawBytes This property is required. String
The content represented as a stream of bytes. The maximum length is 1,000,000 bytes (1 MB / ~0.95 MiB). Note: As with all bytes fields, this field is represented as pure binary in Protocol Buffers and base64-encoded string in JSON. For example, abc123!?$*&()'-=@~ should be represented as YWJjMTIzIT8kKiYoKSctPUB+ in JSON. See https://developers.google.com/protocol-buffers/docs/proto3#json.
uri This property is required. String
The URI of the content. Only Cloud Storage URIs (e.g. gs://bucket-name/path/to/file) are supported. The maximum file size is 100 MB.
mimeType This property is required. string
The MIME type of the content. Supported types: * application/pdf (PDF, only native PDFs are supported for now) * text/html (HTML) * application/vnd.openxmlformats-officedocument.wordprocessingml.document (DOCX) * application/vnd.openxmlformats-officedocument.presentationml.presentation (PPTX) * text/plain (TXT) See https://www.iana.org/assignments/media-types/media-types.xhtml.
rawBytes This property is required. string
The content represented as a stream of bytes. The maximum length is 1,000,000 bytes (1 MB / ~0.95 MiB). Note: As with all bytes fields, this field is represented as pure binary in Protocol Buffers and base64-encoded string in JSON. For example, abc123!?$*&()'-=@~ should be represented as YWJjMTIzIT8kKiYoKSctPUB+ in JSON. See https://developers.google.com/protocol-buffers/docs/proto3#json.
uri This property is required. string
The URI of the content. Only Cloud Storage URIs (e.g. gs://bucket-name/path/to/file) are supported. The maximum file size is 100 MB.
mime_type This property is required. str
The MIME type of the content. Supported types: * application/pdf (PDF, only native PDFs are supported for now) * text/html (HTML) * application/vnd.openxmlformats-officedocument.wordprocessingml.document (DOCX) * application/vnd.openxmlformats-officedocument.presentationml.presentation (PPTX) * text/plain (TXT) See https://www.iana.org/assignments/media-types/media-types.xhtml.
raw_bytes This property is required. str
The content represented as a stream of bytes. The maximum length is 1,000,000 bytes (1 MB / ~0.95 MiB). Note: As with all bytes fields, this field is represented as pure binary in Protocol Buffers and base64-encoded string in JSON. For example, abc123!?$*&()'-=@~ should be represented as YWJjMTIzIT8kKiYoKSctPUB+ in JSON. See https://developers.google.com/protocol-buffers/docs/proto3#json.
uri This property is required. str
The URI of the content. Only Cloud Storage URIs (e.g. gs://bucket-name/path/to/file) are supported. The maximum file size is 100 MB.
mimeType This property is required. String
The MIME type of the content. Supported types: * application/pdf (PDF, only native PDFs are supported for now) * text/html (HTML) * application/vnd.openxmlformats-officedocument.wordprocessingml.document (DOCX) * application/vnd.openxmlformats-officedocument.presentationml.presentation (PPTX) * text/plain (TXT) See https://www.iana.org/assignments/media-types/media-types.xhtml.
rawBytes This property is required. String
The content represented as a stream of bytes. The maximum length is 1,000,000 bytes (1 MB / ~0.95 MiB). Note: As with all bytes fields, this field is represented as pure binary in Protocol Buffers and base64-encoded string in JSON. For example, abc123!?$*&()'-=@~ should be represented as YWJjMTIzIT8kKiYoKSctPUB+ in JSON. See https://developers.google.com/protocol-buffers/docs/proto3#json.
uri This property is required. String
The URI of the content. Only Cloud Storage URIs (e.g. gs://bucket-name/path/to/file) are supported. The maximum file size is 100 MB.

Package Details

Repository
Google Cloud Native pulumi/pulumi-google-native
License
Apache-2.0

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi