// Purchase an offering and create a reservation.
Purchase an offering and create a reservation.
// Purchase an offering and create a reservation .
func (c *Client) PurchaseOffering(ctx context.Context, params *PurchaseOfferingInput, optFns ...func(*Options)) (*PurchaseOfferingOutput, error) {
	if params == nil {
		params = &PurchaseOfferingInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "PurchaseOffering", params, optFns, addOperationPurchaseOfferingMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*PurchaseOfferingOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) PurchaseOffering ( ctx context . Context , params * PurchaseOfferingInput , optFns ... func ( * Options ) ) ( * PurchaseOfferingOutput , error ) { if params == nil { params = & PurchaseOfferingInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationPurchaseOfferingMiddlewares ) if err != nil { return nil , err } out := result . ( * PurchaseOfferingOutput ) out . ResultMetadata = metadata return out , nil }
Purchase an offering and create a reservation.
Purchase an offering and create a reservation .