policy_types

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 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) GetPolicyTypeByIDUsingGET2 added in v0.4.0

func (a *Client) GetPolicyTypeByIDUsingGET2(params *GetPolicyTypeByIDUsingGET2Params, opts ...ClientOption) (*GetPolicyTypeByIDUsingGET2OK, error)

GetPolicyTypeByIDUsingGET2 returns the policy type with the specified ID

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

func (*Client) GetPolicyTypeScopeSchemaUsingGET2 added in v0.4.0

func (a *Client) GetPolicyTypeScopeSchemaUsingGET2(params *GetPolicyTypeScopeSchemaUsingGET2Params, opts ...ClientOption) (*GetPolicyTypeScopeSchemaUsingGET2OK, error)

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

Return the policy scope schema for the given policy type.

func (*Client) GetTypesUsingGET5 added in v0.4.0

func (a *Client) GetTypesUsingGET5(params *GetTypesUsingGET5Params, opts ...ClientOption) (*GetTypesUsingGET5OK, error)

GetTypesUsingGET5 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 {
	GetPolicyTypeByIDUsingGET2(params *GetPolicyTypeByIDUsingGET2Params, opts ...ClientOption) (*GetPolicyTypeByIDUsingGET2OK, error)

	GetPolicyTypeScopeSchemaUsingGET2(params *GetPolicyTypeScopeSchemaUsingGET2Params, opts ...ClientOption) (*GetPolicyTypeScopeSchemaUsingGET2OK, error)

	GetTypesUsingGET5(params *GetTypesUsingGET5Params, opts ...ClientOption) (*GetTypesUsingGET5OK, 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 GetPolicyTypeByIDUsingGET2OK added in v0.4.0

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

OK

func NewGetPolicyTypeByIDUsingGET2OK added in v0.4.0

func NewGetPolicyTypeByIDUsingGET2OK() *GetPolicyTypeByIDUsingGET2OK

NewGetPolicyTypeByIDUsingGET2OK creates a GetPolicyTypeByIDUsingGET2OK with default headers values

func (*GetPolicyTypeByIDUsingGET2OK) Error added in v0.4.0

func (*GetPolicyTypeByIDUsingGET2OK) GetPayload added in v0.4.0

type GetPolicyTypeByIDUsingGET2Params added in v0.4.0

type GetPolicyTypeByIDUsingGET2Params 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
}

GetPolicyTypeByIDUsingGET2Params contains all the parameters to send to the API endpoint

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

Typically these are written to a http.Request.

func NewGetPolicyTypeByIDUsingGET2Params added in v0.4.0

func NewGetPolicyTypeByIDUsingGET2Params() *GetPolicyTypeByIDUsingGET2Params

NewGetPolicyTypeByIDUsingGET2Params creates a new GetPolicyTypeByIDUsingGET2Params 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 NewGetPolicyTypeByIDUsingGET2ParamsWithContext added in v0.4.0

func NewGetPolicyTypeByIDUsingGET2ParamsWithContext(ctx context.Context) *GetPolicyTypeByIDUsingGET2Params

NewGetPolicyTypeByIDUsingGET2ParamsWithContext creates a new GetPolicyTypeByIDUsingGET2Params object with the ability to set a context for a request.

func NewGetPolicyTypeByIDUsingGET2ParamsWithHTTPClient added in v0.4.0

func NewGetPolicyTypeByIDUsingGET2ParamsWithHTTPClient(client *http.Client) *GetPolicyTypeByIDUsingGET2Params

NewGetPolicyTypeByIDUsingGET2ParamsWithHTTPClient creates a new GetPolicyTypeByIDUsingGET2Params object with the ability to set a custom HTTPClient for a request.

func NewGetPolicyTypeByIDUsingGET2ParamsWithTimeout added in v0.4.0

func NewGetPolicyTypeByIDUsingGET2ParamsWithTimeout(timeout time.Duration) *GetPolicyTypeByIDUsingGET2Params

NewGetPolicyTypeByIDUsingGET2ParamsWithTimeout creates a new GetPolicyTypeByIDUsingGET2Params object with the ability to set a timeout on a request.

func (*GetPolicyTypeByIDUsingGET2Params) SetAPIVersion added in v0.4.0

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

SetAPIVersion adds the apiVersion to the get policy type by Id using g e t 2 params

func (*GetPolicyTypeByIDUsingGET2Params) SetContext added in v0.4.0

SetContext adds the context to the get policy type by Id using g e t 2 params

func (*GetPolicyTypeByIDUsingGET2Params) SetDefaults added in v0.4.0

func (o *GetPolicyTypeByIDUsingGET2Params) SetDefaults()

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

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

func (*GetPolicyTypeByIDUsingGET2Params) SetHTTPClient added in v0.4.0

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

SetHTTPClient adds the HTTPClient to the get policy type by Id using g e t 2 params

func (*GetPolicyTypeByIDUsingGET2Params) SetID added in v0.4.0

SetID adds the id to the get policy type by Id using g e t 2 params

func (*GetPolicyTypeByIDUsingGET2Params) SetTimeout added in v0.4.0

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

SetTimeout adds the timeout to the get policy type by Id using g e t 2 params

func (*GetPolicyTypeByIDUsingGET2Params) WithAPIVersion added in v0.4.0

WithAPIVersion adds the aPIVersion to the get policy type by Id using g e t 2 params

func (*GetPolicyTypeByIDUsingGET2Params) WithContext added in v0.4.0

WithContext adds the context to the get policy type by Id using g e t 2 params

func (*GetPolicyTypeByIDUsingGET2Params) WithDefaults added in v0.4.0

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

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

func (*GetPolicyTypeByIDUsingGET2Params) WithHTTPClient added in v0.4.0

WithHTTPClient adds the HTTPClient to the get policy type by Id using g e t 2 params

func (*GetPolicyTypeByIDUsingGET2Params) WithID added in v0.4.0

WithID adds the id to the get policy type by Id using g e t 2 params

func (*GetPolicyTypeByIDUsingGET2Params) WithTimeout added in v0.4.0

WithTimeout adds the timeout to the get policy type by Id using g e t 2 params

func (*GetPolicyTypeByIDUsingGET2Params) WriteToRequest added in v0.4.0

WriteToRequest writes these params to a swagger request

type GetPolicyTypeByIDUsingGET2Reader added in v0.4.0

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

GetPolicyTypeByIDUsingGET2Reader is a Reader for the GetPolicyTypeByIDUsingGET2 structure.

func (*GetPolicyTypeByIDUsingGET2Reader) ReadResponse added in v0.4.0

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

ReadResponse reads a server response into the received o.

type GetPolicyTypeScopeSchemaUsingGET2OK added in v0.4.0

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

OK

func NewGetPolicyTypeScopeSchemaUsingGET2OK added in v0.4.0

func NewGetPolicyTypeScopeSchemaUsingGET2OK() *GetPolicyTypeScopeSchemaUsingGET2OK

NewGetPolicyTypeScopeSchemaUsingGET2OK creates a GetPolicyTypeScopeSchemaUsingGET2OK with default headers values

func (*GetPolicyTypeScopeSchemaUsingGET2OK) Error added in v0.4.0

func (*GetPolicyTypeScopeSchemaUsingGET2OK) GetPayload added in v0.4.0

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

type GetPolicyTypeScopeSchemaUsingGET2Params added in v0.4.0

type GetPolicyTypeScopeSchemaUsingGET2Params 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
}

GetPolicyTypeScopeSchemaUsingGET2Params contains all the parameters to send to the API endpoint

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

Typically these are written to a http.Request.

func NewGetPolicyTypeScopeSchemaUsingGET2Params added in v0.4.0

func NewGetPolicyTypeScopeSchemaUsingGET2Params() *GetPolicyTypeScopeSchemaUsingGET2Params

NewGetPolicyTypeScopeSchemaUsingGET2Params creates a new GetPolicyTypeScopeSchemaUsingGET2Params 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 NewGetPolicyTypeScopeSchemaUsingGET2ParamsWithContext added in v0.4.0

func NewGetPolicyTypeScopeSchemaUsingGET2ParamsWithContext(ctx context.Context) *GetPolicyTypeScopeSchemaUsingGET2Params

NewGetPolicyTypeScopeSchemaUsingGET2ParamsWithContext creates a new GetPolicyTypeScopeSchemaUsingGET2Params object with the ability to set a context for a request.

func NewGetPolicyTypeScopeSchemaUsingGET2ParamsWithHTTPClient added in v0.4.0

func NewGetPolicyTypeScopeSchemaUsingGET2ParamsWithHTTPClient(client *http.Client) *GetPolicyTypeScopeSchemaUsingGET2Params

NewGetPolicyTypeScopeSchemaUsingGET2ParamsWithHTTPClient creates a new GetPolicyTypeScopeSchemaUsingGET2Params object with the ability to set a custom HTTPClient for a request.

func NewGetPolicyTypeScopeSchemaUsingGET2ParamsWithTimeout added in v0.4.0

func NewGetPolicyTypeScopeSchemaUsingGET2ParamsWithTimeout(timeout time.Duration) *GetPolicyTypeScopeSchemaUsingGET2Params

NewGetPolicyTypeScopeSchemaUsingGET2ParamsWithTimeout creates a new GetPolicyTypeScopeSchemaUsingGET2Params object with the ability to set a timeout on a request.

func (*GetPolicyTypeScopeSchemaUsingGET2Params) SetAPIVersion added in v0.4.0

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

SetAPIVersion adds the apiVersion to the get policy type scope schema using g e t 2 params

func (*GetPolicyTypeScopeSchemaUsingGET2Params) SetContext added in v0.4.0

SetContext adds the context to the get policy type scope schema using g e t 2 params

func (*GetPolicyTypeScopeSchemaUsingGET2Params) SetDefaults added in v0.4.0

func (o *GetPolicyTypeScopeSchemaUsingGET2Params) SetDefaults()

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

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

func (*GetPolicyTypeScopeSchemaUsingGET2Params) SetHTTPClient added in v0.4.0

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

SetHTTPClient adds the HTTPClient to the get policy type scope schema using g e t 2 params

func (*GetPolicyTypeScopeSchemaUsingGET2Params) SetID added in v0.4.0

SetID adds the id to the get policy type scope schema using g e t 2 params

func (*GetPolicyTypeScopeSchemaUsingGET2Params) SetTimeout added in v0.4.0

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

SetTimeout adds the timeout to the get policy type scope schema using g e t 2 params

func (*GetPolicyTypeScopeSchemaUsingGET2Params) WithAPIVersion added in v0.4.0

WithAPIVersion adds the aPIVersion to the get policy type scope schema using g e t 2 params

func (*GetPolicyTypeScopeSchemaUsingGET2Params) WithContext added in v0.4.0

WithContext adds the context to the get policy type scope schema using g e t 2 params

func (*GetPolicyTypeScopeSchemaUsingGET2Params) WithDefaults added in v0.4.0

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

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

func (*GetPolicyTypeScopeSchemaUsingGET2Params) WithHTTPClient added in v0.4.0

WithHTTPClient adds the HTTPClient to the get policy type scope schema using g e t 2 params

func (*GetPolicyTypeScopeSchemaUsingGET2Params) WithID added in v0.4.0

WithID adds the id to the get policy type scope schema using g e t 2 params

func (*GetPolicyTypeScopeSchemaUsingGET2Params) WithTimeout added in v0.4.0

WithTimeout adds the timeout to the get policy type scope schema using g e t 2 params

func (*GetPolicyTypeScopeSchemaUsingGET2Params) WriteToRequest added in v0.4.0

WriteToRequest writes these params to a swagger request

type GetPolicyTypeScopeSchemaUsingGET2Reader added in v0.4.0

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

GetPolicyTypeScopeSchemaUsingGET2Reader is a Reader for the GetPolicyTypeScopeSchemaUsingGET2 structure.

func (*GetPolicyTypeScopeSchemaUsingGET2Reader) ReadResponse added in v0.4.0

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

ReadResponse reads a server response into the received o.

type GetTypesUsingGET5OK added in v0.4.0

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

OK

func NewGetTypesUsingGET5OK added in v0.4.0

func NewGetTypesUsingGET5OK() *GetTypesUsingGET5OK

NewGetTypesUsingGET5OK creates a GetTypesUsingGET5OK with default headers values

func (*GetTypesUsingGET5OK) Error added in v0.4.0

func (o *GetTypesUsingGET5OK) Error() string

func (*GetTypesUsingGET5OK) GetPayload added in v0.4.0

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

type GetTypesUsingGET5Params added in v0.4.0

type GetTypesUsingGET5Params 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
}

GetTypesUsingGET5Params contains all the parameters to send to the API endpoint

for the get types using g e t 5 operation.

Typically these are written to a http.Request.

func NewGetTypesUsingGET5Params added in v0.4.0

func NewGetTypesUsingGET5Params() *GetTypesUsingGET5Params

NewGetTypesUsingGET5Params creates a new GetTypesUsingGET5Params 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 NewGetTypesUsingGET5ParamsWithContext added in v0.4.0

func NewGetTypesUsingGET5ParamsWithContext(ctx context.Context) *GetTypesUsingGET5Params

NewGetTypesUsingGET5ParamsWithContext creates a new GetTypesUsingGET5Params object with the ability to set a context for a request.

func NewGetTypesUsingGET5ParamsWithHTTPClient added in v0.4.0

func NewGetTypesUsingGET5ParamsWithHTTPClient(client *http.Client) *GetTypesUsingGET5Params

NewGetTypesUsingGET5ParamsWithHTTPClient creates a new GetTypesUsingGET5Params object with the ability to set a custom HTTPClient for a request.

func NewGetTypesUsingGET5ParamsWithTimeout added in v0.4.0

func NewGetTypesUsingGET5ParamsWithTimeout(timeout time.Duration) *GetTypesUsingGET5Params

NewGetTypesUsingGET5ParamsWithTimeout creates a new GetTypesUsingGET5Params object with the ability to set a timeout on a request.

func (*GetTypesUsingGET5Params) SetAPIVersion added in v0.4.0

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

SetAPIVersion adds the apiVersion to the get types using g e t 5 params

func (*GetTypesUsingGET5Params) SetContext added in v0.4.0

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

SetContext adds the context to the get types using g e t 5 params

func (*GetTypesUsingGET5Params) SetDefaults added in v0.4.0

func (o *GetTypesUsingGET5Params) SetDefaults()

SetDefaults hydrates default values in the get types using g e t 5 params (not the query body).

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

func (*GetTypesUsingGET5Params) SetDollarOrderby added in v0.4.0

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

SetDollarOrderby adds the dollarOrderby to the get types using g e t 5 params

func (*GetTypesUsingGET5Params) SetDollarSkip added in v0.4.0

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

SetDollarSkip adds the dollarSkip to the get types using g e t 5 params

func (*GetTypesUsingGET5Params) SetDollarTop added in v0.4.0

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

SetDollarTop adds the dollarTop to the get types using g e t 5 params

func (*GetTypesUsingGET5Params) SetExpandSchema added in v0.4.0

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

SetExpandSchema adds the expandSchema to the get types using g e t 5 params

func (*GetTypesUsingGET5Params) SetHTTPClient added in v0.4.0

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

SetHTTPClient adds the HTTPClient to the get types using g e t 5 params

func (*GetTypesUsingGET5Params) SetTimeout added in v0.4.0

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

SetTimeout adds the timeout to the get types using g e t 5 params

func (*GetTypesUsingGET5Params) WithAPIVersion added in v0.4.0

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

WithAPIVersion adds the aPIVersion to the get types using g e t 5 params

func (*GetTypesUsingGET5Params) WithContext added in v0.4.0

WithContext adds the context to the get types using g e t 5 params

func (*GetTypesUsingGET5Params) WithDefaults added in v0.4.0

WithDefaults hydrates default values in the get types using g e t 5 params (not the query body).

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

func (*GetTypesUsingGET5Params) WithDollarOrderby added in v0.4.0

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

WithDollarOrderby adds the dollarOrderby to the get types using g e t 5 params

func (*GetTypesUsingGET5Params) WithDollarSkip added in v0.4.0

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

WithDollarSkip adds the dollarSkip to the get types using g e t 5 params

func (*GetTypesUsingGET5Params) WithDollarTop added in v0.4.0

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

WithDollarTop adds the dollarTop to the get types using g e t 5 params

func (*GetTypesUsingGET5Params) WithExpandSchema added in v0.4.0

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

WithExpandSchema adds the expandSchema to the get types using g e t 5 params

func (*GetTypesUsingGET5Params) WithHTTPClient added in v0.4.0

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

WithHTTPClient adds the HTTPClient to the get types using g e t 5 params

func (*GetTypesUsingGET5Params) WithTimeout added in v0.4.0

WithTimeout adds the timeout to the get types using g e t 5 params

func (*GetTypesUsingGET5Params) WriteToRequest added in v0.4.0

WriteToRequest writes these params to a swagger request

type GetTypesUsingGET5Reader added in v0.4.0

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

GetTypesUsingGET5Reader is a Reader for the GetTypesUsingGET5 structure.

func (*GetTypesUsingGET5Reader) ReadResponse added in v0.4.0

func (o *GetTypesUsingGET5Reader) 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