models

package
v0.0.0-...-417219d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsAccessCredential

type AwsAccessCredential struct {

	// bucket arn
	BucketArn string `json:"bucket_arn,omitempty"`

	// cross account arn
	CrossAccountArn string `json:"cross_account_arn,omitempty"`

	// id
	ID int32 `json:"id,omitempty"`
}

AwsAccessCredential AwsAccessCredential model

swagger:model AwsAccessCredential

func (*AwsAccessCredential) ContextValidate

func (m *AwsAccessCredential) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this aws access credential based on context it is used

func (*AwsAccessCredential) MarshalBinary

func (m *AwsAccessCredential) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AwsAccessCredential) UnmarshalBinary

func (m *AwsAccessCredential) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AwsAccessCredential) Validate

func (m *AwsAccessCredential) Validate(formats strfmt.Registry) error

Validate validates this aws access credential

type AwsIamPolicies

type AwsIamPolicies struct {

	// autopilot
	Autopilot string `json:"autopilot,omitempty"`

	// cloudwatch
	Cloudwatch string `json:"cloudwatch,omitempty"`

	// resources
	Resources string `json:"resources,omitempty"`

	// root
	Root string `json:"root,omitempty"`
}

AwsIamPolicies aws iam policies

swagger:model AwsIamPolicies

func (*AwsIamPolicies) ContextValidate

func (m *AwsIamPolicies) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this aws iam policies based on context it is used

func (*AwsIamPolicies) MarshalBinary

func (m *AwsIamPolicies) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AwsIamPolicies) UnmarshalBinary

func (m *AwsIamPolicies) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AwsIamPolicies) Validate

func (m *AwsIamPolicies) Validate(formats strfmt.Registry) error

Validate validates this aws iam policies

type AwsProviderCredential

type AwsProviderCredential struct {

	// external id
	ExternalID string `json:"external_id,omitempty"`

	// iam role arn
	IamRoleArn string `json:"iam_role_arn,omitempty"`

	// iam role id
	IamRoleID string `json:"iam_role_id,omitempty"`

	// policies
	Policies *AwsIamPolicies `json:"policies,omitempty"`
}

AwsProviderCredential AwsProviderCredential model

swagger:model AwsProviderCredential

func (*AwsProviderCredential) ContextValidate

func (m *AwsProviderCredential) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this aws provider credential based on the context it is used

func (*AwsProviderCredential) MarshalBinary

func (m *AwsProviderCredential) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AwsProviderCredential) UnmarshalBinary

func (m *AwsProviderCredential) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AwsProviderCredential) Validate

func (m *AwsProviderCredential) Validate(formats strfmt.Registry) error

Validate validates this aws provider credential

type Costs

type Costs struct {

	// costs
	Costs []string `json:"costs"`

	// The currency both the total and cost amount values are represented in. e.g. USD
	Currency string `json:"currency,omitempty"`

	// links
	Links interface{} `json:"links,omitempty"`

	// The sum of all amounts of costs for the entire report for the requested period.
	Total string `json:"total,omitempty"`
}

Costs Costs model

swagger:model Costs

func (*Costs) ContextValidate

func (m *Costs) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this costs based on context it is used

func (*Costs) MarshalBinary

func (m *Costs) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Costs) UnmarshalBinary

func (m *Costs) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Costs) Validate

func (m *Costs) Validate(formats strfmt.Registry) error

Validate validates this costs

type PostIntegrationsAws

type PostIntegrationsAws struct {

	// The bucket where AWS CUR can be accessed.
	BucketArn string `json:"bucket_arn,omitempty"`

	// ARN of the role that has cross account access granted for the vantage role.
	// Required: true
	CrossAccountArn *string `json:"cross_account_arn"`
}

PostIntegrationsAws Create AWS integration.

swagger:model postIntegrationsAws

func (*PostIntegrationsAws) ContextValidate

func (m *PostIntegrationsAws) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this post integrations aws based on context it is used

func (*PostIntegrationsAws) MarshalBinary

func (m *PostIntegrationsAws) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PostIntegrationsAws) UnmarshalBinary

func (m *PostIntegrationsAws) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PostIntegrationsAws) Validate

func (m *PostIntegrationsAws) Validate(formats strfmt.Registry) error

Validate validates this post integrations aws

type Price

type Price struct {

	// The amount of money this specific product price costs.
	// Example: 1.324
	Amount float64 `json:"amount,omitempty"`

	// The currency of the amount.
	// Example: USD
	Currency string `json:"currency,omitempty"`

	// Service specific metadata.
	// Example: {"lifecycle":"on-demand","platform":"linux-enterprise"}
	Details interface{} `json:"details,omitempty"`

	// id
	ID string `json:"id,omitempty"`

	// The part of the product the price applies to. (compute, transfer, etc..)
	// Example: compute
	RateType string `json:"rate_type,omitempty"`

	// The region the price is specific to.
	// Example: us-east-1
	Region string `json:"region,omitempty"`

	// The unit in which the amount is billed.
	// Example: hour
	Unit string `json:"unit,omitempty"`
}

Price Price model

swagger:model Price

func (*Price) ContextValidate

func (m *Price) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this price based on context it is used

func (*Price) MarshalBinary

func (m *Price) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Price) UnmarshalBinary

func (m *Price) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Price) Validate

func (m *Price) Validate(formats strfmt.Registry) error

Validate validates this price

type Prices

type Prices struct {

	// links
	Links interface{} `json:"links,omitempty"`

	// prices
	Prices []*Price `json:"prices"`
}

Prices Prices model

swagger:model Prices

func (*Prices) ContextValidate

func (m *Prices) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this prices based on the context it is used

func (*Prices) MarshalBinary

func (m *Prices) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Prices) UnmarshalBinary

func (m *Prices) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Prices) Validate

func (m *Prices) Validate(formats strfmt.Registry) error

Validate validates this prices

type Product

type Product struct {

	// The category of the cloud product
	// Example: compute
	Category string `json:"category,omitempty"`

	// An object of metadata about the product.
	// Example: {"clock_speed_ghz":3.1,"gpu":0,"memory":256,"name":"M5 General Purpose 16xlarge","network_performance_description":"20 Gigabit","physical_processor_description":"Intel Xeon Platinum 8175 (Skylake)","vcpu":64}
	Details interface{} `json:"details,omitempty"`

	// id
	ID string `json:"id,omitempty"`

	// The common name of the product.
	// Example: EC2
	Name string `json:"name,omitempty"`

	// A unique slug for the provider the product belongs to.
	// Example: aws
	ProviderID string `json:"provider_id,omitempty"`

	// A unique slug for the service the product belongs to.
	// Example: aws-ec2
	ServiceID string `json:"service_id,omitempty"`
}

Product Product model

swagger:model Product

func (*Product) ContextValidate

func (m *Product) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this product based on context it is used

func (*Product) MarshalBinary

func (m *Product) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Product) UnmarshalBinary

func (m *Product) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Product) Validate

func (m *Product) Validate(formats strfmt.Registry) error

Validate validates this product

type Products

type Products struct {

	// links
	Links interface{} `json:"links,omitempty"`

	// products
	Products []*Product `json:"products"`
}

Products Products model

swagger:model Products

func (*Products) ContextValidate

func (m *Products) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this products based on the context it is used

func (*Products) MarshalBinary

func (m *Products) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Products) UnmarshalBinary

func (m *Products) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Products) Validate

func (m *Products) Validate(formats strfmt.Registry) error

Validate validates this products

type Provider

type Provider struct {

	// The full descriptive name of the provider.
	// Example: Amazon Web Services
	Description string `json:"description,omitempty"`

	// id
	ID string `json:"id,omitempty"`

	// The common name of the provider.
	// Example: AWS
	Name string `json:"name,omitempty"`
}

Provider provider

swagger:model Provider

func (*Provider) ContextValidate

func (m *Provider) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this provider based on context it is used

func (*Provider) MarshalBinary

func (m *Provider) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Provider) UnmarshalBinary

func (m *Provider) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Provider) Validate

func (m *Provider) Validate(formats strfmt.Registry) error

Validate validates this provider

type Providers

type Providers struct {

	// links
	Links interface{} `json:"links,omitempty"`

	// providers
	Providers []*Provider `json:"providers"`
}

Providers Providers model

swagger:model Providers

func (*Providers) ContextValidate

func (m *Providers) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this providers based on the context it is used

func (*Providers) MarshalBinary

func (m *Providers) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Providers) UnmarshalBinary

func (m *Providers) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Providers) Validate

func (m *Providers) Validate(formats strfmt.Registry) error

Validate validates this providers

type PutIntegrationsAws

type PutIntegrationsAws struct {

	// The bucket where AWS CUR can be accessed.
	BucketArn string `json:"bucket_arn,omitempty"`

	// ARN of the role that has cross account access granted for the vantage role.
	// Required: true
	CrossAccountArn *string `json:"cross_account_arn"`
}

PutIntegrationsAws Update AWS integration.

swagger:model putIntegrationsAws

func (*PutIntegrationsAws) ContextValidate

func (m *PutIntegrationsAws) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this put integrations aws based on context it is used

func (*PutIntegrationsAws) MarshalBinary

func (m *PutIntegrationsAws) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PutIntegrationsAws) UnmarshalBinary

func (m *PutIntegrationsAws) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PutIntegrationsAws) Validate

func (m *PutIntegrationsAws) Validate(formats strfmt.Registry) error

Validate validates this put integrations aws

type Report

type Report struct {

	// The date and time, in UTC, the report was created. ISO 8601 Formatted.
	// Example: 2021-07-09T00:00:00Z
	CreatedAt string `json:"created_at,omitempty"`

	// The date and time, in UTC, the report was created. ISO 8601 Formatted.
	// Example: 2021-07-09T00:00:00Z
	EarliestCostDate string `json:"earliest_cost_date,omitempty"`

	// id
	ID string `json:"id,omitempty"`

	// The date and time, in UTC, the report was created. ISO 8601 Formatted.
	// Example: 2021-07-09T00:00:00Z
	LatestCostDate string `json:"latest_cost_date,omitempty"`

	// The title of the cost report.
	// Example: Production Environment
	Title string `json:"title,omitempty"`

	// The name of the workspace the report is a part of.
	Workspace string `json:"workspace,omitempty"`
}

Report Report model

swagger:model Report

func (*Report) ContextValidate

func (m *Report) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this report based on context it is used

func (*Report) MarshalBinary

func (m *Report) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Report) UnmarshalBinary

func (m *Report) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Report) Validate

func (m *Report) Validate(formats strfmt.Registry) error

Validate validates this report

type Reports

type Reports struct {

	// links
	Links interface{} `json:"links,omitempty"`

	// reports
	Reports []*Report `json:"reports"`
}

Reports Reports model

swagger:model Reports

func (*Reports) ContextValidate

func (m *Reports) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this reports based on the context it is used

func (*Reports) MarshalBinary

func (m *Reports) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Reports) UnmarshalBinary

func (m *Reports) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Reports) Validate

func (m *Reports) Validate(formats strfmt.Registry) error

Validate validates this reports

type Service

type Service struct {

	// The type of cloud service.
	// Example: compute
	Category string `json:"category,omitempty"`

	// The full name of the service.
	// Example: Elastic Compute Cloud
	Description string `json:"description,omitempty"`

	// id
	ID string `json:"id,omitempty"`

	// The common name of the service. Usually an abbreviation.
	// Example: EC2
	Name string `json:"name,omitempty"`
}

Service service

swagger:model Service

func (*Service) ContextValidate

func (m *Service) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this service based on context it is used

func (*Service) MarshalBinary

func (m *Service) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Service) UnmarshalBinary

func (m *Service) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Service) Validate

func (m *Service) Validate(formats strfmt.Registry) error

Validate validates this service

type Services

type Services struct {

	// links
	Links interface{} `json:"links,omitempty"`

	// services
	Services []*Service `json:"services"`
}

Services Services model

swagger:model Services

func (*Services) ContextValidate

func (m *Services) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this services based on the context it is used

func (*Services) MarshalBinary

func (m *Services) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Services) UnmarshalBinary

func (m *Services) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Services) Validate

func (m *Services) Validate(formats strfmt.Registry) error

Validate validates this services

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL