policy_types

package
Version: v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for policy types API

func (*Client) GetPolicyTypeByIDUsingGET

func (a *Client) GetPolicyTypeByIDUsingGET(params *GetPolicyTypeByIDUsingGETParams, opts ...ClientOption) (*GetPolicyTypeByIDUsingGETOK, error)

GetPolicyTypeByIDUsingGET returns the policy type with the specified ID

Find a specific policy type based on the input policy type id.

func (*Client) GetPolicyTypeScopeSchemaUsingGET added in v0.2.21

func (a *Client) GetPolicyTypeScopeSchemaUsingGET(params *GetPolicyTypeScopeSchemaUsingGETParams, opts ...ClientOption) (*GetPolicyTypeScopeSchemaUsingGETOK, error)

GetPolicyTypeScopeSchemaUsingGET returns the policy scope schema for the type with the specified ID

Return the policy scope schema for the given policy type.

func (*Client) GetTypesUsingGET1

func (a *Client) GetTypesUsingGET1(params *GetTypesUsingGET1Params, opts ...ClientOption) (*GetTypesUsingGET1OK, error)

GetTypesUsingGET1 returns a paginated list of policy types

Find all the policy types available in the current org.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption added in v0.2.20

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService added in v0.2.18

type ClientService interface {
	GetPolicyTypeByIDUsingGET(params *GetPolicyTypeByIDUsingGETParams, opts ...ClientOption) (*GetPolicyTypeByIDUsingGETOK, error)

	GetPolicyTypeScopeSchemaUsingGET(params *GetPolicyTypeScopeSchemaUsingGETParams, opts ...ClientOption) (*GetPolicyTypeScopeSchemaUsingGETOK, error)

	GetTypesUsingGET1(params *GetTypesUsingGET1Params, opts ...ClientOption) (*GetTypesUsingGET1OK, 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 policy types API client.

type GetPolicyTypeByIDUsingGETOK

type GetPolicyTypeByIDUsingGETOK struct {
	Payload *models.PolicyType
}
GetPolicyTypeByIDUsingGETOK describes a response with status code 200, with default header values.

OK

func NewGetPolicyTypeByIDUsingGETOK

func NewGetPolicyTypeByIDUsingGETOK() *GetPolicyTypeByIDUsingGETOK

NewGetPolicyTypeByIDUsingGETOK creates a GetPolicyTypeByIDUsingGETOK with default headers values

func (*GetPolicyTypeByIDUsingGETOK) Error

func (*GetPolicyTypeByIDUsingGETOK) GetPayload

type GetPolicyTypeByIDUsingGETParams

type GetPolicyTypeByIDUsingGETParams struct {

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). If you do not specify explicitly an exact version, you will be calling the latest supported API version.
	*/
	APIVersion *string

	/* ID.

	   Policy type ID
	*/
	ID string

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

GetPolicyTypeByIDUsingGETParams contains all the parameters to send to the API endpoint

for the get policy type by Id using g e t operation.

Typically these are written to a http.Request.

func NewGetPolicyTypeByIDUsingGETParams

func NewGetPolicyTypeByIDUsingGETParams() *GetPolicyTypeByIDUsingGETParams

NewGetPolicyTypeByIDUsingGETParams creates a new GetPolicyTypeByIDUsingGETParams 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 NewGetPolicyTypeByIDUsingGETParamsWithContext

func NewGetPolicyTypeByIDUsingGETParamsWithContext(ctx context.Context) *GetPolicyTypeByIDUsingGETParams

NewGetPolicyTypeByIDUsingGETParamsWithContext creates a new GetPolicyTypeByIDUsingGETParams object with the ability to set a context for a request.

func NewGetPolicyTypeByIDUsingGETParamsWithHTTPClient

func NewGetPolicyTypeByIDUsingGETParamsWithHTTPClient(client *http.Client) *GetPolicyTypeByIDUsingGETParams

NewGetPolicyTypeByIDUsingGETParamsWithHTTPClient creates a new GetPolicyTypeByIDUsingGETParams object with the ability to set a custom HTTPClient for a request.

func NewGetPolicyTypeByIDUsingGETParamsWithTimeout

func NewGetPolicyTypeByIDUsingGETParamsWithTimeout(timeout time.Duration) *GetPolicyTypeByIDUsingGETParams

NewGetPolicyTypeByIDUsingGETParamsWithTimeout creates a new GetPolicyTypeByIDUsingGETParams object with the ability to set a timeout on a request.

func (*GetPolicyTypeByIDUsingGETParams) SetAPIVersion added in v0.2.9

func (o *GetPolicyTypeByIDUsingGETParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the get policy type by Id using get params

func (*GetPolicyTypeByIDUsingGETParams) SetContext

func (o *GetPolicyTypeByIDUsingGETParams) SetContext(ctx context.Context)

SetContext adds the context to the get policy type by Id using get params

func (*GetPolicyTypeByIDUsingGETParams) SetDefaults added in v0.2.20

func (o *GetPolicyTypeByIDUsingGETParams) SetDefaults()

SetDefaults hydrates default values in the get policy type by Id using get params (not the query body).

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

func (*GetPolicyTypeByIDUsingGETParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get policy type by Id using get params

func (*GetPolicyTypeByIDUsingGETParams) SetID

SetID adds the id to the get policy type by Id using get params

func (*GetPolicyTypeByIDUsingGETParams) SetTimeout

func (o *GetPolicyTypeByIDUsingGETParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get policy type by Id using get params

func (*GetPolicyTypeByIDUsingGETParams) WithAPIVersion added in v0.2.9

WithAPIVersion adds the aPIVersion to the get policy type by Id using get params

func (*GetPolicyTypeByIDUsingGETParams) WithContext

WithContext adds the context to the get policy type by Id using get params

func (*GetPolicyTypeByIDUsingGETParams) WithDefaults added in v0.2.20

WithDefaults hydrates default values in the get policy type by Id using get params (not the query body).

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

func (*GetPolicyTypeByIDUsingGETParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get policy type by Id using get params

func (*GetPolicyTypeByIDUsingGETParams) WithID

WithID adds the id to the get policy type by Id using get params

func (*GetPolicyTypeByIDUsingGETParams) WithTimeout

WithTimeout adds the timeout to the get policy type by Id using get params

func (*GetPolicyTypeByIDUsingGETParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetPolicyTypeByIDUsingGETReader

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

GetPolicyTypeByIDUsingGETReader is a Reader for the GetPolicyTypeByIDUsingGET structure.

func (*GetPolicyTypeByIDUsingGETReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetPolicyTypeScopeSchemaUsingGETOK added in v0.2.21

type GetPolicyTypeScopeSchemaUsingGETOK struct {
	Payload interface{}
}
GetPolicyTypeScopeSchemaUsingGETOK describes a response with status code 200, with default header values.

OK

func NewGetPolicyTypeScopeSchemaUsingGETOK added in v0.2.21

func NewGetPolicyTypeScopeSchemaUsingGETOK() *GetPolicyTypeScopeSchemaUsingGETOK

NewGetPolicyTypeScopeSchemaUsingGETOK creates a GetPolicyTypeScopeSchemaUsingGETOK with default headers values

func (*GetPolicyTypeScopeSchemaUsingGETOK) Error added in v0.2.21

func (*GetPolicyTypeScopeSchemaUsingGETOK) GetPayload added in v0.2.21

func (o *GetPolicyTypeScopeSchemaUsingGETOK) GetPayload() interface{}

type GetPolicyTypeScopeSchemaUsingGETParams added in v0.2.21

type GetPolicyTypeScopeSchemaUsingGETParams struct {

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). If you do not specify explicitly an exact version, you will be calling the latest supported API version.
	*/
	APIVersion *string

	/* ID.

	   Policy type ID
	*/
	ID string

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

GetPolicyTypeScopeSchemaUsingGETParams contains all the parameters to send to the API endpoint

for the get policy type scope schema using g e t operation.

Typically these are written to a http.Request.

func NewGetPolicyTypeScopeSchemaUsingGETParams added in v0.2.21

func NewGetPolicyTypeScopeSchemaUsingGETParams() *GetPolicyTypeScopeSchemaUsingGETParams

NewGetPolicyTypeScopeSchemaUsingGETParams creates a new GetPolicyTypeScopeSchemaUsingGETParams 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 NewGetPolicyTypeScopeSchemaUsingGETParamsWithContext added in v0.2.21

func NewGetPolicyTypeScopeSchemaUsingGETParamsWithContext(ctx context.Context) *GetPolicyTypeScopeSchemaUsingGETParams

NewGetPolicyTypeScopeSchemaUsingGETParamsWithContext creates a new GetPolicyTypeScopeSchemaUsingGETParams object with the ability to set a context for a request.

func NewGetPolicyTypeScopeSchemaUsingGETParamsWithHTTPClient added in v0.2.21

func NewGetPolicyTypeScopeSchemaUsingGETParamsWithHTTPClient(client *http.Client) *GetPolicyTypeScopeSchemaUsingGETParams

NewGetPolicyTypeScopeSchemaUsingGETParamsWithHTTPClient creates a new GetPolicyTypeScopeSchemaUsingGETParams object with the ability to set a custom HTTPClient for a request.

func NewGetPolicyTypeScopeSchemaUsingGETParamsWithTimeout added in v0.2.21

func NewGetPolicyTypeScopeSchemaUsingGETParamsWithTimeout(timeout time.Duration) *GetPolicyTypeScopeSchemaUsingGETParams

NewGetPolicyTypeScopeSchemaUsingGETParamsWithTimeout creates a new GetPolicyTypeScopeSchemaUsingGETParams object with the ability to set a timeout on a request.

func (*GetPolicyTypeScopeSchemaUsingGETParams) SetAPIVersion added in v0.2.21

func (o *GetPolicyTypeScopeSchemaUsingGETParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the get policy type scope schema using get params

func (*GetPolicyTypeScopeSchemaUsingGETParams) SetContext added in v0.2.21

SetContext adds the context to the get policy type scope schema using get params

func (*GetPolicyTypeScopeSchemaUsingGETParams) SetDefaults added in v0.2.21

func (o *GetPolicyTypeScopeSchemaUsingGETParams) SetDefaults()

SetDefaults hydrates default values in the get policy type scope schema using get params (not the query body).

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

func (*GetPolicyTypeScopeSchemaUsingGETParams) SetHTTPClient added in v0.2.21

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

SetHTTPClient adds the HTTPClient to the get policy type scope schema using get params

func (*GetPolicyTypeScopeSchemaUsingGETParams) SetID added in v0.2.21

SetID adds the id to the get policy type scope schema using get params

func (*GetPolicyTypeScopeSchemaUsingGETParams) SetTimeout added in v0.2.21

func (o *GetPolicyTypeScopeSchemaUsingGETParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get policy type scope schema using get params

func (*GetPolicyTypeScopeSchemaUsingGETParams) WithAPIVersion added in v0.2.21

WithAPIVersion adds the aPIVersion to the get policy type scope schema using get params

func (*GetPolicyTypeScopeSchemaUsingGETParams) WithContext added in v0.2.21

WithContext adds the context to the get policy type scope schema using get params

func (*GetPolicyTypeScopeSchemaUsingGETParams) WithDefaults added in v0.2.21

WithDefaults hydrates default values in the get policy type scope schema using get params (not the query body).

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

func (*GetPolicyTypeScopeSchemaUsingGETParams) WithHTTPClient added in v0.2.21

WithHTTPClient adds the HTTPClient to the get policy type scope schema using get params

func (*GetPolicyTypeScopeSchemaUsingGETParams) WithID added in v0.2.21

WithID adds the id to the get policy type scope schema using get params

func (*GetPolicyTypeScopeSchemaUsingGETParams) WithTimeout added in v0.2.21

WithTimeout adds the timeout to the get policy type scope schema using get params

func (*GetPolicyTypeScopeSchemaUsingGETParams) WriteToRequest added in v0.2.21

WriteToRequest writes these params to a swagger request

type GetPolicyTypeScopeSchemaUsingGETReader added in v0.2.21

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

GetPolicyTypeScopeSchemaUsingGETReader is a Reader for the GetPolicyTypeScopeSchemaUsingGET structure.

func (*GetPolicyTypeScopeSchemaUsingGETReader) ReadResponse added in v0.2.21

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

ReadResponse reads a server response into the received o.

type GetTypesUsingGET1OK

type GetTypesUsingGET1OK struct {
	Payload *models.PageOfPolicyType
}
GetTypesUsingGET1OK describes a response with status code 200, with default header values.

OK

func NewGetTypesUsingGET1OK

func NewGetTypesUsingGET1OK() *GetTypesUsingGET1OK

NewGetTypesUsingGET1OK creates a GetTypesUsingGET1OK with default headers values

func (*GetTypesUsingGET1OK) Error

func (o *GetTypesUsingGET1OK) Error() string

func (*GetTypesUsingGET1OK) GetPayload

func (o *GetTypesUsingGET1OK) GetPayload() *models.PageOfPolicyType

type GetTypesUsingGET1Params

type GetTypesUsingGET1Params struct {

	/* DollarOrderby.

	   Sorting criteria in the format: property (asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
	*/
	DollarOrderby []string

	/* DollarSkip.

	   Number of records you want to skip

	   Format: int32
	*/
	DollarSkip *int32

	/* DollarTop.

	   Number of records you want

	   Format: int32
	*/
	DollarTop *int32

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). If you do not specify explicitly an exact version, you will be calling the latest supported API version.
	*/
	APIVersion *string

	/* ExpandSchema.

	   Retrieves the schema for this policy type
	*/
	ExpandSchema *bool

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

GetTypesUsingGET1Params contains all the parameters to send to the API endpoint

for the get types using get1 operation.

Typically these are written to a http.Request.

func NewGetTypesUsingGET1Params

func NewGetTypesUsingGET1Params() *GetTypesUsingGET1Params

NewGetTypesUsingGET1Params creates a new GetTypesUsingGET1Params 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 NewGetTypesUsingGET1ParamsWithContext

func NewGetTypesUsingGET1ParamsWithContext(ctx context.Context) *GetTypesUsingGET1Params

NewGetTypesUsingGET1ParamsWithContext creates a new GetTypesUsingGET1Params object with the ability to set a context for a request.

func NewGetTypesUsingGET1ParamsWithHTTPClient

func NewGetTypesUsingGET1ParamsWithHTTPClient(client *http.Client) *GetTypesUsingGET1Params

NewGetTypesUsingGET1ParamsWithHTTPClient creates a new GetTypesUsingGET1Params object with the ability to set a custom HTTPClient for a request.

func NewGetTypesUsingGET1ParamsWithTimeout

func NewGetTypesUsingGET1ParamsWithTimeout(timeout time.Duration) *GetTypesUsingGET1Params

NewGetTypesUsingGET1ParamsWithTimeout creates a new GetTypesUsingGET1Params object with the ability to set a timeout on a request.

func (*GetTypesUsingGET1Params) SetAPIVersion added in v0.2.9

func (o *GetTypesUsingGET1Params) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the get types using get1 params

func (*GetTypesUsingGET1Params) SetContext

func (o *GetTypesUsingGET1Params) SetContext(ctx context.Context)

SetContext adds the context to the get types using get1 params

func (*GetTypesUsingGET1Params) SetDefaults added in v0.2.20

func (o *GetTypesUsingGET1Params) SetDefaults()

SetDefaults hydrates default values in the get types using get1 params (not the query body).

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

func (*GetTypesUsingGET1Params) SetDollarOrderby

func (o *GetTypesUsingGET1Params) SetDollarOrderby(dollarOrderby []string)

SetDollarOrderby adds the dollarOrderby to the get types using get1 params

func (*GetTypesUsingGET1Params) SetDollarSkip

func (o *GetTypesUsingGET1Params) SetDollarSkip(dollarSkip *int32)

SetDollarSkip adds the dollarSkip to the get types using get1 params

func (*GetTypesUsingGET1Params) SetDollarTop

func (o *GetTypesUsingGET1Params) SetDollarTop(dollarTop *int32)

SetDollarTop adds the dollarTop to the get types using get1 params

func (*GetTypesUsingGET1Params) SetExpandSchema

func (o *GetTypesUsingGET1Params) SetExpandSchema(expandSchema *bool)

SetExpandSchema adds the expandSchema to the get types using get1 params

func (*GetTypesUsingGET1Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get types using get1 params

func (*GetTypesUsingGET1Params) SetTimeout

func (o *GetTypesUsingGET1Params) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get types using get1 params

func (*GetTypesUsingGET1Params) WithAPIVersion added in v0.2.9

func (o *GetTypesUsingGET1Params) WithAPIVersion(aPIVersion *string) *GetTypesUsingGET1Params

WithAPIVersion adds the aPIVersion to the get types using get1 params

func (*GetTypesUsingGET1Params) WithContext

WithContext adds the context to the get types using get1 params

func (*GetTypesUsingGET1Params) WithDefaults added in v0.2.20

WithDefaults hydrates default values in the get types using get1 params (not the query body).

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

func (*GetTypesUsingGET1Params) WithDollarOrderby

func (o *GetTypesUsingGET1Params) WithDollarOrderby(dollarOrderby []string) *GetTypesUsingGET1Params

WithDollarOrderby adds the dollarOrderby to the get types using get1 params

func (*GetTypesUsingGET1Params) WithDollarSkip

func (o *GetTypesUsingGET1Params) WithDollarSkip(dollarSkip *int32) *GetTypesUsingGET1Params

WithDollarSkip adds the dollarSkip to the get types using get1 params

func (*GetTypesUsingGET1Params) WithDollarTop

func (o *GetTypesUsingGET1Params) WithDollarTop(dollarTop *int32) *GetTypesUsingGET1Params

WithDollarTop adds the dollarTop to the get types using get1 params

func (*GetTypesUsingGET1Params) WithExpandSchema

func (o *GetTypesUsingGET1Params) WithExpandSchema(expandSchema *bool) *GetTypesUsingGET1Params

WithExpandSchema adds the expandSchema to the get types using get1 params

func (*GetTypesUsingGET1Params) WithHTTPClient

func (o *GetTypesUsingGET1Params) WithHTTPClient(client *http.Client) *GetTypesUsingGET1Params

WithHTTPClient adds the HTTPClient to the get types using get1 params

func (*GetTypesUsingGET1Params) WithTimeout

WithTimeout adds the timeout to the get types using get1 params

func (*GetTypesUsingGET1Params) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetTypesUsingGET1Reader

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

GetTypesUsingGET1Reader is a Reader for the GetTypesUsingGET1 structure.

func (*GetTypesUsingGET1Reader) ReadResponse

func (o *GetTypesUsingGET1Reader) 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
t or T : Toggle theme light dark auto
y or Y : Canonical URL