github.com/hashicorp/hcp-sdk-go@v0.94.0/clients/cloud-billing/preview/2020-11-05/models/billing20201105_customized_input.go (about) 1 // Code generated by go-swagger; DO NOT EDIT. 2 3 package models 4 5 // This file was generated by the swagger tool. 6 // Editing this file might prove futile when you re-run the swagger generate command 7 8 import ( 9 "context" 10 11 "github.com/go-openapi/strfmt" 12 "github.com/go-openapi/swag" 13 ) 14 15 // Billing20201105CustomizedInput CustomizedInput allows the quantity of dependent products (i.e. number of Vault Clients for a Vault Cluster) to be specified for the cost estimation. 16 // 17 // swagger:model billing_20201105CustomizedInput 18 type Billing20201105CustomizedInput struct { 19 20 // item_key is the item key that had the product key in the package. 21 ItemKey string `json:"item_key,omitempty"` 22 23 // quantity describes the value that corresponds to each item_key key. It is the estimated hourly usage. 24 Quantity int32 `json:"quantity,omitempty"` 25 } 26 27 // Validate validates this billing 20201105 customized input 28 func (m *Billing20201105CustomizedInput) Validate(formats strfmt.Registry) error { 29 return nil 30 } 31 32 // ContextValidate validates this billing 20201105 customized input based on context it is used 33 func (m *Billing20201105CustomizedInput) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 34 return nil 35 } 36 37 // MarshalBinary interface implementation 38 func (m *Billing20201105CustomizedInput) MarshalBinary() ([]byte, error) { 39 if m == nil { 40 return nil, nil 41 } 42 return swag.WriteJSON(m) 43 } 44 45 // UnmarshalBinary interface implementation 46 func (m *Billing20201105CustomizedInput) UnmarshalBinary(b []byte) error { 47 var res Billing20201105CustomizedInput 48 if err := swag.ReadJSON(b, &res); err != nil { 49 return err 50 } 51 *m = res 52 return nil 53 }