Class PrivateOfferDocument (0.1.3)

PrivateOfferDocument(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Message describing the PrivateOfferDocument resource. Used to attach documents to a private offer in state DRAFT. Once a private offer is no longer in state DRAFT, the set of child documents is immutable. Existing documents cannot be updated or deleted, and new documents cannot be added.

A private offer may have at most one document of each type, and may not have both a standard EULA and a custom EULA.

Which document types are required, optional, or not permitted depends on the service the offer is for, and is returned in Service.document_requirement.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

Name Description
inline_content bytes
Optional. Byte content of an unstructured document. Max size: 4MB This field is a member of oneof_ content.
name str
Identifier. Name of the resource.
create_time google.protobuf.timestamp_pb2.Timestamp
Output only. The creation time of the resource.
update_time google.protobuf.timestamp_pb2.Timestamp
Output only. The last update time of the resource.
document_type google.cloud.commerceproducer_v1beta.types.PrivateOfferDocument.DocumentType
Required. The classification type of the document. Used to distinguish between different types of documents that may be attached to a private offer for different business purposes.
mime_type str
Optional. The MIME type of the document. Used to distinguish between different document formats. Supported formats (which may be expanded in the future) - 'application/pdf'

Classes

DocumentType

DocumentType(value)

Supported types of documents. Additional document types may be added in future. Further editions of the Google Cloud Marketplace Standard EULA may be published in future, which may result in changes to the subset of Standard EULA versions permitted to be used in new offers.

    If this enum value is set, then mime_type and inline_content
    must be set.
STATEMENT_OF_WORK (2):
    The document is the statement of work described by the
    `Cloud Marketplace Product Specific
    Terms <https://cloud.google.com/terms/marketplace-product-terms>`__.
    A private offer may not have more than one statement of work
    document.

    Whether this document type is required, optional, or not
    permitted depends on the service; see
    `Service.document_requirement`.

    The mime_type and inline_content fields must be set.
STANDARD_END_USER_LICENSE_AGREEMENT_V1 (3):
    The document is the Marketplace standard EULA, with the
    following link:
    https://cloud.google.com/terms/marketplace/eula-standard-v1-12102020.

    This edition has been superseded by
    STANDARD_END_USER_LICENSE_AGREEMENT_V2. Offers created
    before that edition was published may have this document
    type, but it is not permitted on any service for new offers.
STANDARD_END_USER_LICENSE_AGREEMENT_V2 (4):
    The document is the Marketplace standard EULA, with the
    following link:
    https://cloud.google.com/terms/marketplace/eula-standard-v2-01272021

    New offers using Standard EULAs should set this enum value.
    A private offer may not have more than one standard EULA
    document, and may not have both a standard EULA and a custom
    EULA.

    Whether this document type is required, optional, or not
    permitted depends on the service; see
    `Service.document_requirement`.

    The mime_type and inline_content fields must not be set.