licensing

package
v0.0.0-...-6c9a280 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// GetOrganizationLicensingCotermLicensesOKBodyItems0ModeAddDevices captures enum value "addDevices"
	GetOrganizationLicensingCotermLicensesOKBodyItems0ModeAddDevices string = "addDevices"

	// GetOrganizationLicensingCotermLicensesOKBodyItems0ModeRenew captures enum value "renew"
	GetOrganizationLicensingCotermLicensesOKBodyItems0ModeRenew string = "renew"
)
View Source
const (

	// MoveOrganizationLicensingCotermLicensesOKBodyMovedLicensesItems0ModeAddDevices captures enum value "addDevices"
	MoveOrganizationLicensingCotermLicensesOKBodyMovedLicensesItems0ModeAddDevices string = "addDevices"

	// MoveOrganizationLicensingCotermLicensesOKBodyMovedLicensesItems0ModeRenew captures enum value "renew"
	MoveOrganizationLicensingCotermLicensesOKBodyMovedLicensesItems0ModeRenew string = "renew"
)
View Source
const (

	// MoveOrganizationLicensingCotermLicensesOKBodyRemainderLicensesItems0ModeAddDevices captures enum value "addDevices"
	MoveOrganizationLicensingCotermLicensesOKBodyRemainderLicensesItems0ModeAddDevices string = "addDevices"

	// MoveOrganizationLicensingCotermLicensesOKBodyRemainderLicensesItems0ModeRenew captures enum value "renew"
	MoveOrganizationLicensingCotermLicensesOKBodyRemainderLicensesItems0ModeRenew string = "renew"
)
View Source
const (

	// MoveOrganizationLicensingCotermLicensesParamsBodyDestinationModeAddDevices captures enum value "addDevices"
	MoveOrganizationLicensingCotermLicensesParamsBodyDestinationModeAddDevices string = "addDevices"

	// MoveOrganizationLicensingCotermLicensesParamsBodyDestinationModeRenew captures enum value "renew"
	MoveOrganizationLicensingCotermLicensesParamsBodyDestinationModeRenew string = "renew"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for licensing API

func (*Client) GetOrganizationLicensingCotermLicenses

GetOrganizationLicensingCotermLicenses lists the licenses in a coterm organization

List the licenses in a coterm organization

func (*Client) MoveOrganizationLicensingCotermLicenses

MoveOrganizationLicensingCotermLicenses moves a license to a different organization coterm only

Moves a license to a different organization (coterm only)

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetOrganizationLicensingCotermLicenses(params *GetOrganizationLicensingCotermLicensesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetOrganizationLicensingCotermLicensesOK, error)

	MoveOrganizationLicensingCotermLicenses(params *MoveOrganizationLicensingCotermLicensesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MoveOrganizationLicensingCotermLicensesOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new licensing API client.

type GetOrganizationLicensingCotermLicensesOK

type GetOrganizationLicensingCotermLicensesOK struct {

	/* A comma-separated list of first, last, prev, and next relative links used for subsequent paginated requests.
	 */
	Link string

	Payload []*GetOrganizationLicensingCotermLicensesOKBodyItems0
}

GetOrganizationLicensingCotermLicensesOK describes a response with status code 200, with default header values.

Successful operation

func NewGetOrganizationLicensingCotermLicensesOK

func NewGetOrganizationLicensingCotermLicensesOK() *GetOrganizationLicensingCotermLicensesOK

NewGetOrganizationLicensingCotermLicensesOK creates a GetOrganizationLicensingCotermLicensesOK with default headers values

func (*GetOrganizationLicensingCotermLicensesOK) Code

Code gets the status code for the get organization licensing coterm licenses o k response

func (*GetOrganizationLicensingCotermLicensesOK) Error

func (*GetOrganizationLicensingCotermLicensesOK) GetPayload

func (*GetOrganizationLicensingCotermLicensesOK) IsClientError

IsClientError returns true when this get organization licensing coterm licenses o k response has a 4xx status code

func (*GetOrganizationLicensingCotermLicensesOK) IsCode

IsCode returns true when this get organization licensing coterm licenses o k response a status code equal to that given

func (*GetOrganizationLicensingCotermLicensesOK) IsRedirect

IsRedirect returns true when this get organization licensing coterm licenses o k response has a 3xx status code

func (*GetOrganizationLicensingCotermLicensesOK) IsServerError

IsServerError returns true when this get organization licensing coterm licenses o k response has a 5xx status code

func (*GetOrganizationLicensingCotermLicensesOK) IsSuccess

IsSuccess returns true when this get organization licensing coterm licenses o k response has a 2xx status code

func (*GetOrganizationLicensingCotermLicensesOK) String

type GetOrganizationLicensingCotermLicensesOKBodyItems0

type GetOrganizationLicensingCotermLicensesOKBodyItems0 struct {

	// When the license was claimed into the organization
	// Format: date-time
	ClaimedAt strfmt.DateTime `json:"claimedAt,omitempty"`

	// The counts of the license by model type
	Counts []*GetOrganizationLicensingCotermLicensesOKBodyItems0CountsItems0 `json:"counts"`

	// The duration (term length) of the license, measured in days
	Duration int64 `json:"duration,omitempty"`

	// The editions of the license for each relevant product type
	Editions []*GetOrganizationLicensingCotermLicensesOKBodyItems0EditionsItems0 `json:"editions"`

	// Flag to indicate if the license is expired
	Expired bool `json:"expired,omitempty"`

	// Flag to indicated that the license is invalidated
	Invalidated bool `json:"invalidated,omitempty"`

	// When the license was invalidated. Will be null for active licenses
	// Format: date-time
	InvalidatedAt strfmt.DateTime `json:"invalidatedAt,omitempty"`

	// The key of the license
	Key string `json:"key,omitempty"`

	// The operation mode of the license when it was claimed
	// Enum: [addDevices renew]
	Mode string `json:"mode,omitempty"`

	// The ID of the organization that the license is claimed in
	OrganizationID string `json:"organizationId,omitempty"`

	// When the license's term began (approximately the date when the license was created)
	// Format: date-time
	StartedAt strfmt.DateTime `json:"startedAt,omitempty"`
}

GetOrganizationLicensingCotermLicensesOKBodyItems0 get organization licensing coterm licenses o k body items0 swagger:model GetOrganizationLicensingCotermLicensesOKBodyItems0

func (*GetOrganizationLicensingCotermLicensesOKBodyItems0) ContextValidate

ContextValidate validate this get organization licensing coterm licenses o k body items0 based on the context it is used

func (*GetOrganizationLicensingCotermLicensesOKBodyItems0) MarshalBinary

MarshalBinary interface implementation

func (*GetOrganizationLicensingCotermLicensesOKBodyItems0) UnmarshalBinary

UnmarshalBinary interface implementation

func (*GetOrganizationLicensingCotermLicensesOKBodyItems0) Validate

Validate validates this get organization licensing coterm licenses o k body items0

type GetOrganizationLicensingCotermLicensesOKBodyItems0CountsItems0

type GetOrganizationLicensingCotermLicensesOKBodyItems0CountsItems0 struct {

	// The number of counts the license contains of this model
	Count int64 `json:"count,omitempty"`

	// The license model type
	Model string `json:"model,omitempty"`
}

GetOrganizationLicensingCotermLicensesOKBodyItems0CountsItems0 get organization licensing coterm licenses o k body items0 counts items0 swagger:model GetOrganizationLicensingCotermLicensesOKBodyItems0CountsItems0

func (*GetOrganizationLicensingCotermLicensesOKBodyItems0CountsItems0) ContextValidate

ContextValidate validates this get organization licensing coterm licenses o k body items0 counts items0 based on context it is used

func (*GetOrganizationLicensingCotermLicensesOKBodyItems0CountsItems0) MarshalBinary

MarshalBinary interface implementation

func (*GetOrganizationLicensingCotermLicensesOKBodyItems0CountsItems0) UnmarshalBinary

UnmarshalBinary interface implementation

func (*GetOrganizationLicensingCotermLicensesOKBodyItems0CountsItems0) Validate

Validate validates this get organization licensing coterm licenses o k body items0 counts items0

type GetOrganizationLicensingCotermLicensesOKBodyItems0EditionsItems0

type GetOrganizationLicensingCotermLicensesOKBodyItems0EditionsItems0 struct {

	// The name of the license edition
	Edition string `json:"edition,omitempty"`

	// The product type of the license edition
	ProductType string `json:"productType,omitempty"`
}

GetOrganizationLicensingCotermLicensesOKBodyItems0EditionsItems0 get organization licensing coterm licenses o k body items0 editions items0 swagger:model GetOrganizationLicensingCotermLicensesOKBodyItems0EditionsItems0

func (*GetOrganizationLicensingCotermLicensesOKBodyItems0EditionsItems0) ContextValidate

ContextValidate validates this get organization licensing coterm licenses o k body items0 editions items0 based on context it is used

func (*GetOrganizationLicensingCotermLicensesOKBodyItems0EditionsItems0) MarshalBinary

MarshalBinary interface implementation

func (*GetOrganizationLicensingCotermLicensesOKBodyItems0EditionsItems0) UnmarshalBinary

UnmarshalBinary interface implementation

func (*GetOrganizationLicensingCotermLicensesOKBodyItems0EditionsItems0) Validate

Validate validates this get organization licensing coterm licenses o k body items0 editions items0

type GetOrganizationLicensingCotermLicensesParams

type GetOrganizationLicensingCotermLicensesParams struct {

	/* EndingBefore.

	   A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
	*/
	EndingBefore *string

	/* Expired.

	   Filter for licenses that are expired
	*/
	Expired *bool

	/* Invalidated.

	   Filter for licenses that are invalidated
	*/
	Invalidated *bool

	/* OrganizationID.

	   Organization ID
	*/
	OrganizationID string

	/* PerPage.

	   The number of entries per page returned. Acceptable range is 3 - 1000. Default is 1000.
	*/
	PerPage *int64

	/* StartingAfter.

	   A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it.
	*/
	StartingAfter *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetOrganizationLicensingCotermLicensesParams contains all the parameters to send to the API endpoint

for the get organization licensing coterm licenses operation.

Typically these are written to a http.Request.

func NewGetOrganizationLicensingCotermLicensesParams

func NewGetOrganizationLicensingCotermLicensesParams() *GetOrganizationLicensingCotermLicensesParams

NewGetOrganizationLicensingCotermLicensesParams creates a new GetOrganizationLicensingCotermLicensesParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetOrganizationLicensingCotermLicensesParamsWithContext

func NewGetOrganizationLicensingCotermLicensesParamsWithContext(ctx context.Context) *GetOrganizationLicensingCotermLicensesParams

NewGetOrganizationLicensingCotermLicensesParamsWithContext creates a new GetOrganizationLicensingCotermLicensesParams object with the ability to set a context for a request.

func NewGetOrganizationLicensingCotermLicensesParamsWithHTTPClient

func NewGetOrganizationLicensingCotermLicensesParamsWithHTTPClient(client *http.Client) *GetOrganizationLicensingCotermLicensesParams

NewGetOrganizationLicensingCotermLicensesParamsWithHTTPClient creates a new GetOrganizationLicensingCotermLicensesParams object with the ability to set a custom HTTPClient for a request.

func NewGetOrganizationLicensingCotermLicensesParamsWithTimeout

func NewGetOrganizationLicensingCotermLicensesParamsWithTimeout(timeout time.Duration) *GetOrganizationLicensingCotermLicensesParams

NewGetOrganizationLicensingCotermLicensesParamsWithTimeout creates a new GetOrganizationLicensingCotermLicensesParams object with the ability to set a timeout on a request.

func (*GetOrganizationLicensingCotermLicensesParams) SetContext

SetContext adds the context to the get organization licensing coterm licenses params

func (*GetOrganizationLicensingCotermLicensesParams) SetDefaults

SetDefaults hydrates default values in the get organization licensing coterm licenses params (not the query body).

All values with no default are reset to their zero value.

func (*GetOrganizationLicensingCotermLicensesParams) SetEndingBefore

func (o *GetOrganizationLicensingCotermLicensesParams) SetEndingBefore(endingBefore *string)

SetEndingBefore adds the endingBefore to the get organization licensing coterm licenses params

func (*GetOrganizationLicensingCotermLicensesParams) SetExpired

func (o *GetOrganizationLicensingCotermLicensesParams) SetExpired(expired *bool)

SetExpired adds the expired to the get organization licensing coterm licenses params

func (*GetOrganizationLicensingCotermLicensesParams) SetHTTPClient

func (o *GetOrganizationLicensingCotermLicensesParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get organization licensing coterm licenses params

func (*GetOrganizationLicensingCotermLicensesParams) SetInvalidated

func (o *GetOrganizationLicensingCotermLicensesParams) SetInvalidated(invalidated *bool)

SetInvalidated adds the invalidated to the get organization licensing coterm licenses params

func (*GetOrganizationLicensingCotermLicensesParams) SetOrganizationID

func (o *GetOrganizationLicensingCotermLicensesParams) SetOrganizationID(organizationID string)

SetOrganizationID adds the organizationId to the get organization licensing coterm licenses params

func (*GetOrganizationLicensingCotermLicensesParams) SetPerPage

func (o *GetOrganizationLicensingCotermLicensesParams) SetPerPage(perPage *int64)

SetPerPage adds the perPage to the get organization licensing coterm licenses params

func (*GetOrganizationLicensingCotermLicensesParams) SetStartingAfter

func (o *GetOrganizationLicensingCotermLicensesParams) SetStartingAfter(startingAfter *string)

SetStartingAfter adds the startingAfter to the get organization licensing coterm licenses params

func (*GetOrganizationLicensingCotermLicensesParams) SetTimeout

SetTimeout adds the timeout to the get organization licensing coterm licenses params

func (*GetOrganizationLicensingCotermLicensesParams) WithContext

WithContext adds the context to the get organization licensing coterm licenses params

func (*GetOrganizationLicensingCotermLicensesParams) WithDefaults

WithDefaults hydrates default values in the get organization licensing coterm licenses params (not the query body).

All values with no default are reset to their zero value.

func (*GetOrganizationLicensingCotermLicensesParams) WithEndingBefore

WithEndingBefore adds the endingBefore to the get organization licensing coterm licenses params

func (*GetOrganizationLicensingCotermLicensesParams) WithExpired

WithExpired adds the expired to the get organization licensing coterm licenses params

func (*GetOrganizationLicensingCotermLicensesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get organization licensing coterm licenses params

func (*GetOrganizationLicensingCotermLicensesParams) WithInvalidated

WithInvalidated adds the invalidated to the get organization licensing coterm licenses params

func (*GetOrganizationLicensingCotermLicensesParams) WithOrganizationID

WithOrganizationID adds the organizationID to the get organization licensing coterm licenses params

func (*GetOrganizationLicensingCotermLicensesParams) WithPerPage

WithPerPage adds the perPage to the get organization licensing coterm licenses params

func (*GetOrganizationLicensingCotermLicensesParams) WithStartingAfter

WithStartingAfter adds the startingAfter to the get organization licensing coterm licenses params

func (*GetOrganizationLicensingCotermLicensesParams) WithTimeout

WithTimeout adds the timeout to the get organization licensing coterm licenses params

func (*GetOrganizationLicensingCotermLicensesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetOrganizationLicensingCotermLicensesReader

type GetOrganizationLicensingCotermLicensesReader struct {
	// contains filtered or unexported fields
}

GetOrganizationLicensingCotermLicensesReader is a Reader for the GetOrganizationLicensingCotermLicenses structure.

func (*GetOrganizationLicensingCotermLicensesReader) ReadResponse

func (o *GetOrganizationLicensingCotermLicensesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type MoveOrganizationLicensingCotermLicensesBody

type MoveOrganizationLicensingCotermLicensesBody struct {

	// destination
	// Required: true
	Destination *MoveOrganizationLicensingCotermLicensesParamsBodyDestination `json:"destination"`

	// The list of licenses to move
	// Required: true
	Licenses []*MoveOrganizationLicensingCotermLicensesParamsBodyLicensesItems0 `json:"licenses"`
}

MoveOrganizationLicensingCotermLicensesBody move organization licensing coterm licenses body // Example: {"destination":{"mode":"addDevices","organizationId":"123"},"licenses":[{"counts":[{"count":5,"model":"MR Enterprise"}],"key":"Z2AA-BBBB-CCCC"}]} swagger:model MoveOrganizationLicensingCotermLicensesBody

func (*MoveOrganizationLicensingCotermLicensesBody) ContextValidate

ContextValidate validate this move organization licensing coterm licenses body based on the context it is used

func (*MoveOrganizationLicensingCotermLicensesBody) MarshalBinary

func (o *MoveOrganizationLicensingCotermLicensesBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*MoveOrganizationLicensingCotermLicensesBody) UnmarshalBinary

func (o *MoveOrganizationLicensingCotermLicensesBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*MoveOrganizationLicensingCotermLicensesBody) Validate

Validate validates this move organization licensing coterm licenses body

type MoveOrganizationLicensingCotermLicensesOK

type MoveOrganizationLicensingCotermLicensesOK struct {
	Payload *MoveOrganizationLicensingCotermLicensesOKBody
}

MoveOrganizationLicensingCotermLicensesOK describes a response with status code 200, with default header values.

Successful operation

func NewMoveOrganizationLicensingCotermLicensesOK

func NewMoveOrganizationLicensingCotermLicensesOK() *MoveOrganizationLicensingCotermLicensesOK

NewMoveOrganizationLicensingCotermLicensesOK creates a MoveOrganizationLicensingCotermLicensesOK with default headers values

func (*MoveOrganizationLicensingCotermLicensesOK) Code

Code gets the status code for the move organization licensing coterm licenses o k response

func (*MoveOrganizationLicensingCotermLicensesOK) Error

func (*MoveOrganizationLicensingCotermLicensesOK) GetPayload

func (*MoveOrganizationLicensingCotermLicensesOK) IsClientError

IsClientError returns true when this move organization licensing coterm licenses o k response has a 4xx status code

func (*MoveOrganizationLicensingCotermLicensesOK) IsCode

IsCode returns true when this move organization licensing coterm licenses o k response a status code equal to that given

func (*MoveOrganizationLicensingCotermLicensesOK) IsRedirect

IsRedirect returns true when this move organization licensing coterm licenses o k response has a 3xx status code

func (*MoveOrganizationLicensingCotermLicensesOK) IsServerError

IsServerError returns true when this move organization licensing coterm licenses o k response has a 5xx status code

func (*MoveOrganizationLicensingCotermLicensesOK) IsSuccess

IsSuccess returns true when this move organization licensing coterm licenses o k response has a 2xx status code

func (*MoveOrganizationLicensingCotermLicensesOK) String

type MoveOrganizationLicensingCotermLicensesOKBody

type MoveOrganizationLicensingCotermLicensesOKBody struct {

	// Newly moved licenses created in the destination organization of the license move operation
	MovedLicenses []*MoveOrganizationLicensingCotermLicensesOKBodyMovedLicensesItems0 `json:"movedLicenses"`

	// Remainder licenses created in the source organization as a result of moving a subset of the counts of a license
	RemainderLicenses []*MoveOrganizationLicensingCotermLicensesOKBodyRemainderLicensesItems0 `json:"remainderLicenses"`
}

MoveOrganizationLicensingCotermLicensesOKBody move organization licensing coterm licenses o k body swagger:model MoveOrganizationLicensingCotermLicensesOKBody

func (*MoveOrganizationLicensingCotermLicensesOKBody) ContextValidate

ContextValidate validate this move organization licensing coterm licenses o k body based on the context it is used

func (*MoveOrganizationLicensingCotermLicensesOKBody) MarshalBinary

MarshalBinary interface implementation

func (*MoveOrganizationLicensingCotermLicensesOKBody) UnmarshalBinary

UnmarshalBinary interface implementation

func (*MoveOrganizationLicensingCotermLicensesOKBody) Validate

Validate validates this move organization licensing coterm licenses o k body

type MoveOrganizationLicensingCotermLicensesOKBodyMovedLicensesItems0

type MoveOrganizationLicensingCotermLicensesOKBodyMovedLicensesItems0 struct {

	// When the license was claimed into the organization
	// Format: date-time
	ClaimedAt strfmt.DateTime `json:"claimedAt,omitempty"`

	// The counts of the license by model type
	Counts []*MoveOrganizationLicensingCotermLicensesOKBodyMovedLicensesItems0CountsItems0 `json:"counts"`

	// The duration (term length) of the license, measured in days
	Duration int64 `json:"duration,omitempty"`

	// The editions of the license for each relevant product type
	Editions []*MoveOrganizationLicensingCotermLicensesOKBodyMovedLicensesItems0EditionsItems0 `json:"editions"`

	// Flag to indicate if the license is expired
	Expired bool `json:"expired,omitempty"`

	// Flag to indicated that the license is invalidated
	Invalidated bool `json:"invalidated,omitempty"`

	// When the license was invalidated. Will be null for active licenses
	// Format: date-time
	InvalidatedAt strfmt.DateTime `json:"invalidatedAt,omitempty"`

	// The key of the license
	Key string `json:"key,omitempty"`

	// The operation mode of the license when it was claimed
	// Enum: [addDevices renew]
	Mode string `json:"mode,omitempty"`

	// The ID of the organization that the license is claimed in
	OrganizationID string `json:"organizationId,omitempty"`

	// When the license's term began (approximately the date when the license was created)
	// Format: date-time
	StartedAt strfmt.DateTime `json:"startedAt,omitempty"`
}

MoveOrganizationLicensingCotermLicensesOKBodyMovedLicensesItems0 move organization licensing coterm licenses o k body moved licenses items0 swagger:model MoveOrganizationLicensingCotermLicensesOKBodyMovedLicensesItems0

func (*MoveOrganizationLicensingCotermLicensesOKBodyMovedLicensesItems0) ContextValidate

ContextValidate validate this move organization licensing coterm licenses o k body moved licenses items0 based on the context it is used

func (*MoveOrganizationLicensingCotermLicensesOKBodyMovedLicensesItems0) MarshalBinary

MarshalBinary interface implementation

func (*MoveOrganizationLicensingCotermLicensesOKBodyMovedLicensesItems0) UnmarshalBinary

UnmarshalBinary interface implementation

func (*MoveOrganizationLicensingCotermLicensesOKBodyMovedLicensesItems0) Validate

Validate validates this move organization licensing coterm licenses o k body moved licenses items0

type MoveOrganizationLicensingCotermLicensesOKBodyMovedLicensesItems0CountsItems0

type MoveOrganizationLicensingCotermLicensesOKBodyMovedLicensesItems0CountsItems0 struct {

	// The number of counts the license contains of this model
	Count int64 `json:"count,omitempty"`

	// The license model type
	Model string `json:"model,omitempty"`
}

MoveOrganizationLicensingCotermLicensesOKBodyMovedLicensesItems0CountsItems0 move organization licensing coterm licenses o k body moved licenses items0 counts items0 swagger:model MoveOrganizationLicensingCotermLicensesOKBodyMovedLicensesItems0CountsItems0

func (*MoveOrganizationLicensingCotermLicensesOKBodyMovedLicensesItems0CountsItems0) ContextValidate

ContextValidate validates this move organization licensing coterm licenses o k body moved licenses items0 counts items0 based on context it is used

func (*MoveOrganizationLicensingCotermLicensesOKBodyMovedLicensesItems0CountsItems0) MarshalBinary

MarshalBinary interface implementation

func (*MoveOrganizationLicensingCotermLicensesOKBodyMovedLicensesItems0CountsItems0) UnmarshalBinary

UnmarshalBinary interface implementation

func (*MoveOrganizationLicensingCotermLicensesOKBodyMovedLicensesItems0CountsItems0) Validate

Validate validates this move organization licensing coterm licenses o k body moved licenses items0 counts items0

type MoveOrganizationLicensingCotermLicensesOKBodyMovedLicensesItems0EditionsItems0

type MoveOrganizationLicensingCotermLicensesOKBodyMovedLicensesItems0EditionsItems0 struct {

	// The name of the license edition
	Edition string `json:"edition,omitempty"`

	// The product type of the license edition
	ProductType string `json:"productType,omitempty"`
}

MoveOrganizationLicensingCotermLicensesOKBodyMovedLicensesItems0EditionsItems0 move organization licensing coterm licenses o k body moved licenses items0 editions items0 swagger:model MoveOrganizationLicensingCotermLicensesOKBodyMovedLicensesItems0EditionsItems0

func (*MoveOrganizationLicensingCotermLicensesOKBodyMovedLicensesItems0EditionsItems0) ContextValidate

ContextValidate validates this move organization licensing coterm licenses o k body moved licenses items0 editions items0 based on context it is used

func (*MoveOrganizationLicensingCotermLicensesOKBodyMovedLicensesItems0EditionsItems0) MarshalBinary

MarshalBinary interface implementation

func (*MoveOrganizationLicensingCotermLicensesOKBodyMovedLicensesItems0EditionsItems0) UnmarshalBinary

UnmarshalBinary interface implementation

func (*MoveOrganizationLicensingCotermLicensesOKBodyMovedLicensesItems0EditionsItems0) Validate

Validate validates this move organization licensing coterm licenses o k body moved licenses items0 editions items0

type MoveOrganizationLicensingCotermLicensesOKBodyRemainderLicensesItems0

type MoveOrganizationLicensingCotermLicensesOKBodyRemainderLicensesItems0 struct {

	// When the license was claimed into the organization
	// Format: date-time
	ClaimedAt strfmt.DateTime `json:"claimedAt,omitempty"`

	// The counts of the license by model type
	Counts []*MoveOrganizationLicensingCotermLicensesOKBodyRemainderLicensesItems0CountsItems0 `json:"counts"`

	// The duration (term length) of the license, measured in days
	Duration int64 `json:"duration,omitempty"`

	// The editions of the license for each relevant product type
	Editions []*MoveOrganizationLicensingCotermLicensesOKBodyRemainderLicensesItems0EditionsItems0 `json:"editions"`

	// Flag to indicate if the license is expired
	Expired bool `json:"expired,omitempty"`

	// Flag to indicated that the license is invalidated
	Invalidated bool `json:"invalidated,omitempty"`

	// When the license was invalidated. Will be null for active licenses
	// Format: date-time
	InvalidatedAt strfmt.DateTime `json:"invalidatedAt,omitempty"`

	// The key of the license
	Key string `json:"key,omitempty"`

	// The operation mode of the license when it was claimed
	// Enum: [addDevices renew]
	Mode string `json:"mode,omitempty"`

	// The ID of the organization that the license is claimed in
	OrganizationID string `json:"organizationId,omitempty"`

	// When the license's term began (approximately the date when the license was created)
	// Format: date-time
	StartedAt strfmt.DateTime `json:"startedAt,omitempty"`
}

MoveOrganizationLicensingCotermLicensesOKBodyRemainderLicensesItems0 move organization licensing coterm licenses o k body remainder licenses items0 swagger:model MoveOrganizationLicensingCotermLicensesOKBodyRemainderLicensesItems0

func (*MoveOrganizationLicensingCotermLicensesOKBodyRemainderLicensesItems0) ContextValidate

ContextValidate validate this move organization licensing coterm licenses o k body remainder licenses items0 based on the context it is used

func (*MoveOrganizationLicensingCotermLicensesOKBodyRemainderLicensesItems0) MarshalBinary

MarshalBinary interface implementation

func (*MoveOrganizationLicensingCotermLicensesOKBodyRemainderLicensesItems0) UnmarshalBinary

UnmarshalBinary interface implementation

func (*MoveOrganizationLicensingCotermLicensesOKBodyRemainderLicensesItems0) Validate

Validate validates this move organization licensing coterm licenses o k body remainder licenses items0

type MoveOrganizationLicensingCotermLicensesOKBodyRemainderLicensesItems0CountsItems0

type MoveOrganizationLicensingCotermLicensesOKBodyRemainderLicensesItems0CountsItems0 struct {

	// The number of counts the license contains of this model
	Count int64 `json:"count,omitempty"`

	// The license model type
	Model string `json:"model,omitempty"`
}

MoveOrganizationLicensingCotermLicensesOKBodyRemainderLicensesItems0CountsItems0 move organization licensing coterm licenses o k body remainder licenses items0 counts items0 swagger:model MoveOrganizationLicensingCotermLicensesOKBodyRemainderLicensesItems0CountsItems0

func (*MoveOrganizationLicensingCotermLicensesOKBodyRemainderLicensesItems0CountsItems0) ContextValidate

ContextValidate validates this move organization licensing coterm licenses o k body remainder licenses items0 counts items0 based on context it is used

func (*MoveOrganizationLicensingCotermLicensesOKBodyRemainderLicensesItems0CountsItems0) MarshalBinary

MarshalBinary interface implementation

func (*MoveOrganizationLicensingCotermLicensesOKBodyRemainderLicensesItems0CountsItems0) UnmarshalBinary

UnmarshalBinary interface implementation

func (*MoveOrganizationLicensingCotermLicensesOKBodyRemainderLicensesItems0CountsItems0) Validate

Validate validates this move organization licensing coterm licenses o k body remainder licenses items0 counts items0

type MoveOrganizationLicensingCotermLicensesOKBodyRemainderLicensesItems0EditionsItems0

type MoveOrganizationLicensingCotermLicensesOKBodyRemainderLicensesItems0EditionsItems0 struct {

	// The name of the license edition
	Edition string `json:"edition,omitempty"`

	// The product type of the license edition
	ProductType string `json:"productType,omitempty"`
}

MoveOrganizationLicensingCotermLicensesOKBodyRemainderLicensesItems0EditionsItems0 move organization licensing coterm licenses o k body remainder licenses items0 editions items0 swagger:model MoveOrganizationLicensingCotermLicensesOKBodyRemainderLicensesItems0EditionsItems0

func (*MoveOrganizationLicensingCotermLicensesOKBodyRemainderLicensesItems0EditionsItems0) ContextValidate

ContextValidate validates this move organization licensing coterm licenses o k body remainder licenses items0 editions items0 based on context it is used

func (*MoveOrganizationLicensingCotermLicensesOKBodyRemainderLicensesItems0EditionsItems0) MarshalBinary

MarshalBinary interface implementation

func (*MoveOrganizationLicensingCotermLicensesOKBodyRemainderLicensesItems0EditionsItems0) UnmarshalBinary

UnmarshalBinary interface implementation

func (*MoveOrganizationLicensingCotermLicensesOKBodyRemainderLicensesItems0EditionsItems0) Validate

Validate validates this move organization licensing coterm licenses o k body remainder licenses items0 editions items0

type MoveOrganizationLicensingCotermLicensesParams

type MoveOrganizationLicensingCotermLicensesParams struct {

	// MoveOrganizationLicensingCotermLicenses.
	MoveOrganizationLicensingCotermLicenses MoveOrganizationLicensingCotermLicensesBody

	/* OrganizationID.

	   Organization ID
	*/
	OrganizationID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

MoveOrganizationLicensingCotermLicensesParams contains all the parameters to send to the API endpoint

for the move organization licensing coterm licenses operation.

Typically these are written to a http.Request.

func NewMoveOrganizationLicensingCotermLicensesParams

func NewMoveOrganizationLicensingCotermLicensesParams() *MoveOrganizationLicensingCotermLicensesParams

NewMoveOrganizationLicensingCotermLicensesParams creates a new MoveOrganizationLicensingCotermLicensesParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewMoveOrganizationLicensingCotermLicensesParamsWithContext

func NewMoveOrganizationLicensingCotermLicensesParamsWithContext(ctx context.Context) *MoveOrganizationLicensingCotermLicensesParams

NewMoveOrganizationLicensingCotermLicensesParamsWithContext creates a new MoveOrganizationLicensingCotermLicensesParams object with the ability to set a context for a request.

func NewMoveOrganizationLicensingCotermLicensesParamsWithHTTPClient

func NewMoveOrganizationLicensingCotermLicensesParamsWithHTTPClient(client *http.Client) *MoveOrganizationLicensingCotermLicensesParams

NewMoveOrganizationLicensingCotermLicensesParamsWithHTTPClient creates a new MoveOrganizationLicensingCotermLicensesParams object with the ability to set a custom HTTPClient for a request.

func NewMoveOrganizationLicensingCotermLicensesParamsWithTimeout

func NewMoveOrganizationLicensingCotermLicensesParamsWithTimeout(timeout time.Duration) *MoveOrganizationLicensingCotermLicensesParams

NewMoveOrganizationLicensingCotermLicensesParamsWithTimeout creates a new MoveOrganizationLicensingCotermLicensesParams object with the ability to set a timeout on a request.

func (*MoveOrganizationLicensingCotermLicensesParams) SetContext

SetContext adds the context to the move organization licensing coterm licenses params

func (*MoveOrganizationLicensingCotermLicensesParams) SetDefaults

SetDefaults hydrates default values in the move organization licensing coterm licenses params (not the query body).

All values with no default are reset to their zero value.

func (*MoveOrganizationLicensingCotermLicensesParams) SetHTTPClient

func (o *MoveOrganizationLicensingCotermLicensesParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the move organization licensing coterm licenses params

func (*MoveOrganizationLicensingCotermLicensesParams) SetMoveOrganizationLicensingCotermLicenses

func (o *MoveOrganizationLicensingCotermLicensesParams) SetMoveOrganizationLicensingCotermLicenses(moveOrganizationLicensingCotermLicenses MoveOrganizationLicensingCotermLicensesBody)

SetMoveOrganizationLicensingCotermLicenses adds the moveOrganizationLicensingCotermLicenses to the move organization licensing coterm licenses params

func (*MoveOrganizationLicensingCotermLicensesParams) SetOrganizationID

func (o *MoveOrganizationLicensingCotermLicensesParams) SetOrganizationID(organizationID string)

SetOrganizationID adds the organizationId to the move organization licensing coterm licenses params

func (*MoveOrganizationLicensingCotermLicensesParams) SetTimeout

SetTimeout adds the timeout to the move organization licensing coterm licenses params

func (*MoveOrganizationLicensingCotermLicensesParams) WithContext

WithContext adds the context to the move organization licensing coterm licenses params

func (*MoveOrganizationLicensingCotermLicensesParams) WithDefaults

WithDefaults hydrates default values in the move organization licensing coterm licenses params (not the query body).

All values with no default are reset to their zero value.

func (*MoveOrganizationLicensingCotermLicensesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the move organization licensing coterm licenses params

func (*MoveOrganizationLicensingCotermLicensesParams) WithMoveOrganizationLicensingCotermLicenses

func (o *MoveOrganizationLicensingCotermLicensesParams) WithMoveOrganizationLicensingCotermLicenses(moveOrganizationLicensingCotermLicenses MoveOrganizationLicensingCotermLicensesBody) *MoveOrganizationLicensingCotermLicensesParams

WithMoveOrganizationLicensingCotermLicenses adds the moveOrganizationLicensingCotermLicenses to the move organization licensing coterm licenses params

func (*MoveOrganizationLicensingCotermLicensesParams) WithOrganizationID

WithOrganizationID adds the organizationID to the move organization licensing coterm licenses params

func (*MoveOrganizationLicensingCotermLicensesParams) WithTimeout

WithTimeout adds the timeout to the move organization licensing coterm licenses params

func (*MoveOrganizationLicensingCotermLicensesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type MoveOrganizationLicensingCotermLicensesParamsBodyDestination

type MoveOrganizationLicensingCotermLicensesParamsBodyDestination struct {

	// The claim mode of the moved license
	// Enum: [addDevices renew]
	Mode string `json:"mode,omitempty"`

	// The organization to move the license to
	OrganizationID string `json:"organizationId,omitempty"`
}

MoveOrganizationLicensingCotermLicensesParamsBodyDestination Destination data for the license move swagger:model MoveOrganizationLicensingCotermLicensesParamsBodyDestination

func (*MoveOrganizationLicensingCotermLicensesParamsBodyDestination) ContextValidate

ContextValidate validates this move organization licensing coterm licenses params body destination based on context it is used

func (*MoveOrganizationLicensingCotermLicensesParamsBodyDestination) MarshalBinary

MarshalBinary interface implementation

func (*MoveOrganizationLicensingCotermLicensesParamsBodyDestination) UnmarshalBinary

UnmarshalBinary interface implementation

func (*MoveOrganizationLicensingCotermLicensesParamsBodyDestination) Validate

Validate validates this move organization licensing coterm licenses params body destination

type MoveOrganizationLicensingCotermLicensesParamsBodyLicensesItems0

type MoveOrganizationLicensingCotermLicensesParamsBodyLicensesItems0 struct {

	// The counts to move from the license by model type
	// Required: true
	Counts []*MoveOrganizationLicensingCotermLicensesParamsBodyLicensesItems0CountsItems0 `json:"counts"`

	// The license key to move counts from
	// Required: true
	Key *string `json:"key"`
}

MoveOrganizationLicensingCotermLicensesParamsBodyLicensesItems0 move organization licensing coterm licenses params body licenses items0 swagger:model MoveOrganizationLicensingCotermLicensesParamsBodyLicensesItems0

func (*MoveOrganizationLicensingCotermLicensesParamsBodyLicensesItems0) ContextValidate

ContextValidate validate this move organization licensing coterm licenses params body licenses items0 based on the context it is used

func (*MoveOrganizationLicensingCotermLicensesParamsBodyLicensesItems0) MarshalBinary

MarshalBinary interface implementation

func (*MoveOrganizationLicensingCotermLicensesParamsBodyLicensesItems0) UnmarshalBinary

UnmarshalBinary interface implementation

func (*MoveOrganizationLicensingCotermLicensesParamsBodyLicensesItems0) Validate

Validate validates this move organization licensing coterm licenses params body licenses items0

type MoveOrganizationLicensingCotermLicensesParamsBodyLicensesItems0CountsItems0

type MoveOrganizationLicensingCotermLicensesParamsBodyLicensesItems0CountsItems0 struct {

	// The number of counts to move
	// Required: true
	Count *int64 `json:"count"`

	// The license model type to move counts of
	// Required: true
	Model *string `json:"model"`
}

MoveOrganizationLicensingCotermLicensesParamsBodyLicensesItems0CountsItems0 move organization licensing coterm licenses params body licenses items0 counts items0 swagger:model MoveOrganizationLicensingCotermLicensesParamsBodyLicensesItems0CountsItems0

func (*MoveOrganizationLicensingCotermLicensesParamsBodyLicensesItems0CountsItems0) ContextValidate

ContextValidate validates this move organization licensing coterm licenses params body licenses items0 counts items0 based on context it is used

func (*MoveOrganizationLicensingCotermLicensesParamsBodyLicensesItems0CountsItems0) MarshalBinary

MarshalBinary interface implementation

func (*MoveOrganizationLicensingCotermLicensesParamsBodyLicensesItems0CountsItems0) UnmarshalBinary

UnmarshalBinary interface implementation

func (*MoveOrganizationLicensingCotermLicensesParamsBodyLicensesItems0CountsItems0) Validate

Validate validates this move organization licensing coterm licenses params body licenses items0 counts items0

type MoveOrganizationLicensingCotermLicensesReader

type MoveOrganizationLicensingCotermLicensesReader struct {
	// contains filtered or unexported fields
}

MoveOrganizationLicensingCotermLicensesReader is a Reader for the MoveOrganizationLicensingCotermLicenses structure.

func (*MoveOrganizationLicensingCotermLicensesReader) ReadResponse

func (o *MoveOrganizationLicensingCotermLicensesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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