Documentation
¶
Overview ¶
Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
Index ¶
- Variables
- func CacheExpires(r *http.Response) time.Time
- func IsNil(i interface{}) bool
- func NewConfiguration() *config.Configuration
- func PtrBool(v bool) *bool
- func PtrFloat32(v float32) *float32
- func PtrFloat64(v float64) *float64
- func PtrInt(v int) *int
- func PtrInt32(v int32) *int32
- func PtrInt64(v int64) *int64
- func PtrString(v string) *string
- func PtrTime(v time.Time) *time.Time
- type APIClient
- type APIResponse
- type ApiGetCostsForProjectRequest
- func (r ApiGetCostsForProjectRequest) Accept(accept string) ApiGetCostsForProjectRequest
- func (r ApiGetCostsForProjectRequest) Depth(depth string) ApiGetCostsForProjectRequest
- func (r ApiGetCostsForProjectRequest) Execute() (*ProjectCost, error)
- func (r ApiGetCostsForProjectRequest) From(from string) ApiGetCostsForProjectRequest
- func (r ApiGetCostsForProjectRequest) Granularity(granularity string) ApiGetCostsForProjectRequest
- func (r ApiGetCostsForProjectRequest) IncludeZeroCosts(includeZeroCosts bool) ApiGetCostsForProjectRequest
- func (r ApiGetCostsForProjectRequest) To(to string) ApiGetCostsForProjectRequest
- type ApiListCostsForCustomerRequest
- func (r ApiListCostsForCustomerRequest) Accept(accept string) ApiListCostsForCustomerRequest
- func (r ApiListCostsForCustomerRequest) Depth(depth string) ApiListCostsForCustomerRequest
- func (r ApiListCostsForCustomerRequest) Execute() ([]ProjectCost, error)
- func (r ApiListCostsForCustomerRequest) From(from string) ApiListCostsForCustomerRequest
- func (r ApiListCostsForCustomerRequest) Granularity(granularity string) ApiListCostsForCustomerRequest
- func (r ApiListCostsForCustomerRequest) IncludeZeroCosts(includeZeroCosts bool) ApiListCostsForCustomerRequest
- func (r ApiListCostsForCustomerRequest) To(to string) ApiListCostsForCustomerRequest
- type ApiListCostsForResellerRequest
- func (r ApiListCostsForResellerRequest) Accept(accept string) ApiListCostsForResellerRequest
- func (r ApiListCostsForResellerRequest) Depth(depth string) ApiListCostsForResellerRequest
- func (r ApiListCostsForResellerRequest) Execute() ([]ProjectCost, error)
- func (r ApiListCostsForResellerRequest) From(from string) ApiListCostsForResellerRequest
- func (r ApiListCostsForResellerRequest) Granularity(granularity string) ApiListCostsForResellerRequest
- func (r ApiListCostsForResellerRequest) IncludeZeroCosts(includeZeroCosts bool) ApiListCostsForResellerRequest
- func (r ApiListCostsForResellerRequest) To(to string) ApiListCostsForResellerRequest
- type DefaultAPI
- type DefaultAPIService
- func (a *DefaultAPIService) GetCostsForProject(ctx context.Context, customerAccountId string, projectId string) ApiGetCostsForProjectRequest
- func (a *DefaultAPIService) GetCostsForProjectExecute(r ApiGetCostsForProjectRequest) (*ProjectCost, error)
- func (a *DefaultAPIService) ListCostsForCustomer(ctx context.Context, customerAccountId string) ApiListCostsForCustomerRequest
- func (a *DefaultAPIService) ListCostsForCustomerExecute(r ApiListCostsForCustomerRequest) ([]ProjectCost, error)
- func (a *DefaultAPIService) ListCostsForReseller(ctx context.Context, customerAccountId string) ApiListCostsForResellerRequest
- func (a *DefaultAPIService) ListCostsForResellerExecute(r ApiListCostsForResellerRequest) ([]ProjectCost, error)
- type DefaultAPIServiceMock
- func (a DefaultAPIServiceMock) GetCostsForProject(ctx context.Context, customerAccountId string, projectId string) ApiGetCostsForProjectRequest
- func (a DefaultAPIServiceMock) GetCostsForProjectExecute(r ApiGetCostsForProjectRequest) (*ProjectCost, error)
- func (a DefaultAPIServiceMock) ListCostsForCustomer(ctx context.Context, customerAccountId string) ApiListCostsForCustomerRequest
- func (a DefaultAPIServiceMock) ListCostsForCustomerExecute(r ApiListCostsForCustomerRequest) ([]ProjectCost, error)
- func (a DefaultAPIServiceMock) ListCostsForReseller(ctx context.Context, customerAccountId string) ApiListCostsForResellerRequest
- func (a DefaultAPIServiceMock) ListCostsForResellerExecute(r ApiListCostsForResellerRequest) ([]ProjectCost, error)
- type DefaultError
- func (o *DefaultError) GetCode() string
- func (o *DefaultError) GetCodeOk() (*string, bool)
- func (o *DefaultError) GetMessage() string
- func (o *DefaultError) GetMessageOk() (*string, bool)
- func (o *DefaultError) HasMessage() bool
- func (o DefaultError) MarshalJSON() ([]byte, error)
- func (o *DefaultError) SetCode(v string)
- func (o *DefaultError) SetMessage(v string)
- func (o DefaultError) ToMap() (map[string]interface{}, error)
- func (o *DefaultError) UnmarshalJSON(data []byte) (err error)
- type DetailedServiceCost
- func (o *DetailedServiceCost) GetReportData() []ReportData
- func (o *DetailedServiceCost) GetReportDataOk() ([]ReportData, bool)
- func (o *DetailedServiceCost) GetServiceCategoryName() string
- func (o *DetailedServiceCost) GetServiceCategoryNameOk() (*string, bool)
- func (o *DetailedServiceCost) GetServiceName() string
- func (o *DetailedServiceCost) GetServiceNameOk() (*string, bool)
- func (o *DetailedServiceCost) GetSku() string
- func (o *DetailedServiceCost) GetSkuOk() (*string, bool)
- func (o *DetailedServiceCost) GetTotalCharge() float64
- func (o *DetailedServiceCost) GetTotalChargeOk() (*float64, bool)
- func (o *DetailedServiceCost) GetTotalDiscount() float64
- func (o *DetailedServiceCost) GetTotalDiscountOk() (*float64, bool)
- func (o *DetailedServiceCost) GetTotalQuantity() int32
- func (o *DetailedServiceCost) GetTotalQuantityOk() (*int32, bool)
- func (o *DetailedServiceCost) GetUnitLabel() string
- func (o *DetailedServiceCost) GetUnitLabelOk() (*string, bool)
- func (o *DetailedServiceCost) HasReportData() bool
- func (o DetailedServiceCost) MarshalJSON() ([]byte, error)
- func (o *DetailedServiceCost) SetReportData(v []ReportData)
- func (o *DetailedServiceCost) SetServiceCategoryName(v string)
- func (o *DetailedServiceCost) SetServiceName(v string)
- func (o *DetailedServiceCost) SetSku(v string)
- func (o *DetailedServiceCost) SetTotalCharge(v float64)
- func (o *DetailedServiceCost) SetTotalDiscount(v float64)
- func (o *DetailedServiceCost) SetTotalQuantity(v int32)
- func (o *DetailedServiceCost) SetUnitLabel(v string)
- func (o DetailedServiceCost) ToMap() (map[string]interface{}, error)
- func (o *DetailedServiceCost) UnmarshalJSON(data []byte) (err error)
- type MappedNullable
- type NullableBool
- type NullableDefaultError
- func (v NullableDefaultError) Get() *DefaultError
- func (v NullableDefaultError) IsSet() bool
- func (v NullableDefaultError) MarshalJSON() ([]byte, error)
- func (v *NullableDefaultError) Set(val *DefaultError)
- func (v *NullableDefaultError) UnmarshalJSON(src []byte) error
- func (v *NullableDefaultError) Unset()
- type NullableDetailedServiceCost
- func (v NullableDetailedServiceCost) Get() *DetailedServiceCost
- func (v NullableDetailedServiceCost) IsSet() bool
- func (v NullableDetailedServiceCost) MarshalJSON() ([]byte, error)
- func (v *NullableDetailedServiceCost) Set(val *DetailedServiceCost)
- func (v *NullableDetailedServiceCost) UnmarshalJSON(src []byte) error
- func (v *NullableDetailedServiceCost) Unset()
- type NullableFloat32
- type NullableFloat64
- type NullableInt
- type NullableInt32
- type NullableInt64
- type NullableProjectCost
- func (v NullableProjectCost) Get() *ProjectCost
- func (v NullableProjectCost) IsSet() bool
- func (v NullableProjectCost) MarshalJSON() ([]byte, error)
- func (v *NullableProjectCost) Set(val *ProjectCost)
- func (v *NullableProjectCost) UnmarshalJSON(src []byte) error
- func (v *NullableProjectCost) Unset()
- type NullableProjectCostWithDetailedServices
- func (v NullableProjectCostWithDetailedServices) Get() *ProjectCostWithDetailedServices
- func (v NullableProjectCostWithDetailedServices) IsSet() bool
- func (v NullableProjectCostWithDetailedServices) MarshalJSON() ([]byte, error)
- func (v *NullableProjectCostWithDetailedServices) Set(val *ProjectCostWithDetailedServices)
- func (v *NullableProjectCostWithDetailedServices) UnmarshalJSON(src []byte) error
- func (v *NullableProjectCostWithDetailedServices) Unset()
- type NullableProjectCostWithReports
- func (v NullableProjectCostWithReports) Get() *ProjectCostWithReports
- func (v NullableProjectCostWithReports) IsSet() bool
- func (v NullableProjectCostWithReports) MarshalJSON() ([]byte, error)
- func (v *NullableProjectCostWithReports) Set(val *ProjectCostWithReports)
- func (v *NullableProjectCostWithReports) UnmarshalJSON(src []byte) error
- func (v *NullableProjectCostWithReports) Unset()
- type NullableProjectCostWithSummarizedServices
- func (v NullableProjectCostWithSummarizedServices) Get() *ProjectCostWithSummarizedServices
- func (v NullableProjectCostWithSummarizedServices) IsSet() bool
- func (v NullableProjectCostWithSummarizedServices) MarshalJSON() ([]byte, error)
- func (v *NullableProjectCostWithSummarizedServices) Set(val *ProjectCostWithSummarizedServices)
- func (v *NullableProjectCostWithSummarizedServices) UnmarshalJSON(src []byte) error
- func (v *NullableProjectCostWithSummarizedServices) Unset()
- type NullableReportData
- type NullableReportDataTimePeriod
- func (v NullableReportDataTimePeriod) Get() *ReportDataTimePeriod
- func (v NullableReportDataTimePeriod) IsSet() bool
- func (v NullableReportDataTimePeriod) MarshalJSON() ([]byte, error)
- func (v *NullableReportDataTimePeriod) Set(val *ReportDataTimePeriod)
- func (v *NullableReportDataTimePeriod) UnmarshalJSON(src []byte) error
- func (v *NullableReportDataTimePeriod) Unset()
- type NullableString
- type NullableSummarizedProjectCost
- func (v NullableSummarizedProjectCost) Get() *SummarizedProjectCost
- func (v NullableSummarizedProjectCost) IsSet() bool
- func (v NullableSummarizedProjectCost) MarshalJSON() ([]byte, error)
- func (v *NullableSummarizedProjectCost) Set(val *SummarizedProjectCost)
- func (v *NullableSummarizedProjectCost) UnmarshalJSON(src []byte) error
- func (v *NullableSummarizedProjectCost) Unset()
- type NullableSummarizedServiceCost
- func (v NullableSummarizedServiceCost) Get() *SummarizedServiceCost
- func (v NullableSummarizedServiceCost) IsSet() bool
- func (v NullableSummarizedServiceCost) MarshalJSON() ([]byte, error)
- func (v *NullableSummarizedServiceCost) Set(val *SummarizedServiceCost)
- func (v *NullableSummarizedServiceCost) UnmarshalJSON(src []byte) error
- func (v *NullableSummarizedServiceCost) Unset()
- type NullableTime
- type ProjectCost
- type ProjectCostWithDetailedServices
- func (o *ProjectCostWithDetailedServices) GetCustomerAccountId() string
- func (o *ProjectCostWithDetailedServices) GetCustomerAccountIdOk() (*string, bool)
- func (o *ProjectCostWithDetailedServices) GetProjectId() string
- func (o *ProjectCostWithDetailedServices) GetProjectIdOk() (*string, bool)
- func (o *ProjectCostWithDetailedServices) GetProjectName() string
- func (o *ProjectCostWithDetailedServices) GetProjectNameOk() (*string, bool)
- func (o *ProjectCostWithDetailedServices) GetServices() []DetailedServiceCost
- func (o *ProjectCostWithDetailedServices) GetServicesOk() ([]DetailedServiceCost, bool)
- func (o *ProjectCostWithDetailedServices) GetTotalCharge() float64
- func (o *ProjectCostWithDetailedServices) GetTotalChargeOk() (*float64, bool)
- func (o *ProjectCostWithDetailedServices) GetTotalDiscount() float64
- func (o *ProjectCostWithDetailedServices) GetTotalDiscountOk() (*float64, bool)
- func (o *ProjectCostWithDetailedServices) HasServices() bool
- func (o ProjectCostWithDetailedServices) MarshalJSON() ([]byte, error)
- func (o *ProjectCostWithDetailedServices) SetCustomerAccountId(v string)
- func (o *ProjectCostWithDetailedServices) SetProjectId(v string)
- func (o *ProjectCostWithDetailedServices) SetProjectName(v string)
- func (o *ProjectCostWithDetailedServices) SetServices(v []DetailedServiceCost)
- func (o *ProjectCostWithDetailedServices) SetTotalCharge(v float64)
- func (o *ProjectCostWithDetailedServices) SetTotalDiscount(v float64)
- func (o ProjectCostWithDetailedServices) ToMap() (map[string]interface{}, error)
- func (o *ProjectCostWithDetailedServices) UnmarshalJSON(data []byte) (err error)
- type ProjectCostWithReports
- func (o *ProjectCostWithReports) GetCustomerAccountId() string
- func (o *ProjectCostWithReports) GetCustomerAccountIdOk() (*string, bool)
- func (o *ProjectCostWithReports) GetProjectId() string
- func (o *ProjectCostWithReports) GetProjectIdOk() (*string, bool)
- func (o *ProjectCostWithReports) GetProjectName() string
- func (o *ProjectCostWithReports) GetProjectNameOk() (*string, bool)
- func (o *ProjectCostWithReports) GetReportData() []ReportData
- func (o *ProjectCostWithReports) GetReportDataOk() ([]ReportData, bool)
- func (o *ProjectCostWithReports) GetTotalCharge() float64
- func (o *ProjectCostWithReports) GetTotalChargeOk() (*float64, bool)
- func (o *ProjectCostWithReports) GetTotalDiscount() float64
- func (o *ProjectCostWithReports) GetTotalDiscountOk() (*float64, bool)
- func (o *ProjectCostWithReports) HasReportData() bool
- func (o ProjectCostWithReports) MarshalJSON() ([]byte, error)
- func (o *ProjectCostWithReports) SetCustomerAccountId(v string)
- func (o *ProjectCostWithReports) SetProjectId(v string)
- func (o *ProjectCostWithReports) SetProjectName(v string)
- func (o *ProjectCostWithReports) SetReportData(v []ReportData)
- func (o *ProjectCostWithReports) SetTotalCharge(v float64)
- func (o *ProjectCostWithReports) SetTotalDiscount(v float64)
- func (o ProjectCostWithReports) ToMap() (map[string]interface{}, error)
- func (o *ProjectCostWithReports) UnmarshalJSON(data []byte) (err error)
- type ProjectCostWithSummarizedServices
- func (o *ProjectCostWithSummarizedServices) GetCustomerAccountId() string
- func (o *ProjectCostWithSummarizedServices) GetCustomerAccountIdOk() (*string, bool)
- func (o *ProjectCostWithSummarizedServices) GetProjectId() string
- func (o *ProjectCostWithSummarizedServices) GetProjectIdOk() (*string, bool)
- func (o *ProjectCostWithSummarizedServices) GetProjectName() string
- func (o *ProjectCostWithSummarizedServices) GetProjectNameOk() (*string, bool)
- func (o *ProjectCostWithSummarizedServices) GetServices() []SummarizedServiceCost
- func (o *ProjectCostWithSummarizedServices) GetServicesOk() ([]SummarizedServiceCost, bool)
- func (o *ProjectCostWithSummarizedServices) GetTotalCharge() float64
- func (o *ProjectCostWithSummarizedServices) GetTotalChargeOk() (*float64, bool)
- func (o *ProjectCostWithSummarizedServices) GetTotalDiscount() float64
- func (o *ProjectCostWithSummarizedServices) GetTotalDiscountOk() (*float64, bool)
- func (o *ProjectCostWithSummarizedServices) HasServices() bool
- func (o ProjectCostWithSummarizedServices) MarshalJSON() ([]byte, error)
- func (o *ProjectCostWithSummarizedServices) SetCustomerAccountId(v string)
- func (o *ProjectCostWithSummarizedServices) SetProjectId(v string)
- func (o *ProjectCostWithSummarizedServices) SetProjectName(v string)
- func (o *ProjectCostWithSummarizedServices) SetServices(v []SummarizedServiceCost)
- func (o *ProjectCostWithSummarizedServices) SetTotalCharge(v float64)
- func (o *ProjectCostWithSummarizedServices) SetTotalDiscount(v float64)
- func (o ProjectCostWithSummarizedServices) ToMap() (map[string]interface{}, error)
- func (o *ProjectCostWithSummarizedServices) UnmarshalJSON(data []byte) (err error)
- type ReportData
- func (o *ReportData) GetCharge() float64
- func (o *ReportData) GetChargeOk() (*float64, bool)
- func (o *ReportData) GetDiscount() float64
- func (o *ReportData) GetDiscountOk() (*float64, bool)
- func (o *ReportData) GetQuantity() int32
- func (o *ReportData) GetQuantityOk() (*int32, bool)
- func (o *ReportData) GetTimePeriod() ReportDataTimePeriod
- func (o *ReportData) GetTimePeriodOk() (*ReportDataTimePeriod, bool)
- func (o ReportData) MarshalJSON() ([]byte, error)
- func (o *ReportData) SetCharge(v float64)
- func (o *ReportData) SetDiscount(v float64)
- func (o *ReportData) SetQuantity(v int32)
- func (o *ReportData) SetTimePeriod(v ReportDataTimePeriod)
- func (o ReportData) ToMap() (map[string]interface{}, error)
- func (o *ReportData) UnmarshalJSON(data []byte) (err error)
- type ReportDataTimePeriod
- func (o *ReportDataTimePeriod) GetEnd() string
- func (o *ReportDataTimePeriod) GetEndOk() (*string, bool)
- func (o *ReportDataTimePeriod) GetStart() string
- func (o *ReportDataTimePeriod) GetStartOk() (*string, bool)
- func (o *ReportDataTimePeriod) HasEnd() bool
- func (o *ReportDataTimePeriod) HasStart() bool
- func (o ReportDataTimePeriod) MarshalJSON() ([]byte, error)
- func (o *ReportDataTimePeriod) SetEnd(v string)
- func (o *ReportDataTimePeriod) SetStart(v string)
- func (o ReportDataTimePeriod) ToMap() (map[string]interface{}, error)
- func (o *ReportDataTimePeriod) UnmarshalJSON(data []byte) (err error)
- type SummarizedProjectCost
- func (o *SummarizedProjectCost) GetCustomerAccountId() string
- func (o *SummarizedProjectCost) GetCustomerAccountIdOk() (*string, bool)
- func (o *SummarizedProjectCost) GetProjectId() string
- func (o *SummarizedProjectCost) GetProjectIdOk() (*string, bool)
- func (o *SummarizedProjectCost) GetProjectName() string
- func (o *SummarizedProjectCost) GetProjectNameOk() (*string, bool)
- func (o *SummarizedProjectCost) GetTotalCharge() float64
- func (o *SummarizedProjectCost) GetTotalChargeOk() (*float64, bool)
- func (o *SummarizedProjectCost) GetTotalDiscount() float64
- func (o *SummarizedProjectCost) GetTotalDiscountOk() (*float64, bool)
- func (o SummarizedProjectCost) MarshalJSON() ([]byte, error)
- func (o *SummarizedProjectCost) SetCustomerAccountId(v string)
- func (o *SummarizedProjectCost) SetProjectId(v string)
- func (o *SummarizedProjectCost) SetProjectName(v string)
- func (o *SummarizedProjectCost) SetTotalCharge(v float64)
- func (o *SummarizedProjectCost) SetTotalDiscount(v float64)
- func (o SummarizedProjectCost) ToMap() (map[string]interface{}, error)
- func (o *SummarizedProjectCost) UnmarshalJSON(data []byte) (err error)
- type SummarizedServiceCost
- func (o *SummarizedServiceCost) GetCustomerAccountId() string
- func (o *SummarizedServiceCost) GetCustomerAccountIdOk() (*string, bool)
- func (o *SummarizedServiceCost) GetProjectId() string
- func (o *SummarizedServiceCost) GetProjectIdOk() (*string, bool)
- func (o *SummarizedServiceCost) GetProjectName() string
- func (o *SummarizedServiceCost) GetProjectNameOk() (*string, bool)
- func (o *SummarizedServiceCost) GetTotalCharge() float64
- func (o *SummarizedServiceCost) GetTotalChargeOk() (*float64, bool)
- func (o *SummarizedServiceCost) GetTotalDiscount() float64
- func (o *SummarizedServiceCost) GetTotalDiscountOk() (*float64, bool)
- func (o SummarizedServiceCost) MarshalJSON() ([]byte, error)
- func (o *SummarizedServiceCost) SetCustomerAccountId(v string)
- func (o *SummarizedServiceCost) SetProjectId(v string)
- func (o *SummarizedServiceCost) SetProjectName(v string)
- func (o *SummarizedServiceCost) SetTotalCharge(v float64)
- func (o *SummarizedServiceCost) SetTotalDiscount(v float64)
- func (o SummarizedServiceCost) ToMap() (map[string]interface{}, error)
- func (o *SummarizedServiceCost) UnmarshalJSON(data []byte) (err error)
Constants ¶
This section is empty.
Variables ¶
var ( JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`) XmlCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`) )
Functions ¶
func CacheExpires ¶
CacheExpires helper function to determine remaining time before repeating a request.
func NewConfiguration ¶
func NewConfiguration() *config.Configuration
NewConfiguration returns a new Configuration object
func PtrFloat32 ¶
PtrFloat32 is a helper routine that returns a pointer to given float value.
func PtrFloat64 ¶
PtrFloat64 is a helper routine that returns a pointer to given float value.
Types ¶
type APIClient ¶
type APIClient struct {
DefaultAPI DefaultAPI
// contains filtered or unexported fields
}
APIClient manages communication with the STACKIT Cost API API v3.0 In most cases there should be only one, shared, APIClient.
func NewAPIClient ¶
func NewAPIClient(opts ...config.ConfigurationOption) (*APIClient, error)
NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.
func (*APIClient) GetConfig ¶
func (c *APIClient) GetConfig() *config.Configuration
Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior
type APIResponse ¶
type APIResponse struct {
*http.Response `json:"-"`
Message string `json:"message,omitempty"`
// Operation is the name of the OpenAPI operation.
Operation string `json:"operation,omitempty"`
// RequestURL is the request URL. This value is always available, even if the
// embedded *http.Response is nil.
RequestURL string `json:"url,omitempty"`
// Method is the HTTP method used for the request. This value is always
// available, even if the embedded *http.Response is nil.
Method string `json:"method,omitempty"`
// Payload holds the contents of the response body (which may be nil or empty).
// This is provided here as the raw response.Body() reader will have already
// been drained.
Payload []byte `json:"-"`
}
APIResponse stores the API response returned by the server.
func NewAPIResponse ¶
func NewAPIResponse(r *http.Response) *APIResponse
NewAPIResponse returns a new APIResponse object.
func NewAPIResponseWithError ¶
func NewAPIResponseWithError(errorMessage string) *APIResponse
NewAPIResponseWithError returns a new APIResponse object with the provided error message.
type ApiGetCostsForProjectRequest ¶
type ApiGetCostsForProjectRequest struct {
ApiService DefaultAPI
// contains filtered or unexported fields
}
func (ApiGetCostsForProjectRequest) Accept ¶
func (r ApiGetCostsForProjectRequest) Accept(accept string) ApiGetCostsForProjectRequest
Desired content type
func (ApiGetCostsForProjectRequest) Depth ¶
func (r ApiGetCostsForProjectRequest) Depth(depth string) ApiGetCostsForProjectRequest
Depth of desired cost information. \"project\" provides costs grouped by project, without services. \"service\" provides costs separated on service level.
func (ApiGetCostsForProjectRequest) Execute ¶
func (r ApiGetCostsForProjectRequest) Execute() (*ProjectCost, error)
func (ApiGetCostsForProjectRequest) From ¶
func (r ApiGetCostsForProjectRequest) From(from string) ApiGetCostsForProjectRequest
Inclusive start date of the selection range. Internally, usages are recorded in UTC. This means all usages starting on and after 00:00:00 UTC on the specified date are included.
func (ApiGetCostsForProjectRequest) Granularity ¶
func (r ApiGetCostsForProjectRequest) Granularity(granularity string) ApiGetCostsForProjectRequest
Define granularity of costs – Default is \"none\" which does NOT include detailed report data. If \"monthly\", \"weekly\" or \"yearly\" is requested, the \"from\" parameter SHOULD be the first day and the \"to\" parameter SHOULD be the last day of that time period. If not, they are normalized accordingly. If \"daily\" is requested, the date range defined by \"from\" and \"to\" MUST NOT be longer than 92 days.
func (ApiGetCostsForProjectRequest) IncludeZeroCosts ¶
func (r ApiGetCostsForProjectRequest) IncludeZeroCosts(includeZeroCosts bool) ApiGetCostsForProjectRequest
Whether costs of 0 should be included in the response
func (ApiGetCostsForProjectRequest) To ¶
func (r ApiGetCostsForProjectRequest) To(to string) ApiGetCostsForProjectRequest
Inclusive end date of the selection range. Internally, usages are recorded in UTC. This means all usages starting up to and including 23:59:59 UTC on the specified date are included.
type ApiListCostsForCustomerRequest ¶
type ApiListCostsForCustomerRequest struct {
ApiService DefaultAPI
// contains filtered or unexported fields
}
func (ApiListCostsForCustomerRequest) Accept ¶
func (r ApiListCostsForCustomerRequest) Accept(accept string) ApiListCostsForCustomerRequest
Desired content type
func (ApiListCostsForCustomerRequest) Depth ¶
func (r ApiListCostsForCustomerRequest) Depth(depth string) ApiListCostsForCustomerRequest
Depth of desired cost information. \"project\" provides costs grouped by project, without services. \"service\" provides costs separated on service level.
func (ApiListCostsForCustomerRequest) Execute ¶
func (r ApiListCostsForCustomerRequest) Execute() ([]ProjectCost, error)
func (ApiListCostsForCustomerRequest) From ¶
func (r ApiListCostsForCustomerRequest) From(from string) ApiListCostsForCustomerRequest
Inclusive start date of the selection range. Internally, usages are recorded in UTC. This means all usages starting on and after 00:00:00 UTC on the specified date are included.
func (ApiListCostsForCustomerRequest) Granularity ¶
func (r ApiListCostsForCustomerRequest) Granularity(granularity string) ApiListCostsForCustomerRequest
Define granularity of costs – Default is \"none\" which does NOT include detailed report data. If \"monthly\", \"weekly\" or \"yearly\" is requested, the \"from\" parameter SHOULD be the first day and the \"to\" parameter SHOULD be the last day of that time period. If not, they are normalized accordingly. If \"daily\" is requested, the date range defined by \"from\" and \"to\" MUST NOT be longer than 92 days.
func (ApiListCostsForCustomerRequest) IncludeZeroCosts ¶
func (r ApiListCostsForCustomerRequest) IncludeZeroCosts(includeZeroCosts bool) ApiListCostsForCustomerRequest
Whether costs of 0 should be included in the response
func (ApiListCostsForCustomerRequest) To ¶
func (r ApiListCostsForCustomerRequest) To(to string) ApiListCostsForCustomerRequest
Inclusive end date of the selection range. Internally, usages are recorded in UTC. This means all usages starting up to and including 23:59:59 UTC on the specified date are included.
type ApiListCostsForResellerRequest ¶
type ApiListCostsForResellerRequest struct {
ApiService DefaultAPI
// contains filtered or unexported fields
}
func (ApiListCostsForResellerRequest) Accept ¶
func (r ApiListCostsForResellerRequest) Accept(accept string) ApiListCostsForResellerRequest
Desired content type
func (ApiListCostsForResellerRequest) Depth ¶
func (r ApiListCostsForResellerRequest) Depth(depth string) ApiListCostsForResellerRequest
Depth of desired cost information. \"project\" provides costs grouped by project, without services. \"service\" provides costs separated on service level.
func (ApiListCostsForResellerRequest) Execute ¶
func (r ApiListCostsForResellerRequest) Execute() ([]ProjectCost, error)
func (ApiListCostsForResellerRequest) From ¶
func (r ApiListCostsForResellerRequest) From(from string) ApiListCostsForResellerRequest
Inclusive start date of the selection range. Internally, usages are recorded in UTC. This means all usages starting on and after 00:00:00 UTC on the specified date are included.
func (ApiListCostsForResellerRequest) Granularity ¶
func (r ApiListCostsForResellerRequest) Granularity(granularity string) ApiListCostsForResellerRequest
Define granularity of costs – Default is \"none\" which does NOT include detailed report data. If \"monthly\", \"weekly\" or \"yearly\" is requested, the \"from\" parameter SHOULD be the first day and the \"to\" parameter SHOULD be the last day of that time period. If not, they are normalized accordingly. If \"daily\" is requested, the date range defined by \"from\" and \"to\" MUST NOT be longer than 92 days.
func (ApiListCostsForResellerRequest) IncludeZeroCosts ¶
func (r ApiListCostsForResellerRequest) IncludeZeroCosts(includeZeroCosts bool) ApiListCostsForResellerRequest
Whether costs of 0 should be included in the response
func (ApiListCostsForResellerRequest) To ¶
func (r ApiListCostsForResellerRequest) To(to string) ApiListCostsForResellerRequest
Inclusive end date of the selection range. Internally, usages are recorded in UTC. This means all usages starting up to and including 23:59:59 UTC on the specified date are included.
type DefaultAPI ¶
type DefaultAPI interface {
/*
GetCostsForProject V3 Costs for a certain project
Get costs for a certain project in a customer account
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param customerAccountId ID of a customer account
@param projectId ID of a project
@return ApiGetCostsForProjectRequest
*/
GetCostsForProject(ctx context.Context, customerAccountId string, projectId string) ApiGetCostsForProjectRequest
// GetCostsForProjectExecute executes the request
// @return ProjectCost
GetCostsForProjectExecute(r ApiGetCostsForProjectRequest) (*ProjectCost, error)
/*
ListCostsForCustomer V3 Costs for all projects
Get costs for all projects in a customer account
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param customerAccountId ID of a customer account
@return ApiListCostsForCustomerRequest
*/
ListCostsForCustomer(ctx context.Context, customerAccountId string) ApiListCostsForCustomerRequest
// ListCostsForCustomerExecute executes the request
// @return []ProjectCost
ListCostsForCustomerExecute(r ApiListCostsForCustomerRequest) ([]ProjectCost, error)
/*
ListCostsForReseller V3 Costs for all projects of all related sub-customers
Get costs for all projects of all related sub-customer accounts
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param customerAccountId ID of a customer account
@return ApiListCostsForResellerRequest
*/
ListCostsForReseller(ctx context.Context, customerAccountId string) ApiListCostsForResellerRequest
// ListCostsForResellerExecute executes the request
// @return []ProjectCost
ListCostsForResellerExecute(r ApiListCostsForResellerRequest) ([]ProjectCost, error)
}
type DefaultAPIService ¶
type DefaultAPIService service
DefaultAPIService DefaultAPI service
func (*DefaultAPIService) GetCostsForProject ¶
func (a *DefaultAPIService) GetCostsForProject(ctx context.Context, customerAccountId string, projectId string) ApiGetCostsForProjectRequest
GetCostsForProject V3 Costs for a certain project
Get costs for a certain project in a customer account
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param customerAccountId ID of a customer account @param projectId ID of a project @return ApiGetCostsForProjectRequest
func (*DefaultAPIService) GetCostsForProjectExecute ¶
func (a *DefaultAPIService) GetCostsForProjectExecute(r ApiGetCostsForProjectRequest) (*ProjectCost, error)
Execute executes the request
@return ProjectCost
func (*DefaultAPIService) ListCostsForCustomer ¶
func (a *DefaultAPIService) ListCostsForCustomer(ctx context.Context, customerAccountId string) ApiListCostsForCustomerRequest
ListCostsForCustomer V3 Costs for all projects
Get costs for all projects in a customer account
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param customerAccountId ID of a customer account @return ApiListCostsForCustomerRequest
func (*DefaultAPIService) ListCostsForCustomerExecute ¶
func (a *DefaultAPIService) ListCostsForCustomerExecute(r ApiListCostsForCustomerRequest) ([]ProjectCost, error)
Execute executes the request
@return []ProjectCost
func (*DefaultAPIService) ListCostsForReseller ¶
func (a *DefaultAPIService) ListCostsForReseller(ctx context.Context, customerAccountId string) ApiListCostsForResellerRequest
ListCostsForReseller V3 Costs for all projects of all related sub-customers
Get costs for all projects of all related sub-customer accounts
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param customerAccountId ID of a customer account @return ApiListCostsForResellerRequest
func (*DefaultAPIService) ListCostsForResellerExecute ¶
func (a *DefaultAPIService) ListCostsForResellerExecute(r ApiListCostsForResellerRequest) ([]ProjectCost, error)
Execute executes the request
@return []ProjectCost
type DefaultAPIServiceMock ¶
type DefaultAPIServiceMock struct {
// GetCostsForProjectExecuteMock can be populated to implement the behavior of the GetCostsForProjectExecute function of this mock
GetCostsForProjectExecuteMock *func(r ApiGetCostsForProjectRequest) (*ProjectCost, error)
// ListCostsForCustomerExecuteMock can be populated to implement the behavior of the ListCostsForCustomerExecute function of this mock
ListCostsForCustomerExecuteMock *func(r ApiListCostsForCustomerRequest) ([]ProjectCost, error)
// ListCostsForResellerExecuteMock can be populated to implement the behavior of the ListCostsForResellerExecute function of this mock
ListCostsForResellerExecuteMock *func(r ApiListCostsForResellerRequest) ([]ProjectCost, error)
}
DefaultAPIServiceMock is meant to be used for testing only as a replacement for DefaultAPIService. By default all FooExecute() implementations are a no-op. Behavior of the mock can be customized by populating the callbacks in this struct.
func (DefaultAPIServiceMock) GetCostsForProject ¶
func (a DefaultAPIServiceMock) GetCostsForProject(ctx context.Context, customerAccountId string, projectId string) ApiGetCostsForProjectRequest
func (DefaultAPIServiceMock) GetCostsForProjectExecute ¶
func (a DefaultAPIServiceMock) GetCostsForProjectExecute(r ApiGetCostsForProjectRequest) (*ProjectCost, error)
GetCostsForProjectExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetCostsForProjectExecuteMock field in the DefaultAPIServiceMock struct.
func (DefaultAPIServiceMock) ListCostsForCustomer ¶
func (a DefaultAPIServiceMock) ListCostsForCustomer(ctx context.Context, customerAccountId string) ApiListCostsForCustomerRequest
func (DefaultAPIServiceMock) ListCostsForCustomerExecute ¶
func (a DefaultAPIServiceMock) ListCostsForCustomerExecute(r ApiListCostsForCustomerRequest) ([]ProjectCost, error)
ListCostsForCustomerExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListCostsForCustomerExecuteMock field in the DefaultAPIServiceMock struct.
func (DefaultAPIServiceMock) ListCostsForReseller ¶
func (a DefaultAPIServiceMock) ListCostsForReseller(ctx context.Context, customerAccountId string) ApiListCostsForResellerRequest
func (DefaultAPIServiceMock) ListCostsForResellerExecute ¶
func (a DefaultAPIServiceMock) ListCostsForResellerExecute(r ApiListCostsForResellerRequest) ([]ProjectCost, error)
ListCostsForResellerExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListCostsForResellerExecuteMock field in the DefaultAPIServiceMock struct.
type DefaultError ¶
type DefaultError struct {
Code string `json:"code"`
Message *string `json:"message,omitempty"`
AdditionalProperties map[string]interface{}
}
DefaultError A standard error object.
func NewDefaultError ¶
func NewDefaultError(code string) *DefaultError
NewDefaultError instantiates a new DefaultError object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewDefaultErrorWithDefaults ¶
func NewDefaultErrorWithDefaults() *DefaultError
NewDefaultErrorWithDefaults instantiates a new DefaultError object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*DefaultError) GetCode ¶
func (o *DefaultError) GetCode() string
GetCode returns the Code field value
func (*DefaultError) GetCodeOk ¶
func (o *DefaultError) GetCodeOk() (*string, bool)
GetCodeOk returns a tuple with the Code field value and a boolean to check if the value has been set.
func (*DefaultError) GetMessage ¶
func (o *DefaultError) GetMessage() string
GetMessage returns the Message field value if set, zero value otherwise.
func (*DefaultError) GetMessageOk ¶
func (o *DefaultError) GetMessageOk() (*string, bool)
GetMessageOk returns a tuple with the Message field value if set, nil otherwise and a boolean to check if the value has been set.
func (*DefaultError) HasMessage ¶
func (o *DefaultError) HasMessage() bool
HasMessage returns a boolean if a field has been set.
func (DefaultError) MarshalJSON ¶
func (o DefaultError) MarshalJSON() ([]byte, error)
func (*DefaultError) SetMessage ¶
func (o *DefaultError) SetMessage(v string)
SetMessage gets a reference to the given string and assigns it to the Message field.
func (DefaultError) ToMap ¶
func (o DefaultError) ToMap() (map[string]interface{}, error)
func (*DefaultError) UnmarshalJSON ¶
func (o *DefaultError) UnmarshalJSON(data []byte) (err error)
type DetailedServiceCost ¶
type DetailedServiceCost struct {
// Detailed service costs which are ONLY included if granularity is provided
ReportData []ReportData `json:"reportData,omitempty"`
// Service category name
ServiceCategoryName string `json:"serviceCategoryName"`
// Name of the service
ServiceName string `json:"serviceName"`
// Service key
Sku string `json:"sku"`
// Total charge (including discounts) for all services and the whole requested date range (value in cents)
TotalCharge float64 `json:"totalCharge"`
// Total discount for all services and the whole requested date range (value in cents)
TotalDiscount float64 `json:"totalDiscount"`
// Total quantity
TotalQuantity int32 `json:"totalQuantity"`
// Label for unit
UnitLabel string `json:"unitLabel"`
AdditionalProperties map[string]interface{}
}
DetailedServiceCost Costs for a single service
func NewDetailedServiceCost ¶
func NewDetailedServiceCost(serviceCategoryName string, serviceName string, sku string, totalCharge float64, totalDiscount float64, totalQuantity int32, unitLabel string) *DetailedServiceCost
NewDetailedServiceCost instantiates a new DetailedServiceCost object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewDetailedServiceCostWithDefaults ¶
func NewDetailedServiceCostWithDefaults() *DetailedServiceCost
NewDetailedServiceCostWithDefaults instantiates a new DetailedServiceCost object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*DetailedServiceCost) GetReportData ¶
func (o *DetailedServiceCost) GetReportData() []ReportData
GetReportData returns the ReportData field value if set, zero value otherwise.
func (*DetailedServiceCost) GetReportDataOk ¶
func (o *DetailedServiceCost) GetReportDataOk() ([]ReportData, bool)
GetReportDataOk returns a tuple with the ReportData field value if set, nil otherwise and a boolean to check if the value has been set.
func (*DetailedServiceCost) GetServiceCategoryName ¶
func (o *DetailedServiceCost) GetServiceCategoryName() string
GetServiceCategoryName returns the ServiceCategoryName field value
func (*DetailedServiceCost) GetServiceCategoryNameOk ¶
func (o *DetailedServiceCost) GetServiceCategoryNameOk() (*string, bool)
GetServiceCategoryNameOk returns a tuple with the ServiceCategoryName field value and a boolean to check if the value has been set.
func (*DetailedServiceCost) GetServiceName ¶
func (o *DetailedServiceCost) GetServiceName() string
GetServiceName returns the ServiceName field value
func (*DetailedServiceCost) GetServiceNameOk ¶
func (o *DetailedServiceCost) GetServiceNameOk() (*string, bool)
GetServiceNameOk returns a tuple with the ServiceName field value and a boolean to check if the value has been set.
func (*DetailedServiceCost) GetSku ¶
func (o *DetailedServiceCost) GetSku() string
GetSku returns the Sku field value
func (*DetailedServiceCost) GetSkuOk ¶
func (o *DetailedServiceCost) GetSkuOk() (*string, bool)
GetSkuOk returns a tuple with the Sku field value and a boolean to check if the value has been set.
func (*DetailedServiceCost) GetTotalCharge ¶
func (o *DetailedServiceCost) GetTotalCharge() float64
GetTotalCharge returns the TotalCharge field value
func (*DetailedServiceCost) GetTotalChargeOk ¶
func (o *DetailedServiceCost) GetTotalChargeOk() (*float64, bool)
GetTotalChargeOk returns a tuple with the TotalCharge field value and a boolean to check if the value has been set.
func (*DetailedServiceCost) GetTotalDiscount ¶
func (o *DetailedServiceCost) GetTotalDiscount() float64
GetTotalDiscount returns the TotalDiscount field value
func (*DetailedServiceCost) GetTotalDiscountOk ¶
func (o *DetailedServiceCost) GetTotalDiscountOk() (*float64, bool)
GetTotalDiscountOk returns a tuple with the TotalDiscount field value and a boolean to check if the value has been set.
func (*DetailedServiceCost) GetTotalQuantity ¶
func (o *DetailedServiceCost) GetTotalQuantity() int32
GetTotalQuantity returns the TotalQuantity field value
func (*DetailedServiceCost) GetTotalQuantityOk ¶
func (o *DetailedServiceCost) GetTotalQuantityOk() (*int32, bool)
GetTotalQuantityOk returns a tuple with the TotalQuantity field value and a boolean to check if the value has been set.
func (*DetailedServiceCost) GetUnitLabel ¶
func (o *DetailedServiceCost) GetUnitLabel() string
GetUnitLabel returns the UnitLabel field value
func (*DetailedServiceCost) GetUnitLabelOk ¶
func (o *DetailedServiceCost) GetUnitLabelOk() (*string, bool)
GetUnitLabelOk returns a tuple with the UnitLabel field value and a boolean to check if the value has been set.
func (*DetailedServiceCost) HasReportData ¶
func (o *DetailedServiceCost) HasReportData() bool
HasReportData returns a boolean if a field has been set.
func (DetailedServiceCost) MarshalJSON ¶
func (o DetailedServiceCost) MarshalJSON() ([]byte, error)
func (*DetailedServiceCost) SetReportData ¶
func (o *DetailedServiceCost) SetReportData(v []ReportData)
SetReportData gets a reference to the given []ReportData and assigns it to the ReportData field.
func (*DetailedServiceCost) SetServiceCategoryName ¶
func (o *DetailedServiceCost) SetServiceCategoryName(v string)
SetServiceCategoryName sets field value
func (*DetailedServiceCost) SetServiceName ¶
func (o *DetailedServiceCost) SetServiceName(v string)
SetServiceName sets field value
func (*DetailedServiceCost) SetSku ¶
func (o *DetailedServiceCost) SetSku(v string)
SetSku sets field value
func (*DetailedServiceCost) SetTotalCharge ¶
func (o *DetailedServiceCost) SetTotalCharge(v float64)
SetTotalCharge sets field value
func (*DetailedServiceCost) SetTotalDiscount ¶
func (o *DetailedServiceCost) SetTotalDiscount(v float64)
SetTotalDiscount sets field value
func (*DetailedServiceCost) SetTotalQuantity ¶
func (o *DetailedServiceCost) SetTotalQuantity(v int32)
SetTotalQuantity sets field value
func (*DetailedServiceCost) SetUnitLabel ¶
func (o *DetailedServiceCost) SetUnitLabel(v string)
SetUnitLabel sets field value
func (DetailedServiceCost) ToMap ¶
func (o DetailedServiceCost) ToMap() (map[string]interface{}, error)
func (*DetailedServiceCost) UnmarshalJSON ¶
func (o *DetailedServiceCost) UnmarshalJSON(data []byte) (err error)
type MappedNullable ¶
type NullableBool ¶
type NullableBool struct {
// contains filtered or unexported fields
}
func NewNullableBool ¶
func NewNullableBool(val *bool) *NullableBool
func (NullableBool) Get ¶
func (v NullableBool) Get() *bool
func (NullableBool) IsSet ¶
func (v NullableBool) IsSet() bool
func (NullableBool) MarshalJSON ¶
func (v NullableBool) MarshalJSON() ([]byte, error)
func (*NullableBool) Set ¶
func (v *NullableBool) Set(val *bool)
func (*NullableBool) UnmarshalJSON ¶
func (v *NullableBool) UnmarshalJSON(src []byte) error
func (*NullableBool) Unset ¶
func (v *NullableBool) Unset()
type NullableDefaultError ¶
type NullableDefaultError struct {
// contains filtered or unexported fields
}
func NewNullableDefaultError ¶
func NewNullableDefaultError(val *DefaultError) *NullableDefaultError
func (NullableDefaultError) Get ¶
func (v NullableDefaultError) Get() *DefaultError
func (NullableDefaultError) IsSet ¶
func (v NullableDefaultError) IsSet() bool
func (NullableDefaultError) MarshalJSON ¶
func (v NullableDefaultError) MarshalJSON() ([]byte, error)
func (*NullableDefaultError) Set ¶
func (v *NullableDefaultError) Set(val *DefaultError)
func (*NullableDefaultError) UnmarshalJSON ¶
func (v *NullableDefaultError) UnmarshalJSON(src []byte) error
func (*NullableDefaultError) Unset ¶
func (v *NullableDefaultError) Unset()
type NullableDetailedServiceCost ¶
type NullableDetailedServiceCost struct {
// contains filtered or unexported fields
}
func NewNullableDetailedServiceCost ¶
func NewNullableDetailedServiceCost(val *DetailedServiceCost) *NullableDetailedServiceCost
func (NullableDetailedServiceCost) Get ¶
func (v NullableDetailedServiceCost) Get() *DetailedServiceCost
func (NullableDetailedServiceCost) IsSet ¶
func (v NullableDetailedServiceCost) IsSet() bool
func (NullableDetailedServiceCost) MarshalJSON ¶
func (v NullableDetailedServiceCost) MarshalJSON() ([]byte, error)
func (*NullableDetailedServiceCost) Set ¶
func (v *NullableDetailedServiceCost) Set(val *DetailedServiceCost)
func (*NullableDetailedServiceCost) UnmarshalJSON ¶
func (v *NullableDetailedServiceCost) UnmarshalJSON(src []byte) error
func (*NullableDetailedServiceCost) Unset ¶
func (v *NullableDetailedServiceCost) Unset()
type NullableFloat32 ¶
type NullableFloat32 struct {
// contains filtered or unexported fields
}
func NewNullableFloat32 ¶
func NewNullableFloat32(val *float32) *NullableFloat32
func (NullableFloat32) Get ¶
func (v NullableFloat32) Get() *float32
func (NullableFloat32) IsSet ¶
func (v NullableFloat32) IsSet() bool
func (NullableFloat32) MarshalJSON ¶
func (v NullableFloat32) MarshalJSON() ([]byte, error)
func (*NullableFloat32) Set ¶
func (v *NullableFloat32) Set(val *float32)
func (*NullableFloat32) UnmarshalJSON ¶
func (v *NullableFloat32) UnmarshalJSON(src []byte) error
func (*NullableFloat32) Unset ¶
func (v *NullableFloat32) Unset()
type NullableFloat64 ¶
type NullableFloat64 struct {
// contains filtered or unexported fields
}
func NewNullableFloat64 ¶
func NewNullableFloat64(val *float64) *NullableFloat64
func (NullableFloat64) Get ¶
func (v NullableFloat64) Get() *float64
func (NullableFloat64) IsSet ¶
func (v NullableFloat64) IsSet() bool
func (NullableFloat64) MarshalJSON ¶
func (v NullableFloat64) MarshalJSON() ([]byte, error)
func (*NullableFloat64) Set ¶
func (v *NullableFloat64) Set(val *float64)
func (*NullableFloat64) UnmarshalJSON ¶
func (v *NullableFloat64) UnmarshalJSON(src []byte) error
func (*NullableFloat64) Unset ¶
func (v *NullableFloat64) Unset()
type NullableInt ¶
type NullableInt struct {
// contains filtered or unexported fields
}
func NewNullableInt ¶
func NewNullableInt(val *int) *NullableInt
func (NullableInt) Get ¶
func (v NullableInt) Get() *int
func (NullableInt) IsSet ¶
func (v NullableInt) IsSet() bool
func (NullableInt) MarshalJSON ¶
func (v NullableInt) MarshalJSON() ([]byte, error)
func (*NullableInt) Set ¶
func (v *NullableInt) Set(val *int)
func (*NullableInt) UnmarshalJSON ¶
func (v *NullableInt) UnmarshalJSON(src []byte) error
func (*NullableInt) Unset ¶
func (v *NullableInt) Unset()
type NullableInt32 ¶
type NullableInt32 struct {
// contains filtered or unexported fields
}
func NewNullableInt32 ¶
func NewNullableInt32(val *int32) *NullableInt32
func (NullableInt32) Get ¶
func (v NullableInt32) Get() *int32
func (NullableInt32) IsSet ¶
func (v NullableInt32) IsSet() bool
func (NullableInt32) MarshalJSON ¶
func (v NullableInt32) MarshalJSON() ([]byte, error)
func (*NullableInt32) Set ¶
func (v *NullableInt32) Set(val *int32)
func (*NullableInt32) UnmarshalJSON ¶
func (v *NullableInt32) UnmarshalJSON(src []byte) error
func (*NullableInt32) Unset ¶
func (v *NullableInt32) Unset()
type NullableInt64 ¶
type NullableInt64 struct {
// contains filtered or unexported fields
}
func NewNullableInt64 ¶
func NewNullableInt64(val *int64) *NullableInt64
func (NullableInt64) Get ¶
func (v NullableInt64) Get() *int64
func (NullableInt64) IsSet ¶
func (v NullableInt64) IsSet() bool
func (NullableInt64) MarshalJSON ¶
func (v NullableInt64) MarshalJSON() ([]byte, error)
func (*NullableInt64) Set ¶
func (v *NullableInt64) Set(val *int64)
func (*NullableInt64) UnmarshalJSON ¶
func (v *NullableInt64) UnmarshalJSON(src []byte) error
func (*NullableInt64) Unset ¶
func (v *NullableInt64) Unset()
type NullableProjectCost ¶
type NullableProjectCost struct {
// contains filtered or unexported fields
}
func NewNullableProjectCost ¶
func NewNullableProjectCost(val *ProjectCost) *NullableProjectCost
func (NullableProjectCost) Get ¶
func (v NullableProjectCost) Get() *ProjectCost
func (NullableProjectCost) IsSet ¶
func (v NullableProjectCost) IsSet() bool
func (NullableProjectCost) MarshalJSON ¶
func (v NullableProjectCost) MarshalJSON() ([]byte, error)
func (*NullableProjectCost) Set ¶
func (v *NullableProjectCost) Set(val *ProjectCost)
func (*NullableProjectCost) UnmarshalJSON ¶
func (v *NullableProjectCost) UnmarshalJSON(src []byte) error
func (*NullableProjectCost) Unset ¶
func (v *NullableProjectCost) Unset()
type NullableProjectCostWithDetailedServices ¶
type NullableProjectCostWithDetailedServices struct {
// contains filtered or unexported fields
}
func NewNullableProjectCostWithDetailedServices ¶
func NewNullableProjectCostWithDetailedServices(val *ProjectCostWithDetailedServices) *NullableProjectCostWithDetailedServices
func (NullableProjectCostWithDetailedServices) IsSet ¶
func (v NullableProjectCostWithDetailedServices) IsSet() bool
func (NullableProjectCostWithDetailedServices) MarshalJSON ¶
func (v NullableProjectCostWithDetailedServices) MarshalJSON() ([]byte, error)
func (*NullableProjectCostWithDetailedServices) Set ¶
func (v *NullableProjectCostWithDetailedServices) Set(val *ProjectCostWithDetailedServices)
func (*NullableProjectCostWithDetailedServices) UnmarshalJSON ¶
func (v *NullableProjectCostWithDetailedServices) UnmarshalJSON(src []byte) error
func (*NullableProjectCostWithDetailedServices) Unset ¶
func (v *NullableProjectCostWithDetailedServices) Unset()
type NullableProjectCostWithReports ¶
type NullableProjectCostWithReports struct {
// contains filtered or unexported fields
}
func NewNullableProjectCostWithReports ¶
func NewNullableProjectCostWithReports(val *ProjectCostWithReports) *NullableProjectCostWithReports
func (NullableProjectCostWithReports) Get ¶
func (v NullableProjectCostWithReports) Get() *ProjectCostWithReports
func (NullableProjectCostWithReports) IsSet ¶
func (v NullableProjectCostWithReports) IsSet() bool
func (NullableProjectCostWithReports) MarshalJSON ¶
func (v NullableProjectCostWithReports) MarshalJSON() ([]byte, error)
func (*NullableProjectCostWithReports) Set ¶
func (v *NullableProjectCostWithReports) Set(val *ProjectCostWithReports)
func (*NullableProjectCostWithReports) UnmarshalJSON ¶
func (v *NullableProjectCostWithReports) UnmarshalJSON(src []byte) error
func (*NullableProjectCostWithReports) Unset ¶
func (v *NullableProjectCostWithReports) Unset()
type NullableProjectCostWithSummarizedServices ¶
type NullableProjectCostWithSummarizedServices struct {
// contains filtered or unexported fields
}
func NewNullableProjectCostWithSummarizedServices ¶
func NewNullableProjectCostWithSummarizedServices(val *ProjectCostWithSummarizedServices) *NullableProjectCostWithSummarizedServices
func (NullableProjectCostWithSummarizedServices) IsSet ¶
func (v NullableProjectCostWithSummarizedServices) IsSet() bool
func (NullableProjectCostWithSummarizedServices) MarshalJSON ¶
func (v NullableProjectCostWithSummarizedServices) MarshalJSON() ([]byte, error)
func (*NullableProjectCostWithSummarizedServices) Set ¶
func (v *NullableProjectCostWithSummarizedServices) Set(val *ProjectCostWithSummarizedServices)
func (*NullableProjectCostWithSummarizedServices) UnmarshalJSON ¶
func (v *NullableProjectCostWithSummarizedServices) UnmarshalJSON(src []byte) error
func (*NullableProjectCostWithSummarizedServices) Unset ¶
func (v *NullableProjectCostWithSummarizedServices) Unset()
type NullableReportData ¶
type NullableReportData struct {
// contains filtered or unexported fields
}
func NewNullableReportData ¶
func NewNullableReportData(val *ReportData) *NullableReportData
func (NullableReportData) Get ¶
func (v NullableReportData) Get() *ReportData
func (NullableReportData) IsSet ¶
func (v NullableReportData) IsSet() bool
func (NullableReportData) MarshalJSON ¶
func (v NullableReportData) MarshalJSON() ([]byte, error)
func (*NullableReportData) Set ¶
func (v *NullableReportData) Set(val *ReportData)
func (*NullableReportData) UnmarshalJSON ¶
func (v *NullableReportData) UnmarshalJSON(src []byte) error
func (*NullableReportData) Unset ¶
func (v *NullableReportData) Unset()
type NullableReportDataTimePeriod ¶
type NullableReportDataTimePeriod struct {
// contains filtered or unexported fields
}
func NewNullableReportDataTimePeriod ¶
func NewNullableReportDataTimePeriod(val *ReportDataTimePeriod) *NullableReportDataTimePeriod
func (NullableReportDataTimePeriod) Get ¶
func (v NullableReportDataTimePeriod) Get() *ReportDataTimePeriod
func (NullableReportDataTimePeriod) IsSet ¶
func (v NullableReportDataTimePeriod) IsSet() bool
func (NullableReportDataTimePeriod) MarshalJSON ¶
func (v NullableReportDataTimePeriod) MarshalJSON() ([]byte, error)
func (*NullableReportDataTimePeriod) Set ¶
func (v *NullableReportDataTimePeriod) Set(val *ReportDataTimePeriod)
func (*NullableReportDataTimePeriod) UnmarshalJSON ¶
func (v *NullableReportDataTimePeriod) UnmarshalJSON(src []byte) error
func (*NullableReportDataTimePeriod) Unset ¶
func (v *NullableReportDataTimePeriod) Unset()
type NullableString ¶
type NullableString struct {
// contains filtered or unexported fields
}
func NewNullableString ¶
func NewNullableString(val *string) *NullableString
func (NullableString) Get ¶
func (v NullableString) Get() *string
func (NullableString) IsSet ¶
func (v NullableString) IsSet() bool
func (NullableString) MarshalJSON ¶
func (v NullableString) MarshalJSON() ([]byte, error)
func (*NullableString) Set ¶
func (v *NullableString) Set(val *string)
func (*NullableString) UnmarshalJSON ¶
func (v *NullableString) UnmarshalJSON(src []byte) error
func (*NullableString) Unset ¶
func (v *NullableString) Unset()
type NullableSummarizedProjectCost ¶
type NullableSummarizedProjectCost struct {
// contains filtered or unexported fields
}
func NewNullableSummarizedProjectCost ¶
func NewNullableSummarizedProjectCost(val *SummarizedProjectCost) *NullableSummarizedProjectCost
func (NullableSummarizedProjectCost) Get ¶
func (v NullableSummarizedProjectCost) Get() *SummarizedProjectCost
func (NullableSummarizedProjectCost) IsSet ¶
func (v NullableSummarizedProjectCost) IsSet() bool
func (NullableSummarizedProjectCost) MarshalJSON ¶
func (v NullableSummarizedProjectCost) MarshalJSON() ([]byte, error)
func (*NullableSummarizedProjectCost) Set ¶
func (v *NullableSummarizedProjectCost) Set(val *SummarizedProjectCost)
func (*NullableSummarizedProjectCost) UnmarshalJSON ¶
func (v *NullableSummarizedProjectCost) UnmarshalJSON(src []byte) error
func (*NullableSummarizedProjectCost) Unset ¶
func (v *NullableSummarizedProjectCost) Unset()
type NullableSummarizedServiceCost ¶
type NullableSummarizedServiceCost struct {
// contains filtered or unexported fields
}
func NewNullableSummarizedServiceCost ¶
func NewNullableSummarizedServiceCost(val *SummarizedServiceCost) *NullableSummarizedServiceCost
func (NullableSummarizedServiceCost) Get ¶
func (v NullableSummarizedServiceCost) Get() *SummarizedServiceCost
func (NullableSummarizedServiceCost) IsSet ¶
func (v NullableSummarizedServiceCost) IsSet() bool
func (NullableSummarizedServiceCost) MarshalJSON ¶
func (v NullableSummarizedServiceCost) MarshalJSON() ([]byte, error)
func (*NullableSummarizedServiceCost) Set ¶
func (v *NullableSummarizedServiceCost) Set(val *SummarizedServiceCost)
func (*NullableSummarizedServiceCost) UnmarshalJSON ¶
func (v *NullableSummarizedServiceCost) UnmarshalJSON(src []byte) error
func (*NullableSummarizedServiceCost) Unset ¶
func (v *NullableSummarizedServiceCost) Unset()
type NullableTime ¶
type NullableTime struct {
// contains filtered or unexported fields
}
func NewNullableTime ¶
func NewNullableTime(val *time.Time) *NullableTime
func (NullableTime) Get ¶
func (v NullableTime) Get() *time.Time
func (NullableTime) IsSet ¶
func (v NullableTime) IsSet() bool
func (NullableTime) MarshalJSON ¶
func (v NullableTime) MarshalJSON() ([]byte, error)
func (*NullableTime) Set ¶
func (v *NullableTime) Set(val *time.Time)
func (*NullableTime) UnmarshalJSON ¶
func (v *NullableTime) UnmarshalJSON(src []byte) error
func (*NullableTime) Unset ¶
func (v *NullableTime) Unset()
type ProjectCost ¶
type ProjectCost struct {
ProjectCostWithDetailedServices *ProjectCostWithDetailedServices
ProjectCostWithReports *ProjectCostWithReports
ProjectCostWithSummarizedServices *ProjectCostWithSummarizedServices
SummarizedProjectCost *SummarizedProjectCost
}
ProjectCost struct for ProjectCost
func (ProjectCost) MarshalJSON ¶
func (src ProjectCost) MarshalJSON() ([]byte, error)
Marshal data from the first non-nil pointers in the struct to JSON
func (*ProjectCost) UnmarshalJSON ¶
func (dst *ProjectCost) UnmarshalJSON(data []byte) error
Unmarshal JSON data into any of the pointers in the struct
type ProjectCostWithDetailedServices ¶
type ProjectCostWithDetailedServices struct {
CustomerAccountId string `json:"customerAccountId"`
ProjectId string `json:"projectId"`
ProjectName string `json:"projectName"`
// Total discount for all services and the whole requested date range (value in cents). Please see \"depth\" parameter for more details.
Services []DetailedServiceCost `json:"services,omitempty"`
// Total charge (including discounts) for all services and the whole requested date range (value in cents)
TotalCharge float64 `json:"totalCharge"`
// Total discount for all services and the whole requested date range (value in cents)
TotalDiscount float64 `json:"totalDiscount"`
AdditionalProperties map[string]interface{}
}
ProjectCostWithDetailedServices Detailed costs for a project including service costs
func NewProjectCostWithDetailedServices ¶
func NewProjectCostWithDetailedServices(customerAccountId string, projectId string, projectName string, totalCharge float64, totalDiscount float64) *ProjectCostWithDetailedServices
NewProjectCostWithDetailedServices instantiates a new ProjectCostWithDetailedServices object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewProjectCostWithDetailedServicesWithDefaults ¶
func NewProjectCostWithDetailedServicesWithDefaults() *ProjectCostWithDetailedServices
NewProjectCostWithDetailedServicesWithDefaults instantiates a new ProjectCostWithDetailedServices object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*ProjectCostWithDetailedServices) GetCustomerAccountId ¶
func (o *ProjectCostWithDetailedServices) GetCustomerAccountId() string
GetCustomerAccountId returns the CustomerAccountId field value
func (*ProjectCostWithDetailedServices) GetCustomerAccountIdOk ¶
func (o *ProjectCostWithDetailedServices) GetCustomerAccountIdOk() (*string, bool)
GetCustomerAccountIdOk returns a tuple with the CustomerAccountId field value and a boolean to check if the value has been set.
func (*ProjectCostWithDetailedServices) GetProjectId ¶
func (o *ProjectCostWithDetailedServices) GetProjectId() string
GetProjectId returns the ProjectId field value
func (*ProjectCostWithDetailedServices) GetProjectIdOk ¶
func (o *ProjectCostWithDetailedServices) GetProjectIdOk() (*string, bool)
GetProjectIdOk returns a tuple with the ProjectId field value and a boolean to check if the value has been set.
func (*ProjectCostWithDetailedServices) GetProjectName ¶
func (o *ProjectCostWithDetailedServices) GetProjectName() string
GetProjectName returns the ProjectName field value
func (*ProjectCostWithDetailedServices) GetProjectNameOk ¶
func (o *ProjectCostWithDetailedServices) GetProjectNameOk() (*string, bool)
GetProjectNameOk returns a tuple with the ProjectName field value and a boolean to check if the value has been set.
func (*ProjectCostWithDetailedServices) GetServices ¶
func (o *ProjectCostWithDetailedServices) GetServices() []DetailedServiceCost
GetServices returns the Services field value if set, zero value otherwise.
func (*ProjectCostWithDetailedServices) GetServicesOk ¶
func (o *ProjectCostWithDetailedServices) GetServicesOk() ([]DetailedServiceCost, bool)
GetServicesOk returns a tuple with the Services field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ProjectCostWithDetailedServices) GetTotalCharge ¶
func (o *ProjectCostWithDetailedServices) GetTotalCharge() float64
GetTotalCharge returns the TotalCharge field value
func (*ProjectCostWithDetailedServices) GetTotalChargeOk ¶
func (o *ProjectCostWithDetailedServices) GetTotalChargeOk() (*float64, bool)
GetTotalChargeOk returns a tuple with the TotalCharge field value and a boolean to check if the value has been set.
func (*ProjectCostWithDetailedServices) GetTotalDiscount ¶
func (o *ProjectCostWithDetailedServices) GetTotalDiscount() float64
GetTotalDiscount returns the TotalDiscount field value
func (*ProjectCostWithDetailedServices) GetTotalDiscountOk ¶
func (o *ProjectCostWithDetailedServices) GetTotalDiscountOk() (*float64, bool)
GetTotalDiscountOk returns a tuple with the TotalDiscount field value and a boolean to check if the value has been set.
func (*ProjectCostWithDetailedServices) HasServices ¶
func (o *ProjectCostWithDetailedServices) HasServices() bool
HasServices returns a boolean if a field has been set.
func (ProjectCostWithDetailedServices) MarshalJSON ¶
func (o ProjectCostWithDetailedServices) MarshalJSON() ([]byte, error)
func (*ProjectCostWithDetailedServices) SetCustomerAccountId ¶
func (o *ProjectCostWithDetailedServices) SetCustomerAccountId(v string)
SetCustomerAccountId sets field value
func (*ProjectCostWithDetailedServices) SetProjectId ¶
func (o *ProjectCostWithDetailedServices) SetProjectId(v string)
SetProjectId sets field value
func (*ProjectCostWithDetailedServices) SetProjectName ¶
func (o *ProjectCostWithDetailedServices) SetProjectName(v string)
SetProjectName sets field value
func (*ProjectCostWithDetailedServices) SetServices ¶
func (o *ProjectCostWithDetailedServices) SetServices(v []DetailedServiceCost)
SetServices gets a reference to the given []DetailedServiceCost and assigns it to the Services field.
func (*ProjectCostWithDetailedServices) SetTotalCharge ¶
func (o *ProjectCostWithDetailedServices) SetTotalCharge(v float64)
SetTotalCharge sets field value
func (*ProjectCostWithDetailedServices) SetTotalDiscount ¶
func (o *ProjectCostWithDetailedServices) SetTotalDiscount(v float64)
SetTotalDiscount sets field value
func (ProjectCostWithDetailedServices) ToMap ¶
func (o ProjectCostWithDetailedServices) ToMap() (map[string]interface{}, error)
func (*ProjectCostWithDetailedServices) UnmarshalJSON ¶
func (o *ProjectCostWithDetailedServices) UnmarshalJSON(data []byte) (err error)
type ProjectCostWithReports ¶
type ProjectCostWithReports struct {
CustomerAccountId string `json:"customerAccountId"`
ProjectId string `json:"projectId"`
ProjectName string `json:"projectName"`
// Detailed project costs which are ONLY included if granularity is provided AND depth is \"project\"
ReportData []ReportData `json:"reportData,omitempty"`
// Total charge (including discounts) for all services and the whole requested date range (value in cents)
TotalCharge float64 `json:"totalCharge"`
// Total discount for all services and the whole requested date range (value in cents)
TotalDiscount float64 `json:"totalDiscount"`
AdditionalProperties map[string]interface{}
}
ProjectCostWithReports Detailed costs for a project
func NewProjectCostWithReports ¶
func NewProjectCostWithReports(customerAccountId string, projectId string, projectName string, totalCharge float64, totalDiscount float64) *ProjectCostWithReports
NewProjectCostWithReports instantiates a new ProjectCostWithReports object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewProjectCostWithReportsWithDefaults ¶
func NewProjectCostWithReportsWithDefaults() *ProjectCostWithReports
NewProjectCostWithReportsWithDefaults instantiates a new ProjectCostWithReports object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*ProjectCostWithReports) GetCustomerAccountId ¶
func (o *ProjectCostWithReports) GetCustomerAccountId() string
GetCustomerAccountId returns the CustomerAccountId field value
func (*ProjectCostWithReports) GetCustomerAccountIdOk ¶
func (o *ProjectCostWithReports) GetCustomerAccountIdOk() (*string, bool)
GetCustomerAccountIdOk returns a tuple with the CustomerAccountId field value and a boolean to check if the value has been set.
func (*ProjectCostWithReports) GetProjectId ¶
func (o *ProjectCostWithReports) GetProjectId() string
GetProjectId returns the ProjectId field value
func (*ProjectCostWithReports) GetProjectIdOk ¶
func (o *ProjectCostWithReports) GetProjectIdOk() (*string, bool)
GetProjectIdOk returns a tuple with the ProjectId field value and a boolean to check if the value has been set.
func (*ProjectCostWithReports) GetProjectName ¶
func (o *ProjectCostWithReports) GetProjectName() string
GetProjectName returns the ProjectName field value
func (*ProjectCostWithReports) GetProjectNameOk ¶
func (o *ProjectCostWithReports) GetProjectNameOk() (*string, bool)
GetProjectNameOk returns a tuple with the ProjectName field value and a boolean to check if the value has been set.
func (*ProjectCostWithReports) GetReportData ¶
func (o *ProjectCostWithReports) GetReportData() []ReportData
GetReportData returns the ReportData field value if set, zero value otherwise.
func (*ProjectCostWithReports) GetReportDataOk ¶
func (o *ProjectCostWithReports) GetReportDataOk() ([]ReportData, bool)
GetReportDataOk returns a tuple with the ReportData field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ProjectCostWithReports) GetTotalCharge ¶
func (o *ProjectCostWithReports) GetTotalCharge() float64
GetTotalCharge returns the TotalCharge field value
func (*ProjectCostWithReports) GetTotalChargeOk ¶
func (o *ProjectCostWithReports) GetTotalChargeOk() (*float64, bool)
GetTotalChargeOk returns a tuple with the TotalCharge field value and a boolean to check if the value has been set.
func (*ProjectCostWithReports) GetTotalDiscount ¶
func (o *ProjectCostWithReports) GetTotalDiscount() float64
GetTotalDiscount returns the TotalDiscount field value
func (*ProjectCostWithReports) GetTotalDiscountOk ¶
func (o *ProjectCostWithReports) GetTotalDiscountOk() (*float64, bool)
GetTotalDiscountOk returns a tuple with the TotalDiscount field value and a boolean to check if the value has been set.
func (*ProjectCostWithReports) HasReportData ¶
func (o *ProjectCostWithReports) HasReportData() bool
HasReportData returns a boolean if a field has been set.
func (ProjectCostWithReports) MarshalJSON ¶
func (o ProjectCostWithReports) MarshalJSON() ([]byte, error)
func (*ProjectCostWithReports) SetCustomerAccountId ¶
func (o *ProjectCostWithReports) SetCustomerAccountId(v string)
SetCustomerAccountId sets field value
func (*ProjectCostWithReports) SetProjectId ¶
func (o *ProjectCostWithReports) SetProjectId(v string)
SetProjectId sets field value
func (*ProjectCostWithReports) SetProjectName ¶
func (o *ProjectCostWithReports) SetProjectName(v string)
SetProjectName sets field value
func (*ProjectCostWithReports) SetReportData ¶
func (o *ProjectCostWithReports) SetReportData(v []ReportData)
SetReportData gets a reference to the given []ReportData and assigns it to the ReportData field.
func (*ProjectCostWithReports) SetTotalCharge ¶
func (o *ProjectCostWithReports) SetTotalCharge(v float64)
SetTotalCharge sets field value
func (*ProjectCostWithReports) SetTotalDiscount ¶
func (o *ProjectCostWithReports) SetTotalDiscount(v float64)
SetTotalDiscount sets field value
func (ProjectCostWithReports) ToMap ¶
func (o ProjectCostWithReports) ToMap() (map[string]interface{}, error)
func (*ProjectCostWithReports) UnmarshalJSON ¶
func (o *ProjectCostWithReports) UnmarshalJSON(data []byte) (err error)
type ProjectCostWithSummarizedServices ¶
type ProjectCostWithSummarizedServices struct {
CustomerAccountId string `json:"customerAccountId"`
ProjectId string `json:"projectId"`
ProjectName string `json:"projectName"`
// Summarized service costs
Services []SummarizedServiceCost `json:"services,omitempty"`
// Total charge (including discounts) for all services and the whole requested date range (value in cents)
TotalCharge float64 `json:"totalCharge"`
// Total discount for all services and the whole requested date range (value in cents)
TotalDiscount float64 `json:"totalDiscount"`
AdditionalProperties map[string]interface{}
}
ProjectCostWithSummarizedServices Costs for a project including summarized service costs
func NewProjectCostWithSummarizedServices ¶
func NewProjectCostWithSummarizedServices(customerAccountId string, projectId string, projectName string, totalCharge float64, totalDiscount float64) *ProjectCostWithSummarizedServices
NewProjectCostWithSummarizedServices instantiates a new ProjectCostWithSummarizedServices object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewProjectCostWithSummarizedServicesWithDefaults ¶
func NewProjectCostWithSummarizedServicesWithDefaults() *ProjectCostWithSummarizedServices
NewProjectCostWithSummarizedServicesWithDefaults instantiates a new ProjectCostWithSummarizedServices object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*ProjectCostWithSummarizedServices) GetCustomerAccountId ¶
func (o *ProjectCostWithSummarizedServices) GetCustomerAccountId() string
GetCustomerAccountId returns the CustomerAccountId field value
func (*ProjectCostWithSummarizedServices) GetCustomerAccountIdOk ¶
func (o *ProjectCostWithSummarizedServices) GetCustomerAccountIdOk() (*string, bool)
GetCustomerAccountIdOk returns a tuple with the CustomerAccountId field value and a boolean to check if the value has been set.
func (*ProjectCostWithSummarizedServices) GetProjectId ¶
func (o *ProjectCostWithSummarizedServices) GetProjectId() string
GetProjectId returns the ProjectId field value
func (*ProjectCostWithSummarizedServices) GetProjectIdOk ¶
func (o *ProjectCostWithSummarizedServices) GetProjectIdOk() (*string, bool)
GetProjectIdOk returns a tuple with the ProjectId field value and a boolean to check if the value has been set.
func (*ProjectCostWithSummarizedServices) GetProjectName ¶
func (o *ProjectCostWithSummarizedServices) GetProjectName() string
GetProjectName returns the ProjectName field value
func (*ProjectCostWithSummarizedServices) GetProjectNameOk ¶
func (o *ProjectCostWithSummarizedServices) GetProjectNameOk() (*string, bool)
GetProjectNameOk returns a tuple with the ProjectName field value and a boolean to check if the value has been set.
func (*ProjectCostWithSummarizedServices) GetServices ¶
func (o *ProjectCostWithSummarizedServices) GetServices() []SummarizedServiceCost
GetServices returns the Services field value if set, zero value otherwise.
func (*ProjectCostWithSummarizedServices) GetServicesOk ¶
func (o *ProjectCostWithSummarizedServices) GetServicesOk() ([]SummarizedServiceCost, bool)
GetServicesOk returns a tuple with the Services field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ProjectCostWithSummarizedServices) GetTotalCharge ¶
func (o *ProjectCostWithSummarizedServices) GetTotalCharge() float64
GetTotalCharge returns the TotalCharge field value
func (*ProjectCostWithSummarizedServices) GetTotalChargeOk ¶
func (o *ProjectCostWithSummarizedServices) GetTotalChargeOk() (*float64, bool)
GetTotalChargeOk returns a tuple with the TotalCharge field value and a boolean to check if the value has been set.
func (*ProjectCostWithSummarizedServices) GetTotalDiscount ¶
func (o *ProjectCostWithSummarizedServices) GetTotalDiscount() float64
GetTotalDiscount returns the TotalDiscount field value
func (*ProjectCostWithSummarizedServices) GetTotalDiscountOk ¶
func (o *ProjectCostWithSummarizedServices) GetTotalDiscountOk() (*float64, bool)
GetTotalDiscountOk returns a tuple with the TotalDiscount field value and a boolean to check if the value has been set.
func (*ProjectCostWithSummarizedServices) HasServices ¶
func (o *ProjectCostWithSummarizedServices) HasServices() bool
HasServices returns a boolean if a field has been set.
func (ProjectCostWithSummarizedServices) MarshalJSON ¶
func (o ProjectCostWithSummarizedServices) MarshalJSON() ([]byte, error)
func (*ProjectCostWithSummarizedServices) SetCustomerAccountId ¶
func (o *ProjectCostWithSummarizedServices) SetCustomerAccountId(v string)
SetCustomerAccountId sets field value
func (*ProjectCostWithSummarizedServices) SetProjectId ¶
func (o *ProjectCostWithSummarizedServices) SetProjectId(v string)
SetProjectId sets field value
func (*ProjectCostWithSummarizedServices) SetProjectName ¶
func (o *ProjectCostWithSummarizedServices) SetProjectName(v string)
SetProjectName sets field value
func (*ProjectCostWithSummarizedServices) SetServices ¶
func (o *ProjectCostWithSummarizedServices) SetServices(v []SummarizedServiceCost)
SetServices gets a reference to the given []SummarizedServiceCost and assigns it to the Services field.
func (*ProjectCostWithSummarizedServices) SetTotalCharge ¶
func (o *ProjectCostWithSummarizedServices) SetTotalCharge(v float64)
SetTotalCharge sets field value
func (*ProjectCostWithSummarizedServices) SetTotalDiscount ¶
func (o *ProjectCostWithSummarizedServices) SetTotalDiscount(v float64)
SetTotalDiscount sets field value
func (ProjectCostWithSummarizedServices) ToMap ¶
func (o ProjectCostWithSummarizedServices) ToMap() (map[string]interface{}, error)
func (*ProjectCostWithSummarizedServices) UnmarshalJSON ¶
func (o *ProjectCostWithSummarizedServices) UnmarshalJSON(data []byte) (err error)
type ReportData ¶
type ReportData struct {
// Charge, value in cents
Charge float64 `json:"charge"`
// Discount, value in cents
Discount float64 `json:"discount"`
// Quantity
Quantity int32 `json:"quantity"`
TimePeriod ReportDataTimePeriod `json:"timePeriod"`
AdditionalProperties map[string]interface{}
}
ReportData Costs report for a certain period of time
func NewReportData ¶
func NewReportData(charge float64, discount float64, quantity int32, timePeriod ReportDataTimePeriod) *ReportData
NewReportData instantiates a new ReportData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewReportDataWithDefaults ¶
func NewReportDataWithDefaults() *ReportData
NewReportDataWithDefaults instantiates a new ReportData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*ReportData) GetCharge ¶
func (o *ReportData) GetCharge() float64
GetCharge returns the Charge field value
func (*ReportData) GetChargeOk ¶
func (o *ReportData) GetChargeOk() (*float64, bool)
GetChargeOk returns a tuple with the Charge field value and a boolean to check if the value has been set.
func (*ReportData) GetDiscount ¶
func (o *ReportData) GetDiscount() float64
GetDiscount returns the Discount field value
func (*ReportData) GetDiscountOk ¶
func (o *ReportData) GetDiscountOk() (*float64, bool)
GetDiscountOk returns a tuple with the Discount field value and a boolean to check if the value has been set.
func (*ReportData) GetQuantity ¶
func (o *ReportData) GetQuantity() int32
GetQuantity returns the Quantity field value
func (*ReportData) GetQuantityOk ¶
func (o *ReportData) GetQuantityOk() (*int32, bool)
GetQuantityOk returns a tuple with the Quantity field value and a boolean to check if the value has been set.
func (*ReportData) GetTimePeriod ¶
func (o *ReportData) GetTimePeriod() ReportDataTimePeriod
GetTimePeriod returns the TimePeriod field value
func (*ReportData) GetTimePeriodOk ¶
func (o *ReportData) GetTimePeriodOk() (*ReportDataTimePeriod, bool)
GetTimePeriodOk returns a tuple with the TimePeriod field value and a boolean to check if the value has been set.
func (ReportData) MarshalJSON ¶
func (o ReportData) MarshalJSON() ([]byte, error)
func (*ReportData) SetDiscount ¶
func (o *ReportData) SetDiscount(v float64)
SetDiscount sets field value
func (*ReportData) SetQuantity ¶
func (o *ReportData) SetQuantity(v int32)
SetQuantity sets field value
func (*ReportData) SetTimePeriod ¶
func (o *ReportData) SetTimePeriod(v ReportDataTimePeriod)
SetTimePeriod sets field value
func (ReportData) ToMap ¶
func (o ReportData) ToMap() (map[string]interface{}, error)
func (*ReportData) UnmarshalJSON ¶
func (o *ReportData) UnmarshalJSON(data []byte) (err error)
type ReportDataTimePeriod ¶
type ReportDataTimePeriod struct {
End *string `json:"end,omitempty"`
Start *string `json:"start,omitempty"`
AdditionalProperties map[string]interface{}
}
ReportDataTimePeriod Time period according to desired granularity
func NewReportDataTimePeriod ¶
func NewReportDataTimePeriod() *ReportDataTimePeriod
NewReportDataTimePeriod instantiates a new ReportDataTimePeriod object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewReportDataTimePeriodWithDefaults ¶
func NewReportDataTimePeriodWithDefaults() *ReportDataTimePeriod
NewReportDataTimePeriodWithDefaults instantiates a new ReportDataTimePeriod object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*ReportDataTimePeriod) GetEnd ¶
func (o *ReportDataTimePeriod) GetEnd() string
GetEnd returns the End field value if set, zero value otherwise.
func (*ReportDataTimePeriod) GetEndOk ¶
func (o *ReportDataTimePeriod) GetEndOk() (*string, bool)
GetEndOk returns a tuple with the End field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ReportDataTimePeriod) GetStart ¶
func (o *ReportDataTimePeriod) GetStart() string
GetStart returns the Start field value if set, zero value otherwise.
func (*ReportDataTimePeriod) GetStartOk ¶
func (o *ReportDataTimePeriod) GetStartOk() (*string, bool)
GetStartOk returns a tuple with the Start field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ReportDataTimePeriod) HasEnd ¶
func (o *ReportDataTimePeriod) HasEnd() bool
HasEnd returns a boolean if a field has been set.
func (*ReportDataTimePeriod) HasStart ¶
func (o *ReportDataTimePeriod) HasStart() bool
HasStart returns a boolean if a field has been set.
func (ReportDataTimePeriod) MarshalJSON ¶
func (o ReportDataTimePeriod) MarshalJSON() ([]byte, error)
func (*ReportDataTimePeriod) SetEnd ¶
func (o *ReportDataTimePeriod) SetEnd(v string)
SetEnd gets a reference to the given string and assigns it to the End field.
func (*ReportDataTimePeriod) SetStart ¶
func (o *ReportDataTimePeriod) SetStart(v string)
SetStart gets a reference to the given string and assigns it to the Start field.
func (ReportDataTimePeriod) ToMap ¶
func (o ReportDataTimePeriod) ToMap() (map[string]interface{}, error)
func (*ReportDataTimePeriod) UnmarshalJSON ¶
func (o *ReportDataTimePeriod) UnmarshalJSON(data []byte) (err error)
type SummarizedProjectCost ¶
type SummarizedProjectCost struct {
CustomerAccountId string `json:"customerAccountId"`
ProjectId string `json:"projectId"`
ProjectName string `json:"projectName"`
// Total charge (including discounts) for all services and the whole requested date range (value in cents)
TotalCharge float64 `json:"totalCharge"`
// Total discount for all services and the whole requested date range (value in cents)
TotalDiscount float64 `json:"totalDiscount"`
AdditionalProperties map[string]interface{}
}
SummarizedProjectCost Summarized costs for a project
func NewSummarizedProjectCost ¶
func NewSummarizedProjectCost(customerAccountId string, projectId string, projectName string, totalCharge float64, totalDiscount float64) *SummarizedProjectCost
NewSummarizedProjectCost instantiates a new SummarizedProjectCost object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewSummarizedProjectCostWithDefaults ¶
func NewSummarizedProjectCostWithDefaults() *SummarizedProjectCost
NewSummarizedProjectCostWithDefaults instantiates a new SummarizedProjectCost object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*SummarizedProjectCost) GetCustomerAccountId ¶
func (o *SummarizedProjectCost) GetCustomerAccountId() string
GetCustomerAccountId returns the CustomerAccountId field value
func (*SummarizedProjectCost) GetCustomerAccountIdOk ¶
func (o *SummarizedProjectCost) GetCustomerAccountIdOk() (*string, bool)
GetCustomerAccountIdOk returns a tuple with the CustomerAccountId field value and a boolean to check if the value has been set.
func (*SummarizedProjectCost) GetProjectId ¶
func (o *SummarizedProjectCost) GetProjectId() string
GetProjectId returns the ProjectId field value
func (*SummarizedProjectCost) GetProjectIdOk ¶
func (o *SummarizedProjectCost) GetProjectIdOk() (*string, bool)
GetProjectIdOk returns a tuple with the ProjectId field value and a boolean to check if the value has been set.
func (*SummarizedProjectCost) GetProjectName ¶
func (o *SummarizedProjectCost) GetProjectName() string
GetProjectName returns the ProjectName field value
func (*SummarizedProjectCost) GetProjectNameOk ¶
func (o *SummarizedProjectCost) GetProjectNameOk() (*string, bool)
GetProjectNameOk returns a tuple with the ProjectName field value and a boolean to check if the value has been set.
func (*SummarizedProjectCost) GetTotalCharge ¶
func (o *SummarizedProjectCost) GetTotalCharge() float64
GetTotalCharge returns the TotalCharge field value
func (*SummarizedProjectCost) GetTotalChargeOk ¶
func (o *SummarizedProjectCost) GetTotalChargeOk() (*float64, bool)
GetTotalChargeOk returns a tuple with the TotalCharge field value and a boolean to check if the value has been set.
func (*SummarizedProjectCost) GetTotalDiscount ¶
func (o *SummarizedProjectCost) GetTotalDiscount() float64
GetTotalDiscount returns the TotalDiscount field value
func (*SummarizedProjectCost) GetTotalDiscountOk ¶
func (o *SummarizedProjectCost) GetTotalDiscountOk() (*float64, bool)
GetTotalDiscountOk returns a tuple with the TotalDiscount field value and a boolean to check if the value has been set.
func (SummarizedProjectCost) MarshalJSON ¶
func (o SummarizedProjectCost) MarshalJSON() ([]byte, error)
func (*SummarizedProjectCost) SetCustomerAccountId ¶
func (o *SummarizedProjectCost) SetCustomerAccountId(v string)
SetCustomerAccountId sets field value
func (*SummarizedProjectCost) SetProjectId ¶
func (o *SummarizedProjectCost) SetProjectId(v string)
SetProjectId sets field value
func (*SummarizedProjectCost) SetProjectName ¶
func (o *SummarizedProjectCost) SetProjectName(v string)
SetProjectName sets field value
func (*SummarizedProjectCost) SetTotalCharge ¶
func (o *SummarizedProjectCost) SetTotalCharge(v float64)
SetTotalCharge sets field value
func (*SummarizedProjectCost) SetTotalDiscount ¶
func (o *SummarizedProjectCost) SetTotalDiscount(v float64)
SetTotalDiscount sets field value
func (SummarizedProjectCost) ToMap ¶
func (o SummarizedProjectCost) ToMap() (map[string]interface{}, error)
func (*SummarizedProjectCost) UnmarshalJSON ¶
func (o *SummarizedProjectCost) UnmarshalJSON(data []byte) (err error)
type SummarizedServiceCost ¶
type SummarizedServiceCost struct {
CustomerAccountId string `json:"customerAccountId"`
ProjectId string `json:"projectId"`
ProjectName string `json:"projectName"`
// Total charge (including discounts) for all services and the whole requested date range (value in cents)
TotalCharge float64 `json:"totalCharge"`
// Total discount for all services and the whole requested date range (value in cents)
TotalDiscount float64 `json:"totalDiscount"`
AdditionalProperties map[string]interface{}
}
SummarizedServiceCost Summarized costs for a project
func NewSummarizedServiceCost ¶
func NewSummarizedServiceCost(customerAccountId string, projectId string, projectName string, totalCharge float64, totalDiscount float64) *SummarizedServiceCost
NewSummarizedServiceCost instantiates a new SummarizedServiceCost object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewSummarizedServiceCostWithDefaults ¶
func NewSummarizedServiceCostWithDefaults() *SummarizedServiceCost
NewSummarizedServiceCostWithDefaults instantiates a new SummarizedServiceCost object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*SummarizedServiceCost) GetCustomerAccountId ¶
func (o *SummarizedServiceCost) GetCustomerAccountId() string
GetCustomerAccountId returns the CustomerAccountId field value
func (*SummarizedServiceCost) GetCustomerAccountIdOk ¶
func (o *SummarizedServiceCost) GetCustomerAccountIdOk() (*string, bool)
GetCustomerAccountIdOk returns a tuple with the CustomerAccountId field value and a boolean to check if the value has been set.
func (*SummarizedServiceCost) GetProjectId ¶
func (o *SummarizedServiceCost) GetProjectId() string
GetProjectId returns the ProjectId field value
func (*SummarizedServiceCost) GetProjectIdOk ¶
func (o *SummarizedServiceCost) GetProjectIdOk() (*string, bool)
GetProjectIdOk returns a tuple with the ProjectId field value and a boolean to check if the value has been set.
func (*SummarizedServiceCost) GetProjectName ¶
func (o *SummarizedServiceCost) GetProjectName() string
GetProjectName returns the ProjectName field value
func (*SummarizedServiceCost) GetProjectNameOk ¶
func (o *SummarizedServiceCost) GetProjectNameOk() (*string, bool)
GetProjectNameOk returns a tuple with the ProjectName field value and a boolean to check if the value has been set.
func (*SummarizedServiceCost) GetTotalCharge ¶
func (o *SummarizedServiceCost) GetTotalCharge() float64
GetTotalCharge returns the TotalCharge field value
func (*SummarizedServiceCost) GetTotalChargeOk ¶
func (o *SummarizedServiceCost) GetTotalChargeOk() (*float64, bool)
GetTotalChargeOk returns a tuple with the TotalCharge field value and a boolean to check if the value has been set.
func (*SummarizedServiceCost) GetTotalDiscount ¶
func (o *SummarizedServiceCost) GetTotalDiscount() float64
GetTotalDiscount returns the TotalDiscount field value
func (*SummarizedServiceCost) GetTotalDiscountOk ¶
func (o *SummarizedServiceCost) GetTotalDiscountOk() (*float64, bool)
GetTotalDiscountOk returns a tuple with the TotalDiscount field value and a boolean to check if the value has been set.
func (SummarizedServiceCost) MarshalJSON ¶
func (o SummarizedServiceCost) MarshalJSON() ([]byte, error)
func (*SummarizedServiceCost) SetCustomerAccountId ¶
func (o *SummarizedServiceCost) SetCustomerAccountId(v string)
SetCustomerAccountId sets field value
func (*SummarizedServiceCost) SetProjectId ¶
func (o *SummarizedServiceCost) SetProjectId(v string)
SetProjectId sets field value
func (*SummarizedServiceCost) SetProjectName ¶
func (o *SummarizedServiceCost) SetProjectName(v string)
SetProjectName sets field value
func (*SummarizedServiceCost) SetTotalCharge ¶
func (o *SummarizedServiceCost) SetTotalCharge(v float64)
SetTotalCharge sets field value
func (*SummarizedServiceCost) SetTotalDiscount ¶
func (o *SummarizedServiceCost) SetTotalDiscount(v float64)
SetTotalDiscount sets field value
func (SummarizedServiceCost) ToMap ¶
func (o SummarizedServiceCost) ToMap() (map[string]interface{}, error)
func (*SummarizedServiceCost) UnmarshalJSON ¶
func (o *SummarizedServiceCost) UnmarshalJSON(data []byte) (err error)
Source Files
¶
- api_default.go
- api_default_mock.go
- client.go
- configuration.go
- model_default_error.go
- model_detailed_service_cost.go
- model_project_cost.go
- model_project_cost_with_detailed_services.go
- model_project_cost_with_reports.go
- model_project_cost_with_summarized_services.go
- model_report_data.go
- model_report_data_time_period.go
- model_summarized_project_cost.go
- model_summarized_service_cost.go
- response.go
- utils.go