Represents an offer made to resellers for purchase. An offer is associated with a Sku, has a plan for payment, a price, and defines the constraints for buying.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#constraints
def constraints() -> ::Google::Cloud::Channel::V1::Constraints
Returns
- (::Google::Cloud::Channel::V1::Constraints) — Constraints on transacting the Offer.
#constraints=
def constraints=(value) -> ::Google::Cloud::Channel::V1::Constraints
Parameter
- value (::Google::Cloud::Channel::V1::Constraints) — Constraints on transacting the Offer.
Returns
- (::Google::Cloud::Channel::V1::Constraints) — Constraints on transacting the Offer.
#end_time
def end_time() -> ::Google::Protobuf::Timestamp
Returns
- (::Google::Protobuf::Timestamp) — Output only. End of the Offer validity time.
#marketing_info
def marketing_info() -> ::Google::Cloud::Channel::V1::MarketingInfo
Returns
- (::Google::Cloud::Channel::V1::MarketingInfo) — Marketing information for the Offer.
#marketing_info=
def marketing_info=(value) -> ::Google::Cloud::Channel::V1::MarketingInfo
Parameter
- value (::Google::Cloud::Channel::V1::MarketingInfo) — Marketing information for the Offer.
Returns
- (::Google::Cloud::Channel::V1::MarketingInfo) — Marketing information for the Offer.
#name
def name() -> ::String
Returns
- (::String) — Resource Name of the Offer. Format: accounts/{account_id}/offers/{offer_id}
#name=
def name=(value) -> ::String
Parameter
- value (::String) — Resource Name of the Offer. Format: accounts/{account_id}/offers/{offer_id}
Returns
- (::String) — Resource Name of the Offer. Format: accounts/{account_id}/offers/{offer_id}
#parameter_definitions
def parameter_definitions() -> ::Array<::Google::Cloud::Channel::V1::ParameterDefinition>
Returns
- (::Array<::Google::Cloud::Channel::V1::ParameterDefinition>) — Parameters required to use current Offer to purchase.
#parameter_definitions=
def parameter_definitions=(value) -> ::Array<::Google::Cloud::Channel::V1::ParameterDefinition>
Parameter
- value (::Array<::Google::Cloud::Channel::V1::ParameterDefinition>) — Parameters required to use current Offer to purchase.
Returns
- (::Array<::Google::Cloud::Channel::V1::ParameterDefinition>) — Parameters required to use current Offer to purchase.
#plan
def plan() -> ::Google::Cloud::Channel::V1::Plan
Returns
- (::Google::Cloud::Channel::V1::Plan) — Describes the payment plan for the Offer.
#plan=
def plan=(value) -> ::Google::Cloud::Channel::V1::Plan
Parameter
- value (::Google::Cloud::Channel::V1::Plan) — Describes the payment plan for the Offer.
Returns
- (::Google::Cloud::Channel::V1::Plan) — Describes the payment plan for the Offer.
#price_by_resources
def price_by_resources() -> ::Array<::Google::Cloud::Channel::V1::PriceByResource>
Returns
- (::Array<::Google::Cloud::Channel::V1::PriceByResource>) — Price for each monetizable resource type.
#price_by_resources=
def price_by_resources=(value) -> ::Array<::Google::Cloud::Channel::V1::PriceByResource>
Parameter
- value (::Array<::Google::Cloud::Channel::V1::PriceByResource>) — Price for each monetizable resource type.
Returns
- (::Array<::Google::Cloud::Channel::V1::PriceByResource>) — Price for each monetizable resource type.
#sku
def sku() -> ::Google::Cloud::Channel::V1::Sku
Returns
- (::Google::Cloud::Channel::V1::Sku) — SKU the offer is associated with.
#sku=
def sku=(value) -> ::Google::Cloud::Channel::V1::Sku
Parameter
- value (::Google::Cloud::Channel::V1::Sku) — SKU the offer is associated with.
Returns
- (::Google::Cloud::Channel::V1::Sku) — SKU the offer is associated with.
#start_time
def start_time() -> ::Google::Protobuf::Timestamp
Returns
- (::Google::Protobuf::Timestamp) — Start of the Offer validity time.
#start_time=
def start_time=(value) -> ::Google::Protobuf::Timestamp
Parameter
- value (::Google::Protobuf::Timestamp) — Start of the Offer validity time.
Returns
- (::Google::Protobuf::Timestamp) — Start of the Offer validity time.