Cloud Commerce Producer V1BETA API - Class Google::Cloud::CommerceProducer::V1beta::PrivateOfferDocument (v0.3.0)

Reference documentation and code samples for the Cloud Commerce Producer V1BETA API class Google::Cloud::CommerceProducer::V1beta::PrivateOfferDocument.

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.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#create_time

def create_time() -> ::Google::Protobuf::Timestamp
Returns

#document_type

def document_type() -> ::Google::Cloud::CommerceProducer::V1beta::PrivateOfferDocument::DocumentType
Returns

#document_type=

def document_type=(value) -> ::Google::Cloud::CommerceProducer::V1beta::PrivateOfferDocument::DocumentType
Parameter
Returns

#inline_content

def inline_content() -> ::String
Returns
  • (::String) — Optional. Byte content of an unstructured document. Max size: 4MB

#inline_content=

def inline_content=(value) -> ::String
Parameter
  • value (::String) — Optional. Byte content of an unstructured document. Max size: 4MB
Returns
  • (::String) — Optional. Byte content of an unstructured document. Max size: 4MB

#mime_type

def mime_type() -> ::String
Returns
  • (::String) —

    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'

#mime_type=

def mime_type=(value) -> ::String
Parameter
  • value (::String) —

    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'
Returns
  • (::String) —

    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'

#name

def name() -> ::String
Returns
  • (::String) — Identifier. Name of the resource.

#name=

def name=(value) -> ::String
Parameter
  • value (::String) — Identifier. Name of the resource.
Returns
  • (::String) — Identifier. Name of the resource.

#update_time

def update_time() -> ::Google::Protobuf::Timestamp
Returns