v2api

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.

Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.

Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var (
	JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`)
	XmlCheck  = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`)
)

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

func IsNil

func IsNil(i interface{}) bool

IsNil checks if an input is nil

func NewConfiguration

func NewConfiguration() *config.Configuration

NewConfiguration returns a new Configuration object

func PtrBool

func PtrBool(v bool) *bool

PtrBool is a helper routine that returns a pointer to given boolean value.

func PtrFloat32

func PtrFloat32(v float32) *float32

PtrFloat32 is a helper routine that returns a pointer to given float value.

func PtrFloat64

func PtrFloat64(v float64) *float64

PtrFloat64 is a helper routine that returns a pointer to given float value.

func PtrInt

func PtrInt(v int) *int

PtrInt is a helper routine that returns a pointer to given integer value.

func PtrInt32

func PtrInt32(v int32) *int32

PtrInt32 is a helper routine that returns a pointer to given integer value.

func PtrInt64

func PtrInt64(v int64) *int64

PtrInt64 is a helper routine that returns a pointer to given integer value.

func PtrString

func PtrString(v string) *string

PtrString is a helper routine that returns a pointer to given string value.

func PtrTime

func PtrTime(v time.Time) *time.Time

PtrTime is helper routine that returns a pointer to given Time value.

Types

type APIClient

type APIClient struct {
	DefaultAPI DefaultAPI
	// contains filtered or unexported fields
}

APIClient manages communication with the STACKIT Membership API API v2.0 In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(opts ...config.ConfigurationOption) (*APIClient, error)

NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.

func (*APIClient) GetConfig

func (c *APIClient) GetConfig() *config.Configuration

Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior

type APIResponse

type APIResponse struct {
	*http.Response `json:"-"`
	Message        string `json:"message,omitempty"`
	// Operation is the name of the OpenAPI operation.
	Operation string `json:"operation,omitempty"`
	// RequestURL is the request URL. This value is always available, even if the
	// embedded *http.Response is nil.
	RequestURL string `json:"url,omitempty"`
	// Method is the HTTP method used for the request.  This value is always
	// available, even if the embedded *http.Response is nil.
	Method string `json:"method,omitempty"`
	// Payload holds the contents of the response body (which may be nil or empty).
	// This is provided here as the raw response.Body() reader will have already
	// been drained.
	Payload []byte `json:"-"`
}

APIResponse stores the API response returned by the server.

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

NewAPIResponse returns a new APIResponse object.

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

NewAPIResponseWithError returns a new APIResponse object with the provided error message.

type AddCustomRoleResponse

type AddCustomRoleResponse struct {
	ResourceId   string `json:"resourceId" validate:"regexp=^([a-zA-Z0-9\\/_|\\\\-=+@.]{1,})$"`
	ResourceType string `json:"resourceType" validate:"regexp=^[a-z](?:-?[a-z]){1,63}$"`
	Role         Role   `json:"role"`
}

AddCustomRoleResponse struct for AddCustomRoleResponse

func NewAddCustomRoleResponse

func NewAddCustomRoleResponse(resourceId string, resourceType string, role Role) *AddCustomRoleResponse

NewAddCustomRoleResponse instantiates a new AddCustomRoleResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAddCustomRoleResponseWithDefaults

func NewAddCustomRoleResponseWithDefaults() *AddCustomRoleResponse

NewAddCustomRoleResponseWithDefaults instantiates a new AddCustomRoleResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AddCustomRoleResponse) GetResourceId

func (o *AddCustomRoleResponse) GetResourceId() string

GetResourceId returns the ResourceId field value

func (*AddCustomRoleResponse) GetResourceIdOk

func (o *AddCustomRoleResponse) GetResourceIdOk() (*string, bool)

GetResourceIdOk returns a tuple with the ResourceId field value and a boolean to check if the value has been set.

func (*AddCustomRoleResponse) GetResourceType

func (o *AddCustomRoleResponse) GetResourceType() string

GetResourceType returns the ResourceType field value

func (*AddCustomRoleResponse) GetResourceTypeOk

func (o *AddCustomRoleResponse) GetResourceTypeOk() (*string, bool)

GetResourceTypeOk returns a tuple with the ResourceType field value and a boolean to check if the value has been set.

func (*AddCustomRoleResponse) GetRole

func (o *AddCustomRoleResponse) GetRole() Role

GetRole returns the Role field value

func (*AddCustomRoleResponse) GetRoleOk

func (o *AddCustomRoleResponse) GetRoleOk() (*Role, bool)

GetRoleOk returns a tuple with the Role field value and a boolean to check if the value has been set.

func (AddCustomRoleResponse) MarshalJSON

func (o AddCustomRoleResponse) MarshalJSON() ([]byte, error)

func (*AddCustomRoleResponse) SetResourceId

func (o *AddCustomRoleResponse) SetResourceId(v string)

SetResourceId sets field value

func (*AddCustomRoleResponse) SetResourceType

func (o *AddCustomRoleResponse) SetResourceType(v string)

SetResourceType sets field value

func (*AddCustomRoleResponse) SetRole

func (o *AddCustomRoleResponse) SetRole(v Role)

SetRole sets field value

func (AddCustomRoleResponse) ToMap

func (o AddCustomRoleResponse) ToMap() (map[string]interface{}, error)

func (*AddCustomRoleResponse) UnmarshalJSON

func (o *AddCustomRoleResponse) UnmarshalJSON(data []byte) (err error)

type AddMembersPayload

type AddMembersPayload struct {
	Members      []Member `json:"members"`
	ResourceType string   `json:"resourceType" validate:"regexp=^[a-z](?:-?[a-z]){1,63}$"`
}

AddMembersPayload struct for AddMembersPayload

func NewAddMembersPayload

func NewAddMembersPayload(members []Member, resourceType string) *AddMembersPayload

NewAddMembersPayload instantiates a new AddMembersPayload object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAddMembersPayloadWithDefaults

func NewAddMembersPayloadWithDefaults() *AddMembersPayload

NewAddMembersPayloadWithDefaults instantiates a new AddMembersPayload object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AddMembersPayload) GetMembers

func (o *AddMembersPayload) GetMembers() []Member

GetMembers returns the Members field value

func (*AddMembersPayload) GetMembersOk

func (o *AddMembersPayload) GetMembersOk() ([]Member, bool)

GetMembersOk returns a tuple with the Members field value and a boolean to check if the value has been set.

func (*AddMembersPayload) GetResourceType

func (o *AddMembersPayload) GetResourceType() string

GetResourceType returns the ResourceType field value

func (*AddMembersPayload) GetResourceTypeOk

func (o *AddMembersPayload) GetResourceTypeOk() (*string, bool)

GetResourceTypeOk returns a tuple with the ResourceType field value and a boolean to check if the value has been set.

func (AddMembersPayload) MarshalJSON

func (o AddMembersPayload) MarshalJSON() ([]byte, error)

func (*AddMembersPayload) SetMembers

func (o *AddMembersPayload) SetMembers(v []Member)

SetMembers sets field value

func (*AddMembersPayload) SetResourceType

func (o *AddMembersPayload) SetResourceType(v string)

SetResourceType sets field value

func (AddMembersPayload) ToMap

func (o AddMembersPayload) ToMap() (map[string]interface{}, error)

func (*AddMembersPayload) UnmarshalJSON

func (o *AddMembersPayload) UnmarshalJSON(data []byte) (err error)

type AddRolePayload

type AddRolePayload struct {
	Description string              `json:"description"`
	Name        string              `json:"name" validate:"regexp=^[a-z](?:[-.]?[a-z]){1,63}$"`
	Permissions []PermissionRequest `json:"permissions"`
}

AddRolePayload struct for AddRolePayload

func NewAddRolePayload

func NewAddRolePayload(description string, name string, permissions []PermissionRequest) *AddRolePayload

NewAddRolePayload instantiates a new AddRolePayload object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAddRolePayloadWithDefaults

func NewAddRolePayloadWithDefaults() *AddRolePayload

NewAddRolePayloadWithDefaults instantiates a new AddRolePayload object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AddRolePayload) GetDescription

func (o *AddRolePayload) GetDescription() string

GetDescription returns the Description field value

func (*AddRolePayload) GetDescriptionOk

func (o *AddRolePayload) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value and a boolean to check if the value has been set.

func (*AddRolePayload) GetName

func (o *AddRolePayload) GetName() string

GetName returns the Name field value

func (*AddRolePayload) GetNameOk

func (o *AddRolePayload) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*AddRolePayload) GetPermissions

func (o *AddRolePayload) GetPermissions() []PermissionRequest

GetPermissions returns the Permissions field value

func (*AddRolePayload) GetPermissionsOk

func (o *AddRolePayload) GetPermissionsOk() ([]PermissionRequest, bool)

GetPermissionsOk returns a tuple with the Permissions field value and a boolean to check if the value has been set.

func (AddRolePayload) MarshalJSON

func (o AddRolePayload) MarshalJSON() ([]byte, error)

func (*AddRolePayload) SetDescription

func (o *AddRolePayload) SetDescription(v string)

SetDescription sets field value

func (*AddRolePayload) SetName

func (o *AddRolePayload) SetName(v string)

SetName sets field value

func (*AddRolePayload) SetPermissions

func (o *AddRolePayload) SetPermissions(v []PermissionRequest)

SetPermissions sets field value

func (AddRolePayload) ToMap

func (o AddRolePayload) ToMap() (map[string]interface{}, error)

func (*AddRolePayload) UnmarshalJSON

func (o *AddRolePayload) UnmarshalJSON(data []byte) (err error)

type ApiAddMembersRequest

type ApiAddMembersRequest struct {
	ApiService DefaultAPI
	// contains filtered or unexported fields
}

func (ApiAddMembersRequest) AddMembersPayload

func (r ApiAddMembersRequest) AddMembersPayload(addMembersPayload AddMembersPayload) ApiAddMembersRequest

func (ApiAddMembersRequest) Execute

func (r ApiAddMembersRequest) Execute() (*MembersResponse, error)

type ApiAddRoleRequest

type ApiAddRoleRequest struct {
	ApiService DefaultAPI
	// contains filtered or unexported fields
}

func (ApiAddRoleRequest) AddRolePayload

func (r ApiAddRoleRequest) AddRolePayload(addRolePayload AddRolePayload) ApiAddRoleRequest

func (ApiAddRoleRequest) Execute

type ApiDeleteRoleRequest

type ApiDeleteRoleRequest struct {
	ApiService DefaultAPI
	// contains filtered or unexported fields
}

func (ApiDeleteRoleRequest) Etag

func (ApiDeleteRoleRequest) Execute

type ApiGetRoleRequest

type ApiGetRoleRequest struct {
	ApiService DefaultAPI
	// contains filtered or unexported fields
}

func (ApiGetRoleRequest) Execute

func (r ApiGetRoleRequest) Execute() (*GetRoleResponse, error)

type ApiListMembersRequest

type ApiListMembersRequest struct {
	ApiService DefaultAPI
	// contains filtered or unexported fields
}

func (ApiListMembersRequest) Execute

func (ApiListMembersRequest) Subject

type ApiListPermissionsRequest

type ApiListPermissionsRequest struct {
	ApiService DefaultAPI
	// contains filtered or unexported fields
}

func (ApiListPermissionsRequest) Execute

func (ApiListPermissionsRequest) ResourceType

func (r ApiListPermissionsRequest) ResourceType(resourceType string) ApiListPermissionsRequest

type ApiListRolesRequest

type ApiListRolesRequest struct {
	ApiService DefaultAPI
	// contains filtered or unexported fields
}

func (ApiListRolesRequest) Execute

func (r ApiListRolesRequest) Execute() (*RolesResponse, error)

type ApiListUserMembershipsRequest

type ApiListUserMembershipsRequest struct {
	ApiService DefaultAPI
	// contains filtered or unexported fields
}

func (ApiListUserMembershipsRequest) Execute

func (ApiListUserMembershipsRequest) ParentResourceId

func (r ApiListUserMembershipsRequest) ParentResourceId(parentResourceId string) ApiListUserMembershipsRequest

func (ApiListUserMembershipsRequest) ResourceId

func (ApiListUserMembershipsRequest) ResourceType

type ApiListUserPermissionsRequest

type ApiListUserPermissionsRequest struct {
	ApiService DefaultAPI
	// contains filtered or unexported fields
}

func (ApiListUserPermissionsRequest) Execute

func (ApiListUserPermissionsRequest) Permissions

func (ApiListUserPermissionsRequest) Resource

func (ApiListUserPermissionsRequest) ResourceType

type ApiRemoveMembersRequest

type ApiRemoveMembersRequest struct {
	ApiService DefaultAPI
	// contains filtered or unexported fields
}

func (ApiRemoveMembersRequest) Execute

func (ApiRemoveMembersRequest) RemoveMembersPayload

func (r ApiRemoveMembersRequest) RemoveMembersPayload(removeMembersPayload RemoveMembersPayload) ApiRemoveMembersRequest

type ApiUpdateRoleRequest

type ApiUpdateRoleRequest struct {
	ApiService DefaultAPI
	// contains filtered or unexported fields
}

func (ApiUpdateRoleRequest) Execute

func (ApiUpdateRoleRequest) UpdateRolePayload

func (r ApiUpdateRoleRequest) UpdateRolePayload(updateRolePayload UpdateRolePayload) ApiUpdateRoleRequest

type DefaultAPI

type DefaultAPI interface {

	/*
		AddMembers Add members to a resource

		Add members to the given resource with specified roles.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param resourceId
		@return ApiAddMembersRequest
	*/
	AddMembers(ctx context.Context, resourceId string) ApiAddMembersRequest

	// AddMembersExecute executes the request
	//  @return MembersResponse
	AddMembersExecute(r ApiAddMembersRequest) (*MembersResponse, error)

	/*
		AddRole Add a new role

		Add new, user specified roles to a resource, and bind permissions to them. Permissions are predefined.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param resourceType
		@param resourceId
		@return ApiAddRoleRequest
	*/
	AddRole(ctx context.Context, resourceType string, resourceId string) ApiAddRoleRequest

	// AddRoleExecute executes the request
	//  @return AddCustomRoleResponse
	AddRoleExecute(r ApiAddRoleRequest) (*AddCustomRoleResponse, error)

	/*
		DeleteRole Delete an existing role

		Delete a custom role by ID.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param resourceType
		@param resourceId
		@param roleId
		@return ApiDeleteRoleRequest
	*/
	DeleteRole(ctx context.Context, resourceType string, resourceId string, roleId string) ApiDeleteRoleRequest

	// DeleteRoleExecute executes the request
	//  @return DeleteRoleResponse
	DeleteRoleExecute(r ApiDeleteRoleRequest) (*DeleteRoleResponse, error)

	/*
		GetRole Get an existing role

		Get a custom role by ID.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param resourceType
		@param resourceId
		@param roleId
		@return ApiGetRoleRequest
	*/
	GetRole(ctx context.Context, resourceType string, resourceId string, roleId string) ApiGetRoleRequest

	// GetRoleExecute executes the request
	//  @return GetRoleResponse
	GetRoleExecute(r ApiGetRoleRequest) (*GetRoleResponse, error)

	/*
		ListMembers Get members to a resource

		List members of the given resource.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param resourceType
		@param resourceId
		@return ApiListMembersRequest
	*/
	ListMembers(ctx context.Context, resourceType string, resourceId string) ApiListMembersRequest

	// ListMembersExecute executes the request
	//  @return ListMembersResponse
	ListMembersExecute(r ApiListMembersRequest) (*ListMembersResponse, error)

	/*
		ListPermissions Get available permissions

		Get available permissions

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@return ApiListPermissionsRequest
	*/
	ListPermissions(ctx context.Context) ApiListPermissionsRequest

	// ListPermissionsExecute executes the request
	//  @return ListPermissionsResponse
	ListPermissionsExecute(r ApiListPermissionsRequest) (*ListPermissionsResponse, error)

	/*
		ListRoles Get roles and permissions of a resource

		Get roles and permissions of a resource

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param resourceType
		@param resourceId
		@return ApiListRolesRequest
	*/
	ListRoles(ctx context.Context, resourceType string, resourceId string) ApiListRolesRequest

	// ListRolesExecute executes the request
	//  @return RolesResponse
	ListRolesExecute(r ApiListRolesRequest) (*RolesResponse, error)

	/*
		ListUserMemberships List memberships of a user

		List memberships of a user. An administrative access is needed to list any user's memberships, while the user can do it on his/her own email. You can use filters to scope the request to a project/folder/organization. In this case -if caller is not the subject-, owner permissions are required. Because of hierarchical role bindings, the user might have permissions on more resources.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param email
		@return ApiListUserMembershipsRequest
	*/
	ListUserMemberships(ctx context.Context, email string) ApiListUserMembershipsRequest

	// ListUserMembershipsExecute executes the request
	//  @return ListUserMembershipsResponse
	ListUserMembershipsExecute(r ApiListUserMembershipsRequest) (*ListUserMembershipsResponse, error)

	/*
		ListUserPermissions List permissions of a user

		List permissions of a user. An administrative access is needed to list any user's permissions, while the user can do it on his/her own email. Lists every resource of the given type where the user has any effective permissions. When requested, also lists why the permission is present.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param email
		@return ApiListUserPermissionsRequest
	*/
	ListUserPermissions(ctx context.Context, email string) ApiListUserPermissionsRequest

	// ListUserPermissionsExecute executes the request
	//  @return ListUserPermissionsResponse
	ListUserPermissionsExecute(r ApiListUserPermissionsRequest) (*ListUserPermissionsResponse, error)

	/*
		RemoveMembers Remove members from a resource

		Remove members from the given resource with specified roles.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param resourceId
		@return ApiRemoveMembersRequest
	*/
	RemoveMembers(ctx context.Context, resourceId string) ApiRemoveMembersRequest

	// RemoveMembersExecute executes the request
	//  @return MembersResponse
	RemoveMembersExecute(r ApiRemoveMembersRequest) (*MembersResponse, error)

	/*
		UpdateRole Update an existing role

		Update a custom role by ID.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param resourceType
		@param resourceId
		@param roleId
		@return ApiUpdateRoleRequest
	*/
	UpdateRole(ctx context.Context, resourceType string, resourceId string, roleId string) ApiUpdateRoleRequest

	// UpdateRoleExecute executes the request
	//  @return UpdateRoleResponse
	UpdateRoleExecute(r ApiUpdateRoleRequest) (*UpdateRoleResponse, error)
}

type DefaultAPIService

type DefaultAPIService service

DefaultAPIService DefaultAPI service

func (*DefaultAPIService) AddMembers

func (a *DefaultAPIService) AddMembers(ctx context.Context, resourceId string) ApiAddMembersRequest

AddMembers Add members to a resource

Add members to the given resource with specified roles.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param resourceId
@return ApiAddMembersRequest

func (*DefaultAPIService) AddMembersExecute

func (a *DefaultAPIService) AddMembersExecute(r ApiAddMembersRequest) (*MembersResponse, error)

Execute executes the request

@return MembersResponse

func (*DefaultAPIService) AddRole

func (a *DefaultAPIService) AddRole(ctx context.Context, resourceType string, resourceId string) ApiAddRoleRequest

AddRole Add a new role

Add new, user specified roles to a resource, and bind permissions to them. Permissions are predefined.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param resourceType
@param resourceId
@return ApiAddRoleRequest

func (*DefaultAPIService) AddRoleExecute

Execute executes the request

@return AddCustomRoleResponse

func (*DefaultAPIService) DeleteRole

func (a *DefaultAPIService) DeleteRole(ctx context.Context, resourceType string, resourceId string, roleId string) ApiDeleteRoleRequest

DeleteRole Delete an existing role

Delete a custom role by ID.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param resourceType
@param resourceId
@param roleId
@return ApiDeleteRoleRequest

func (*DefaultAPIService) DeleteRoleExecute

func (a *DefaultAPIService) DeleteRoleExecute(r ApiDeleteRoleRequest) (*DeleteRoleResponse, error)

Execute executes the request

@return DeleteRoleResponse

func (*DefaultAPIService) GetRole

func (a *DefaultAPIService) GetRole(ctx context.Context, resourceType string, resourceId string, roleId string) ApiGetRoleRequest

GetRole Get an existing role

Get a custom role by ID.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param resourceType
@param resourceId
@param roleId
@return ApiGetRoleRequest

func (*DefaultAPIService) GetRoleExecute

func (a *DefaultAPIService) GetRoleExecute(r ApiGetRoleRequest) (*GetRoleResponse, error)

Execute executes the request

@return GetRoleResponse

func (*DefaultAPIService) ListMembers

func (a *DefaultAPIService) ListMembers(ctx context.Context, resourceType string, resourceId string) ApiListMembersRequest

ListMembers Get members to a resource

List members of the given resource.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param resourceType
@param resourceId
@return ApiListMembersRequest

func (*DefaultAPIService) ListMembersExecute

Execute executes the request

@return ListMembersResponse

func (*DefaultAPIService) ListPermissions

ListPermissions Get available permissions

Get available permissions

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiListPermissionsRequest

func (*DefaultAPIService) ListPermissionsExecute

Execute executes the request

@return ListPermissionsResponse

func (*DefaultAPIService) ListRoles

func (a *DefaultAPIService) ListRoles(ctx context.Context, resourceType string, resourceId string) ApiListRolesRequest

ListRoles Get roles and permissions of a resource

Get roles and permissions of a resource

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param resourceType
@param resourceId
@return ApiListRolesRequest

func (*DefaultAPIService) ListRolesExecute

func (a *DefaultAPIService) ListRolesExecute(r ApiListRolesRequest) (*RolesResponse, error)

Execute executes the request

@return RolesResponse

func (*DefaultAPIService) ListUserMemberships

func (a *DefaultAPIService) ListUserMemberships(ctx context.Context, email string) ApiListUserMembershipsRequest

ListUserMemberships List memberships of a user

List memberships of a user. An administrative access is needed to list any user's memberships, while the user can do it on his/her own email. You can use filters to scope the request to a project/folder/organization. In this case -if caller is not the subject-, owner permissions are required. Because of hierarchical role bindings, the user might have permissions on more resources.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param email
@return ApiListUserMembershipsRequest

func (*DefaultAPIService) ListUserMembershipsExecute

Execute executes the request

@return ListUserMembershipsResponse

func (*DefaultAPIService) ListUserPermissions

func (a *DefaultAPIService) ListUserPermissions(ctx context.Context, email string) ApiListUserPermissionsRequest

ListUserPermissions List permissions of a user

List permissions of a user. An administrative access is needed to list any user's permissions, while the user can do it on his/her own email. Lists every resource of the given type where the user has any effective permissions. When requested, also lists why the permission is present.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param email
@return ApiListUserPermissionsRequest

func (*DefaultAPIService) ListUserPermissionsExecute

Execute executes the request

@return ListUserPermissionsResponse

func (*DefaultAPIService) RemoveMembers

func (a *DefaultAPIService) RemoveMembers(ctx context.Context, resourceId string) ApiRemoveMembersRequest

RemoveMembers Remove members from a resource

Remove members from the given resource with specified roles.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param resourceId
@return ApiRemoveMembersRequest

func (*DefaultAPIService) RemoveMembersExecute

func (a *DefaultAPIService) RemoveMembersExecute(r ApiRemoveMembersRequest) (*MembersResponse, error)

Execute executes the request

@return MembersResponse

func (*DefaultAPIService) UpdateRole

func (a *DefaultAPIService) UpdateRole(ctx context.Context, resourceType string, resourceId string, roleId string) ApiUpdateRoleRequest

UpdateRole Update an existing role

Update a custom role by ID.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param resourceType
@param resourceId
@param roleId
@return ApiUpdateRoleRequest

func (*DefaultAPIService) UpdateRoleExecute

func (a *DefaultAPIService) UpdateRoleExecute(r ApiUpdateRoleRequest) (*UpdateRoleResponse, error)

Execute executes the request

@return UpdateRoleResponse

type DefaultAPIServiceMock

type DefaultAPIServiceMock struct {
	// AddMembersExecuteMock can be populated to implement the behavior of the AddMembersExecute function of this mock
	AddMembersExecuteMock *func(r ApiAddMembersRequest) (*MembersResponse, error)
	// AddRoleExecuteMock can be populated to implement the behavior of the AddRoleExecute function of this mock
	AddRoleExecuteMock *func(r ApiAddRoleRequest) (*AddCustomRoleResponse, error)
	// DeleteRoleExecuteMock can be populated to implement the behavior of the DeleteRoleExecute function of this mock
	DeleteRoleExecuteMock *func(r ApiDeleteRoleRequest) (*DeleteRoleResponse, error)
	// GetRoleExecuteMock can be populated to implement the behavior of the GetRoleExecute function of this mock
	GetRoleExecuteMock *func(r ApiGetRoleRequest) (*GetRoleResponse, error)
	// ListMembersExecuteMock can be populated to implement the behavior of the ListMembersExecute function of this mock
	ListMembersExecuteMock *func(r ApiListMembersRequest) (*ListMembersResponse, error)
	// ListPermissionsExecuteMock can be populated to implement the behavior of the ListPermissionsExecute function of this mock
	ListPermissionsExecuteMock *func(r ApiListPermissionsRequest) (*ListPermissionsResponse, error)
	// ListRolesExecuteMock can be populated to implement the behavior of the ListRolesExecute function of this mock
	ListRolesExecuteMock *func(r ApiListRolesRequest) (*RolesResponse, error)
	// ListUserMembershipsExecuteMock can be populated to implement the behavior of the ListUserMembershipsExecute function of this mock
	ListUserMembershipsExecuteMock *func(r ApiListUserMembershipsRequest) (*ListUserMembershipsResponse, error)
	// ListUserPermissionsExecuteMock can be populated to implement the behavior of the ListUserPermissionsExecute function of this mock
	ListUserPermissionsExecuteMock *func(r ApiListUserPermissionsRequest) (*ListUserPermissionsResponse, error)
	// RemoveMembersExecuteMock can be populated to implement the behavior of the RemoveMembersExecute function of this mock
	RemoveMembersExecuteMock *func(r ApiRemoveMembersRequest) (*MembersResponse, error)
	// UpdateRoleExecuteMock can be populated to implement the behavior of the UpdateRoleExecute function of this mock
	UpdateRoleExecuteMock *func(r ApiUpdateRoleRequest) (*UpdateRoleResponse, error)
}

DefaultAPIServiceMock is meant to be used for testing only as a replacement for DefaultAPIService. By default all FooExecute() implementations are a no-op. Behavior of the mock can be customized by populating the callbacks in this struct.

func (DefaultAPIServiceMock) AddMembers

func (a DefaultAPIServiceMock) AddMembers(ctx context.Context, resourceId string) ApiAddMembersRequest

func (DefaultAPIServiceMock) AddMembersExecute

AddMembersExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the AddMembersExecuteMock field in the DefaultAPIServiceMock struct.

func (DefaultAPIServiceMock) AddRole

func (a DefaultAPIServiceMock) AddRole(ctx context.Context, resourceType string, resourceId string) ApiAddRoleRequest

func (DefaultAPIServiceMock) AddRoleExecute

AddRoleExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the AddRoleExecuteMock field in the DefaultAPIServiceMock struct.

func (DefaultAPIServiceMock) DeleteRole

func (a DefaultAPIServiceMock) DeleteRole(ctx context.Context, resourceType string, resourceId string, roleId string) ApiDeleteRoleRequest

func (DefaultAPIServiceMock) DeleteRoleExecute

DeleteRoleExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteRoleExecuteMock field in the DefaultAPIServiceMock struct.

func (DefaultAPIServiceMock) GetRole

func (a DefaultAPIServiceMock) GetRole(ctx context.Context, resourceType string, resourceId string, roleId string) ApiGetRoleRequest

func (DefaultAPIServiceMock) GetRoleExecute

GetRoleExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetRoleExecuteMock field in the DefaultAPIServiceMock struct.

func (DefaultAPIServiceMock) ListMembers

func (a DefaultAPIServiceMock) ListMembers(ctx context.Context, resourceType string, resourceId string) ApiListMembersRequest

func (DefaultAPIServiceMock) ListMembersExecute

ListMembersExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListMembersExecuteMock field in the DefaultAPIServiceMock struct.

func (DefaultAPIServiceMock) ListPermissions

func (DefaultAPIServiceMock) ListPermissionsExecute

ListPermissionsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListPermissionsExecuteMock field in the DefaultAPIServiceMock struct.

func (DefaultAPIServiceMock) ListRoles

func (a DefaultAPIServiceMock) ListRoles(ctx context.Context, resourceType string, resourceId string) ApiListRolesRequest

func (DefaultAPIServiceMock) ListRolesExecute

ListRolesExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListRolesExecuteMock field in the DefaultAPIServiceMock struct.

func (DefaultAPIServiceMock) ListUserMemberships

func (a DefaultAPIServiceMock) ListUserMemberships(ctx context.Context, email string) ApiListUserMembershipsRequest

func (DefaultAPIServiceMock) ListUserMembershipsExecute

ListUserMembershipsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListUserMembershipsExecuteMock field in the DefaultAPIServiceMock struct.

func (DefaultAPIServiceMock) ListUserPermissions

func (a DefaultAPIServiceMock) ListUserPermissions(ctx context.Context, email string) ApiListUserPermissionsRequest

func (DefaultAPIServiceMock) ListUserPermissionsExecute

ListUserPermissionsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListUserPermissionsExecuteMock field in the DefaultAPIServiceMock struct.

func (DefaultAPIServiceMock) RemoveMembers

func (a DefaultAPIServiceMock) RemoveMembers(ctx context.Context, resourceId string) ApiRemoveMembersRequest

func (DefaultAPIServiceMock) RemoveMembersExecute

RemoveMembersExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the RemoveMembersExecuteMock field in the DefaultAPIServiceMock struct.

func (DefaultAPIServiceMock) UpdateRole

func (a DefaultAPIServiceMock) UpdateRole(ctx context.Context, resourceType string, resourceId string, roleId string) ApiUpdateRoleRequest

func (DefaultAPIServiceMock) UpdateRoleExecute

UpdateRoleExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the UpdateRoleExecuteMock field in the DefaultAPIServiceMock struct.

type DeleteRoleResponse

type DeleteRoleResponse struct {
	WrittenAt Zookie `json:"writtenAt"`
}

DeleteRoleResponse struct for DeleteRoleResponse

func NewDeleteRoleResponse

func NewDeleteRoleResponse(writtenAt Zookie) *DeleteRoleResponse

NewDeleteRoleResponse instantiates a new DeleteRoleResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewDeleteRoleResponseWithDefaults

func NewDeleteRoleResponseWithDefaults() *DeleteRoleResponse

NewDeleteRoleResponseWithDefaults instantiates a new DeleteRoleResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*DeleteRoleResponse) GetWrittenAt

func (o *DeleteRoleResponse) GetWrittenAt() Zookie

GetWrittenAt returns the WrittenAt field value

func (*DeleteRoleResponse) GetWrittenAtOk

func (o *DeleteRoleResponse) GetWrittenAtOk() (*Zookie, bool)

GetWrittenAtOk returns a tuple with the WrittenAt field value and a boolean to check if the value has been set.

func (DeleteRoleResponse) MarshalJSON

func (o DeleteRoleResponse) MarshalJSON() ([]byte, error)

func (*DeleteRoleResponse) SetWrittenAt

func (o *DeleteRoleResponse) SetWrittenAt(v Zookie)

SetWrittenAt sets field value

func (DeleteRoleResponse) ToMap

func (o DeleteRoleResponse) ToMap() (map[string]interface{}, error)

func (*DeleteRoleResponse) UnmarshalJSON

func (o *DeleteRoleResponse) UnmarshalJSON(data []byte) (err error)

type ErrorResponse

type ErrorResponse struct {
	Error     string    `json:"error"`
	Message   string    `json:"message"`
	Path      string    `json:"path"`
	Status    int32     `json:"status"`
	TimeStamp time.Time `json:"timeStamp"`
}

ErrorResponse struct for ErrorResponse

func NewErrorResponse

func NewErrorResponse(error_ string, message string, path string, status int32, timeStamp time.Time) *ErrorResponse

NewErrorResponse instantiates a new ErrorResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewErrorResponseWithDefaults

func NewErrorResponseWithDefaults() *ErrorResponse

NewErrorResponseWithDefaults instantiates a new ErrorResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ErrorResponse) GetError

func (o *ErrorResponse) GetError() string

GetError returns the Error field value

func (*ErrorResponse) GetErrorOk

func (o *ErrorResponse) GetErrorOk() (*string, bool)

GetErrorOk returns a tuple with the Error field value and a boolean to check if the value has been set.

func (*ErrorResponse) GetMessage

func (o *ErrorResponse) GetMessage() string

GetMessage returns the Message field value

func (*ErrorResponse) GetMessageOk

func (o *ErrorResponse) GetMessageOk() (*string, bool)

GetMessageOk returns a tuple with the Message field value and a boolean to check if the value has been set.

func (*ErrorResponse) GetPath

func (o *ErrorResponse) GetPath() string

GetPath returns the Path field value

func (*ErrorResponse) GetPathOk

func (o *ErrorResponse) GetPathOk() (*string, bool)

GetPathOk returns a tuple with the Path field value and a boolean to check if the value has been set.

func (*ErrorResponse) GetStatus

func (o *ErrorResponse) GetStatus() int32

GetStatus returns the Status field value

func (*ErrorResponse) GetStatusOk

func (o *ErrorResponse) GetStatusOk() (*int32, bool)

GetStatusOk returns a tuple with the Status field value and a boolean to check if the value has been set.

func (*ErrorResponse) GetTimeStamp

func (o *ErrorResponse) GetTimeStamp() time.Time

GetTimeStamp returns the TimeStamp field value

func (*ErrorResponse) GetTimeStampOk

func (o *ErrorResponse) GetTimeStampOk() (*time.Time, bool)

GetTimeStampOk returns a tuple with the TimeStamp field value and a boolean to check if the value has been set.

func (ErrorResponse) MarshalJSON

func (o ErrorResponse) MarshalJSON() ([]byte, error)

func (*ErrorResponse) SetError

func (o *ErrorResponse) SetError(v string)

SetError sets field value

func (*ErrorResponse) SetMessage

func (o *ErrorResponse) SetMessage(v string)

SetMessage sets field value

func (*ErrorResponse) SetPath

func (o *ErrorResponse) SetPath(v string)

SetPath sets field value

func (*ErrorResponse) SetStatus

func (o *ErrorResponse) SetStatus(v int32)

SetStatus sets field value

func (*ErrorResponse) SetTimeStamp

func (o *ErrorResponse) SetTimeStamp(v time.Time)

SetTimeStamp sets field value

func (ErrorResponse) ToMap

func (o ErrorResponse) ToMap() (map[string]interface{}, error)

func (*ErrorResponse) UnmarshalJSON

func (o *ErrorResponse) UnmarshalJSON(data []byte) (err error)

type ExistingPermission

type ExistingPermission struct {
	Description string `json:"description"`
	Name        string `json:"name" validate:"regexp=^[a-z](?:[-.]?[a-z]){1,63}$"`
}

ExistingPermission struct for ExistingPermission

func NewExistingPermission

func NewExistingPermission(description string, name string) *ExistingPermission

NewExistingPermission instantiates a new ExistingPermission object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewExistingPermissionWithDefaults

func NewExistingPermissionWithDefaults() *ExistingPermission

NewExistingPermissionWithDefaults instantiates a new ExistingPermission object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ExistingPermission) GetDescription

func (o *ExistingPermission) GetDescription() string

GetDescription returns the Description field value

func (*ExistingPermission) GetDescriptionOk

func (o *ExistingPermission) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value and a boolean to check if the value has been set.

func (*ExistingPermission) GetName

func (o *ExistingPermission) GetName() string

GetName returns the Name field value

func (*ExistingPermission) GetNameOk

func (o *ExistingPermission) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (ExistingPermission) MarshalJSON

func (o ExistingPermission) MarshalJSON() ([]byte, error)

func (*ExistingPermission) SetDescription

func (o *ExistingPermission) SetDescription(v string)

SetDescription sets field value

func (*ExistingPermission) SetName

func (o *ExistingPermission) SetName(v string)

SetName sets field value

func (ExistingPermission) ToMap

func (o ExistingPermission) ToMap() (map[string]interface{}, error)

func (*ExistingPermission) UnmarshalJSON

func (o *ExistingPermission) UnmarshalJSON(data []byte) (err error)

type GetRoleResponse

type GetRoleResponse struct {
	ResourceId   string `json:"resourceId" validate:"regexp=^([a-zA-Z0-9\\/_|\\\\-=+@.]{1,})$"`
	ResourceType string `json:"resourceType" validate:"regexp=^[a-z](?:-?[a-z]){1,63}$"`
	Role         Role   `json:"role"`
}

GetRoleResponse struct for GetRoleResponse

func NewGetRoleResponse

func NewGetRoleResponse(resourceId string, resourceType string, role Role) *GetRoleResponse

NewGetRoleResponse instantiates a new GetRoleResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewGetRoleResponseWithDefaults

func NewGetRoleResponseWithDefaults() *GetRoleResponse

NewGetRoleResponseWithDefaults instantiates a new GetRoleResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*GetRoleResponse) GetResourceId

func (o *GetRoleResponse) GetResourceId() string

GetResourceId returns the ResourceId field value

func (*GetRoleResponse) GetResourceIdOk

func (o *GetRoleResponse) GetResourceIdOk() (*string, bool)

GetResourceIdOk returns a tuple with the ResourceId field value and a boolean to check if the value has been set.

func (*GetRoleResponse) GetResourceType

func (o *GetRoleResponse) GetResourceType() string

GetResourceType returns the ResourceType field value

func (*GetRoleResponse) GetResourceTypeOk

func (o *GetRoleResponse) GetResourceTypeOk() (*string, bool)

GetResourceTypeOk returns a tuple with the ResourceType field value and a boolean to check if the value has been set.

func (*GetRoleResponse) GetRole

func (o *GetRoleResponse) GetRole() Role

GetRole returns the Role field value

func (*GetRoleResponse) GetRoleOk

func (o *GetRoleResponse) GetRoleOk() (*Role, bool)

GetRoleOk returns a tuple with the Role field value and a boolean to check if the value has been set.

func (GetRoleResponse) MarshalJSON

func (o GetRoleResponse) MarshalJSON() ([]byte, error)

func (*GetRoleResponse) SetResourceId

func (o *GetRoleResponse) SetResourceId(v string)

SetResourceId sets field value

func (*GetRoleResponse) SetResourceType

func (o *GetRoleResponse) SetResourceType(v string)

SetResourceType sets field value

func (*GetRoleResponse) SetRole

func (o *GetRoleResponse) SetRole(v Role)

SetRole sets field value

func (GetRoleResponse) ToMap

func (o GetRoleResponse) ToMap() (map[string]interface{}, error)

func (*GetRoleResponse) UnmarshalJSON

func (o *GetRoleResponse) UnmarshalJSON(data []byte) (err error)

type ListMembersResponse

type ListMembersResponse struct {
	Members      []Member `json:"members"`
	ResourceId   string   `json:"resourceId" validate:"regexp=^([a-zA-Z0-9\\/_|\\\\-=+@.]{1,})$"`
	ResourceType string   `json:"resourceType" validate:"regexp=^[a-z](?:-?[a-z]){1,63}$"`
}

ListMembersResponse struct for ListMembersResponse

func NewListMembersResponse

func NewListMembersResponse(members []Member, resourceId string, resourceType string) *ListMembersResponse

NewListMembersResponse instantiates a new ListMembersResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewListMembersResponseWithDefaults

func NewListMembersResponseWithDefaults() *ListMembersResponse

NewListMembersResponseWithDefaults instantiates a new ListMembersResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ListMembersResponse) GetMembers

func (o *ListMembersResponse) GetMembers() []Member

GetMembers returns the Members field value

func (*ListMembersResponse) GetMembersOk

func (o *ListMembersResponse) GetMembersOk() ([]Member, bool)

GetMembersOk returns a tuple with the Members field value and a boolean to check if the value has been set.

func (*ListMembersResponse) GetResourceId

func (o *ListMembersResponse) GetResourceId() string

GetResourceId returns the ResourceId field value

func (*ListMembersResponse) GetResourceIdOk

func (o *ListMembersResponse) GetResourceIdOk() (*string, bool)

GetResourceIdOk returns a tuple with the ResourceId field value and a boolean to check if the value has been set.

func (*ListMembersResponse) GetResourceType

func (o *ListMembersResponse) GetResourceType() string

GetResourceType returns the ResourceType field value

func (*ListMembersResponse) GetResourceTypeOk

func (o *ListMembersResponse) GetResourceTypeOk() (*string, bool)

GetResourceTypeOk returns a tuple with the ResourceType field value and a boolean to check if the value has been set.

func (ListMembersResponse) MarshalJSON

func (o ListMembersResponse) MarshalJSON() ([]byte, error)

func (*ListMembersResponse) SetMembers

func (o *ListMembersResponse) SetMembers(v []Member)

SetMembers sets field value

func (*ListMembersResponse) SetResourceId

func (o *ListMembersResponse) SetResourceId(v string)

SetResourceId sets field value

func (*ListMembersResponse) SetResourceType

func (o *ListMembersResponse) SetResourceType(v string)

SetResourceType sets field value

func (ListMembersResponse) ToMap

func (o ListMembersResponse) ToMap() (map[string]interface{}, error)

func (*ListMembersResponse) UnmarshalJSON

func (o *ListMembersResponse) UnmarshalJSON(data []byte) (err error)

type ListPermissionsResponse

type ListPermissionsResponse struct {
	Permissions []Permission `json:"permissions"`
}

ListPermissionsResponse struct for ListPermissionsResponse

func NewListPermissionsResponse

func NewListPermissionsResponse(permissions []Permission) *ListPermissionsResponse

NewListPermissionsResponse instantiates a new ListPermissionsResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewListPermissionsResponseWithDefaults

func NewListPermissionsResponseWithDefaults() *ListPermissionsResponse

NewListPermissionsResponseWithDefaults instantiates a new ListPermissionsResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ListPermissionsResponse) GetPermissions

func (o *ListPermissionsResponse) GetPermissions() []Permission

GetPermissions returns the Permissions field value

func (*ListPermissionsResponse) GetPermissionsOk

func (o *ListPermissionsResponse) GetPermissionsOk() ([]Permission, bool)

GetPermissionsOk returns a tuple with the Permissions field value and a boolean to check if the value has been set.

func (ListPermissionsResponse) MarshalJSON

func (o ListPermissionsResponse) MarshalJSON() ([]byte, error)

func (*ListPermissionsResponse) SetPermissions

func (o *ListPermissionsResponse) SetPermissions(v []Permission)

SetPermissions sets field value

func (ListPermissionsResponse) ToMap

func (o ListPermissionsResponse) ToMap() (map[string]interface{}, error)

func (*ListPermissionsResponse) UnmarshalJSON

func (o *ListPermissionsResponse) UnmarshalJSON(data []byte) (err error)

type ListUserMembershipsResponse

type ListUserMembershipsResponse struct {
	Items []UserMembership `json:"items"`
}

ListUserMembershipsResponse struct for ListUserMembershipsResponse

func NewListUserMembershipsResponse

func NewListUserMembershipsResponse(items []UserMembership) *ListUserMembershipsResponse

NewListUserMembershipsResponse instantiates a new ListUserMembershipsResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewListUserMembershipsResponseWithDefaults

func NewListUserMembershipsResponseWithDefaults() *ListUserMembershipsResponse

NewListUserMembershipsResponseWithDefaults instantiates a new ListUserMembershipsResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ListUserMembershipsResponse) GetItems

GetItems returns the Items field value

func (*ListUserMembershipsResponse) GetItemsOk

func (o *ListUserMembershipsResponse) GetItemsOk() ([]UserMembership, bool)

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set.

func (ListUserMembershipsResponse) MarshalJSON

func (o ListUserMembershipsResponse) MarshalJSON() ([]byte, error)

func (*ListUserMembershipsResponse) SetItems

SetItems sets field value

func (ListUserMembershipsResponse) ToMap

func (o ListUserMembershipsResponse) ToMap() (map[string]interface{}, error)

func (*ListUserMembershipsResponse) UnmarshalJSON

func (o *ListUserMembershipsResponse) UnmarshalJSON(data []byte) (err error)

type ListUserPermissionsResponse

type ListUserPermissionsResponse struct {
	Items []UserPermission `json:"items"`
}

ListUserPermissionsResponse struct for ListUserPermissionsResponse

func NewListUserPermissionsResponse

func NewListUserPermissionsResponse(items []UserPermission) *ListUserPermissionsResponse

NewListUserPermissionsResponse instantiates a new ListUserPermissionsResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewListUserPermissionsResponseWithDefaults

func NewListUserPermissionsResponseWithDefaults() *ListUserPermissionsResponse

NewListUserPermissionsResponseWithDefaults instantiates a new ListUserPermissionsResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ListUserPermissionsResponse) GetItems

GetItems returns the Items field value

func (*ListUserPermissionsResponse) GetItemsOk

func (o *ListUserPermissionsResponse) GetItemsOk() ([]UserPermission, bool)

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set.

func (ListUserPermissionsResponse) MarshalJSON

func (o ListUserPermissionsResponse) MarshalJSON() ([]byte, error)

func (*ListUserPermissionsResponse) SetItems

SetItems sets field value

func (ListUserPermissionsResponse) ToMap

func (o ListUserPermissionsResponse) ToMap() (map[string]interface{}, error)

func (*ListUserPermissionsResponse) UnmarshalJSON

func (o *ListUserPermissionsResponse) UnmarshalJSON(data []byte) (err error)

type MappedNullable

type MappedNullable interface {
	ToMap() (map[string]interface{}, error)
}

type Member

type Member struct {
	Role    string `json:"role" validate:"regexp=^[a-z](?:[-.]?[a-z]){1,63}$"`
	Subject string `json:"subject"`
}

Member struct for Member

func NewMember

func NewMember(role string, subject string) *Member

NewMember instantiates a new Member object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewMemberWithDefaults

func NewMemberWithDefaults() *Member

NewMemberWithDefaults instantiates a new Member object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Member) GetRole

func (o *Member) GetRole() string

GetRole returns the Role field value

func (*Member) GetRoleOk

func (o *Member) GetRoleOk() (*string, bool)

GetRoleOk returns a tuple with the Role field value and a boolean to check if the value has been set.

func (*Member) GetSubject

func (o *Member) GetSubject() string

GetSubject returns the Subject field value

func (*Member) GetSubjectOk

func (o *Member) GetSubjectOk() (*string, bool)

GetSubjectOk returns a tuple with the Subject field value and a boolean to check if the value has been set.

func (Member) MarshalJSON

func (o Member) MarshalJSON() ([]byte, error)

func (*Member) SetRole

func (o *Member) SetRole(v string)

SetRole sets field value

func (*Member) SetSubject

func (o *Member) SetSubject(v string)

SetSubject sets field value

func (Member) ToMap

func (o Member) ToMap() (map[string]interface{}, error)

func (*Member) UnmarshalJSON

func (o *Member) UnmarshalJSON(data []byte) (err error)

type MembersResponse

type MembersResponse struct {
	Members      []Member `json:"members"`
	ResourceId   string   `json:"resourceId" validate:"regexp=^([a-zA-Z0-9\\/_|\\\\-=+@.]{1,})$"`
	ResourceType string   `json:"resourceType" validate:"regexp=^[a-z](?:-?[a-z]){1,63}$"`
	WrittenAt    *Zookie  `json:"writtenAt,omitempty"`
}

MembersResponse struct for MembersResponse

func NewMembersResponse

func NewMembersResponse(members []Member, resourceId string, resourceType string) *MembersResponse

NewMembersResponse instantiates a new MembersResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewMembersResponseWithDefaults

func NewMembersResponseWithDefaults() *MembersResponse

NewMembersResponseWithDefaults instantiates a new MembersResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*MembersResponse) GetMembers

func (o *MembersResponse) GetMembers() []Member

GetMembers returns the Members field value

func (*MembersResponse) GetMembersOk

func (o *MembersResponse) GetMembersOk() ([]Member, bool)

GetMembersOk returns a tuple with the Members field value and a boolean to check if the value has been set.

func (*MembersResponse) GetResourceId

func (o *MembersResponse) GetResourceId() string

GetResourceId returns the ResourceId field value

func (*MembersResponse) GetResourceIdOk

func (o *MembersResponse) GetResourceIdOk() (*string, bool)

GetResourceIdOk returns a tuple with the ResourceId field value and a boolean to check if the value has been set.

func (*MembersResponse) GetResourceType

func (o *MembersResponse) GetResourceType() string

GetResourceType returns the ResourceType field value

func (*MembersResponse) GetResourceTypeOk

func (o *MembersResponse) GetResourceTypeOk() (*string, bool)

GetResourceTypeOk returns a tuple with the ResourceType field value and a boolean to check if the value has been set.

func (*MembersResponse) GetWrittenAt

func (o *MembersResponse) GetWrittenAt() Zookie

GetWrittenAt returns the WrittenAt field value if set, zero value otherwise.

func (*MembersResponse) GetWrittenAtOk

func (o *MembersResponse) GetWrittenAtOk() (*Zookie, bool)

GetWrittenAtOk returns a tuple with the WrittenAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*MembersResponse) HasWrittenAt

func (o *MembersResponse) HasWrittenAt() bool

HasWrittenAt returns a boolean if a field has been set.

func (MembersResponse) MarshalJSON

func (o MembersResponse) MarshalJSON() ([]byte, error)

func (*MembersResponse) SetMembers

func (o *MembersResponse) SetMembers(v []Member)

SetMembers sets field value

func (*MembersResponse) SetResourceId

func (o *MembersResponse) SetResourceId(v string)

SetResourceId sets field value

func (*MembersResponse) SetResourceType

func (o *MembersResponse) SetResourceType(v string)

SetResourceType sets field value

func (*MembersResponse) SetWrittenAt

func (o *MembersResponse) SetWrittenAt(v Zookie)

SetWrittenAt gets a reference to the given Zookie and assigns it to the WrittenAt field.

func (MembersResponse) ToMap

func (o MembersResponse) ToMap() (map[string]interface{}, error)

func (*MembersResponse) UnmarshalJSON

func (o *MembersResponse) UnmarshalJSON(data []byte) (err error)

type NullableAddCustomRoleResponse

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

func (NullableAddCustomRoleResponse) Get

func (NullableAddCustomRoleResponse) IsSet

func (NullableAddCustomRoleResponse) MarshalJSON

func (v NullableAddCustomRoleResponse) MarshalJSON() ([]byte, error)

func (*NullableAddCustomRoleResponse) Set

func (*NullableAddCustomRoleResponse) UnmarshalJSON

func (v *NullableAddCustomRoleResponse) UnmarshalJSON(src []byte) error

func (*NullableAddCustomRoleResponse) Unset

func (v *NullableAddCustomRoleResponse) Unset()

type NullableAddMembersPayload

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

func NewNullableAddMembersPayload

func NewNullableAddMembersPayload(val *AddMembersPayload) *NullableAddMembersPayload

func (NullableAddMembersPayload) Get

func (NullableAddMembersPayload) IsSet

func (v NullableAddMembersPayload) IsSet() bool

func (NullableAddMembersPayload) MarshalJSON

func (v NullableAddMembersPayload) MarshalJSON() ([]byte, error)

func (*NullableAddMembersPayload) Set

func (*NullableAddMembersPayload) UnmarshalJSON

func (v *NullableAddMembersPayload) UnmarshalJSON(src []byte) error

func (*NullableAddMembersPayload) Unset

func (v *NullableAddMembersPayload) Unset()

type NullableAddRolePayload

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

func NewNullableAddRolePayload

func NewNullableAddRolePayload(val *AddRolePayload) *NullableAddRolePayload

func (NullableAddRolePayload) Get

func (NullableAddRolePayload) IsSet

func (v NullableAddRolePayload) IsSet() bool

func (NullableAddRolePayload) MarshalJSON

func (v NullableAddRolePayload) MarshalJSON() ([]byte, error)

func (*NullableAddRolePayload) Set

func (*NullableAddRolePayload) UnmarshalJSON

func (v *NullableAddRolePayload) UnmarshalJSON(src []byte) error

func (*NullableAddRolePayload) Unset

func (v *NullableAddRolePayload) Unset()

type NullableBool

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

func NewNullableBool

func NewNullableBool(val *bool) *NullableBool

func (NullableBool) Get

func (v NullableBool) Get() *bool

func (NullableBool) IsSet

func (v NullableBool) IsSet() bool

func (NullableBool) MarshalJSON

func (v NullableBool) MarshalJSON() ([]byte, error)

func (*NullableBool) Set

func (v *NullableBool) Set(val *bool)

func (*NullableBool) UnmarshalJSON

func (v *NullableBool) UnmarshalJSON(src []byte) error

func (*NullableBool) Unset

func (v *NullableBool) Unset()

type NullableDeleteRoleResponse

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

func NewNullableDeleteRoleResponse

func NewNullableDeleteRoleResponse(val *DeleteRoleResponse) *NullableDeleteRoleResponse

func (NullableDeleteRoleResponse) Get

func (NullableDeleteRoleResponse) IsSet

func (v NullableDeleteRoleResponse) IsSet() bool

func (NullableDeleteRoleResponse) MarshalJSON

func (v NullableDeleteRoleResponse) MarshalJSON() ([]byte, error)

func (*NullableDeleteRoleResponse) Set

func (*NullableDeleteRoleResponse) UnmarshalJSON

func (v *NullableDeleteRoleResponse) UnmarshalJSON(src []byte) error

func (*NullableDeleteRoleResponse) Unset

func (v *NullableDeleteRoleResponse) Unset()

type NullableErrorResponse

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

func NewNullableErrorResponse

func NewNullableErrorResponse(val *ErrorResponse) *NullableErrorResponse

func (NullableErrorResponse) Get

func (NullableErrorResponse) IsSet

func (v NullableErrorResponse) IsSet() bool

func (NullableErrorResponse) MarshalJSON

func (v NullableErrorResponse) MarshalJSON() ([]byte, error)

func (*NullableErrorResponse) Set

func (v *NullableErrorResponse) Set(val *ErrorResponse)

func (*NullableErrorResponse) UnmarshalJSON

func (v *NullableErrorResponse) UnmarshalJSON(src []byte) error

func (*NullableErrorResponse) Unset

func (v *NullableErrorResponse) Unset()

type NullableExistingPermission

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

func NewNullableExistingPermission

func NewNullableExistingPermission(val *ExistingPermission) *NullableExistingPermission

func (NullableExistingPermission) Get

func (NullableExistingPermission) IsSet

func (v NullableExistingPermission) IsSet() bool

func (NullableExistingPermission) MarshalJSON

func (v NullableExistingPermission) MarshalJSON() ([]byte, error)

func (*NullableExistingPermission) Set

func (*NullableExistingPermission) UnmarshalJSON

func (v *NullableExistingPermission) UnmarshalJSON(src []byte) error

func (*NullableExistingPermission) Unset

func (v *NullableExistingPermission) Unset()

type NullableFloat32

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

func NewNullableFloat32

func NewNullableFloat32(val *float32) *NullableFloat32

func (NullableFloat32) Get

func (v NullableFloat32) Get() *float32

func (NullableFloat32) IsSet

func (v NullableFloat32) IsSet() bool

func (NullableFloat32) MarshalJSON

func (v NullableFloat32) MarshalJSON() ([]byte, error)

func (*NullableFloat32) Set

func (v *NullableFloat32) Set(val *float32)

func (*NullableFloat32) UnmarshalJSON

func (v *NullableFloat32) UnmarshalJSON(src []byte) error

func (*NullableFloat32) Unset

func (v *NullableFloat32) Unset()

type NullableFloat64

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

func NewNullableFloat64

func NewNullableFloat64(val *float64) *NullableFloat64

func (NullableFloat64) Get

func (v NullableFloat64) Get() *float64

func (NullableFloat64) IsSet

func (v NullableFloat64) IsSet() bool

func (NullableFloat64) MarshalJSON

func (v NullableFloat64) MarshalJSON() ([]byte, error)

func (*NullableFloat64) Set

func (v *NullableFloat64) Set(val *float64)

func (*NullableFloat64) UnmarshalJSON

func (v *NullableFloat64) UnmarshalJSON(src []byte) error

func (*NullableFloat64) Unset

func (v *NullableFloat64) Unset()

type NullableGetRoleResponse

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

func NewNullableGetRoleResponse

func NewNullableGetRoleResponse(val *GetRoleResponse) *NullableGetRoleResponse

func (NullableGetRoleResponse) Get

func (NullableGetRoleResponse) IsSet

func (v NullableGetRoleResponse) IsSet() bool

func (NullableGetRoleResponse) MarshalJSON

func (v NullableGetRoleResponse) MarshalJSON() ([]byte, error)

func (*NullableGetRoleResponse) Set

func (*NullableGetRoleResponse) UnmarshalJSON

func (v *NullableGetRoleResponse) UnmarshalJSON(src []byte) error

func (*NullableGetRoleResponse) Unset

func (v *NullableGetRoleResponse) Unset()

type NullableInt

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

func NewNullableInt

func NewNullableInt(val *int) *NullableInt

func (NullableInt) Get

func (v NullableInt) Get() *int

func (NullableInt) IsSet

func (v NullableInt) IsSet() bool

func (NullableInt) MarshalJSON

func (v NullableInt) MarshalJSON() ([]byte, error)

func (*NullableInt) Set

func (v *NullableInt) Set(val *int)

func (*NullableInt) UnmarshalJSON

func (v *NullableInt) UnmarshalJSON(src []byte) error

func (*NullableInt) Unset

func (v *NullableInt) Unset()

type NullableInt32

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

func NewNullableInt32

func NewNullableInt32(val *int32) *NullableInt32

func (NullableInt32) Get

func (v NullableInt32) Get() *int32

func (NullableInt32) IsSet

func (v NullableInt32) IsSet() bool

func (NullableInt32) MarshalJSON

func (v NullableInt32) MarshalJSON() ([]byte, error)

func (*NullableInt32) Set

func (v *NullableInt32) Set(val *int32)

func (*NullableInt32) UnmarshalJSON

func (v *NullableInt32) UnmarshalJSON(src []byte) error

func (*NullableInt32) Unset

func (v *NullableInt32) Unset()

type NullableInt64

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

func NewNullableInt64

func NewNullableInt64(val *int64) *NullableInt64

func (NullableInt64) Get

func (v NullableInt64) Get() *int64

func (NullableInt64) IsSet

func (v NullableInt64) IsSet() bool

func (NullableInt64) MarshalJSON

func (v NullableInt64) MarshalJSON() ([]byte, error)

func (*NullableInt64) Set

func (v *NullableInt64) Set(val *int64)

func (*NullableInt64) UnmarshalJSON

func (v *NullableInt64) UnmarshalJSON(src []byte) error

func (*NullableInt64) Unset

func (v *NullableInt64) Unset()

type NullableListMembersResponse

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

func NewNullableListMembersResponse

func NewNullableListMembersResponse(val *ListMembersResponse) *NullableListMembersResponse

func (NullableListMembersResponse) Get

func (NullableListMembersResponse) IsSet

func (NullableListMembersResponse) MarshalJSON

func (v NullableListMembersResponse) MarshalJSON() ([]byte, error)

func (*NullableListMembersResponse) Set

func (*NullableListMembersResponse) UnmarshalJSON

func (v *NullableListMembersResponse) UnmarshalJSON(src []byte) error

func (*NullableListMembersResponse) Unset

func (v *NullableListMembersResponse) Unset()

type NullableListPermissionsResponse

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

func (NullableListPermissionsResponse) Get

func (NullableListPermissionsResponse) IsSet

func (NullableListPermissionsResponse) MarshalJSON

func (v NullableListPermissionsResponse) MarshalJSON() ([]byte, error)

func (*NullableListPermissionsResponse) Set

func (*NullableListPermissionsResponse) UnmarshalJSON

func (v *NullableListPermissionsResponse) UnmarshalJSON(src []byte) error

func (*NullableListPermissionsResponse) Unset

type NullableListUserMembershipsResponse

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

func (NullableListUserMembershipsResponse) Get

func (NullableListUserMembershipsResponse) IsSet

func (NullableListUserMembershipsResponse) MarshalJSON

func (v NullableListUserMembershipsResponse) MarshalJSON() ([]byte, error)

func (*NullableListUserMembershipsResponse) Set

func (*NullableListUserMembershipsResponse) UnmarshalJSON

func (v *NullableListUserMembershipsResponse) UnmarshalJSON(src []byte) error

func (*NullableListUserMembershipsResponse) Unset

type NullableListUserPermissionsResponse

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

func (NullableListUserPermissionsResponse) Get

func (NullableListUserPermissionsResponse) IsSet

func (NullableListUserPermissionsResponse) MarshalJSON

func (v NullableListUserPermissionsResponse) MarshalJSON() ([]byte, error)

func (*NullableListUserPermissionsResponse) Set

func (*NullableListUserPermissionsResponse) UnmarshalJSON

func (v *NullableListUserPermissionsResponse) UnmarshalJSON(src []byte) error

func (*NullableListUserPermissionsResponse) Unset

type NullableMember

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

func NewNullableMember

func NewNullableMember(val *Member) *NullableMember

func (NullableMember) Get

func (v NullableMember) Get() *Member

func (NullableMember) IsSet

func (v NullableMember) IsSet() bool

func (NullableMember) MarshalJSON

func (v NullableMember) MarshalJSON() ([]byte, error)

func (*NullableMember) Set

func (v *NullableMember) Set(val *Member)

func (*NullableMember) UnmarshalJSON

func (v *NullableMember) UnmarshalJSON(src []byte) error

func (*NullableMember) Unset

func (v *NullableMember) Unset()

type NullableMembersResponse

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

func NewNullableMembersResponse

func NewNullableMembersResponse(val *MembersResponse) *NullableMembersResponse

func (NullableMembersResponse) Get

func (NullableMembersResponse) IsSet

func (v NullableMembersResponse) IsSet() bool

func (NullableMembersResponse) MarshalJSON

func (v NullableMembersResponse) MarshalJSON() ([]byte, error)

func (*NullableMembersResponse) Set

func (*NullableMembersResponse) UnmarshalJSON

func (v *NullableMembersResponse) UnmarshalJSON(src []byte) error

func (*NullableMembersResponse) Unset

func (v *NullableMembersResponse) Unset()

type NullablePermission

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

func NewNullablePermission

func NewNullablePermission(val *Permission) *NullablePermission

func (NullablePermission) Get

func (v NullablePermission) Get() *Permission

func (NullablePermission) IsSet

func (v NullablePermission) IsSet() bool

func (NullablePermission) MarshalJSON

func (v NullablePermission) MarshalJSON() ([]byte, error)

func (*NullablePermission) Set

func (v *NullablePermission) Set(val *Permission)

func (*NullablePermission) UnmarshalJSON

func (v *NullablePermission) UnmarshalJSON(src []byte) error

func (*NullablePermission) Unset

func (v *NullablePermission) Unset()

type NullablePermissionRequest

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

func NewNullablePermissionRequest

func NewNullablePermissionRequest(val *PermissionRequest) *NullablePermissionRequest

func (NullablePermissionRequest) Get

func (NullablePermissionRequest) IsSet

func (v NullablePermissionRequest) IsSet() bool

func (NullablePermissionRequest) MarshalJSON

func (v NullablePermissionRequest) MarshalJSON() ([]byte, error)

func (*NullablePermissionRequest) Set

func (*NullablePermissionRequest) UnmarshalJSON

func (v *NullablePermissionRequest) UnmarshalJSON(src []byte) error

func (*NullablePermissionRequest) Unset

func (v *NullablePermissionRequest) Unset()

type NullableRemoveMembersPayload

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

func NewNullableRemoveMembersPayload

func NewNullableRemoveMembersPayload(val *RemoveMembersPayload) *NullableRemoveMembersPayload

func (NullableRemoveMembersPayload) Get

func (NullableRemoveMembersPayload) IsSet

func (NullableRemoveMembersPayload) MarshalJSON

func (v NullableRemoveMembersPayload) MarshalJSON() ([]byte, error)

func (*NullableRemoveMembersPayload) Set

func (*NullableRemoveMembersPayload) UnmarshalJSON

func (v *NullableRemoveMembersPayload) UnmarshalJSON(src []byte) error

func (*NullableRemoveMembersPayload) Unset

func (v *NullableRemoveMembersPayload) Unset()

type NullableRole

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

func NewNullableRole

func NewNullableRole(val *Role) *NullableRole

func (NullableRole) Get

func (v NullableRole) Get() *Role

func (NullableRole) IsSet

func (v NullableRole) IsSet() bool

func (NullableRole) MarshalJSON

func (v NullableRole) MarshalJSON() ([]byte, error)

func (*NullableRole) Set

func (v *NullableRole) Set(val *Role)

func (*NullableRole) UnmarshalJSON

func (v *NullableRole) UnmarshalJSON(src []byte) error

func (*NullableRole) Unset

func (v *NullableRole) Unset()

type NullableRolesResponse

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

func NewNullableRolesResponse

func NewNullableRolesResponse(val *RolesResponse) *NullableRolesResponse

func (NullableRolesResponse) Get

func (NullableRolesResponse) IsSet

func (v NullableRolesResponse) IsSet() bool

func (NullableRolesResponse) MarshalJSON

func (v NullableRolesResponse) MarshalJSON() ([]byte, error)

func (*NullableRolesResponse) Set

func (v *NullableRolesResponse) Set(val *RolesResponse)

func (*NullableRolesResponse) UnmarshalJSON

func (v *NullableRolesResponse) UnmarshalJSON(src []byte) error

func (*NullableRolesResponse) Unset

func (v *NullableRolesResponse) Unset()

type NullableString

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

func NewNullableString

func NewNullableString(val *string) *NullableString

func (NullableString) Get

func (v NullableString) Get() *string

func (NullableString) IsSet

func (v NullableString) IsSet() bool

func (NullableString) MarshalJSON

func (v NullableString) MarshalJSON() ([]byte, error)

func (*NullableString) Set

func (v *NullableString) Set(val *string)

func (*NullableString) UnmarshalJSON

func (v *NullableString) UnmarshalJSON(src []byte) error

func (*NullableString) Unset

func (v *NullableString) Unset()

type NullableTime

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

func NewNullableTime

func NewNullableTime(val *time.Time) *NullableTime

func (NullableTime) Get

func (v NullableTime) Get() *time.Time

func (NullableTime) IsSet

func (v NullableTime) IsSet() bool

func (NullableTime) MarshalJSON

func (v NullableTime) MarshalJSON() ([]byte, error)

func (*NullableTime) Set

func (v *NullableTime) Set(val *time.Time)

func (*NullableTime) UnmarshalJSON

func (v *NullableTime) UnmarshalJSON(src []byte) error

func (*NullableTime) Unset

func (v *NullableTime) Unset()

type NullableUpdateRolePayload

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

func NewNullableUpdateRolePayload

func NewNullableUpdateRolePayload(val *UpdateRolePayload) *NullableUpdateRolePayload

func (NullableUpdateRolePayload) Get

func (NullableUpdateRolePayload) IsSet

func (v NullableUpdateRolePayload) IsSet() bool

func (NullableUpdateRolePayload) MarshalJSON

func (v NullableUpdateRolePayload) MarshalJSON() ([]byte, error)

func (*NullableUpdateRolePayload) Set

func (*NullableUpdateRolePayload) UnmarshalJSON

func (v *NullableUpdateRolePayload) UnmarshalJSON(src []byte) error

func (*NullableUpdateRolePayload) Unset

func (v *NullableUpdateRolePayload) Unset()

type NullableUpdateRoleResponse

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

func NewNullableUpdateRoleResponse

func NewNullableUpdateRoleResponse(val *UpdateRoleResponse) *NullableUpdateRoleResponse

func (NullableUpdateRoleResponse) Get

func (NullableUpdateRoleResponse) IsSet

func (v NullableUpdateRoleResponse) IsSet() bool

func (NullableUpdateRoleResponse) MarshalJSON

func (v NullableUpdateRoleResponse) MarshalJSON() ([]byte, error)

func (*NullableUpdateRoleResponse) Set

func (*NullableUpdateRoleResponse) UnmarshalJSON

func (v *NullableUpdateRoleResponse) UnmarshalJSON(src []byte) error

func (*NullableUpdateRoleResponse) Unset

func (v *NullableUpdateRoleResponse) Unset()

type NullableUserMembership

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

func NewNullableUserMembership

func NewNullableUserMembership(val *UserMembership) *NullableUserMembership

func (NullableUserMembership) Get

func (NullableUserMembership) IsSet

func (v NullableUserMembership) IsSet() bool

func (NullableUserMembership) MarshalJSON

func (v NullableUserMembership) MarshalJSON() ([]byte, error)

func (*NullableUserMembership) Set

func (*NullableUserMembership) UnmarshalJSON

func (v *NullableUserMembership) UnmarshalJSON(src []byte) error

func (*NullableUserMembership) Unset

func (v *NullableUserMembership) Unset()

type NullableUserPermission

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

func NewNullableUserPermission

func NewNullableUserPermission(val *UserPermission) *NullableUserPermission

func (NullableUserPermission) Get

func (NullableUserPermission) IsSet

func (v NullableUserPermission) IsSet() bool

func (NullableUserPermission) MarshalJSON

func (v NullableUserPermission) MarshalJSON() ([]byte, error)

func (*NullableUserPermission) Set

func (*NullableUserPermission) UnmarshalJSON

func (v *NullableUserPermission) UnmarshalJSON(src []byte) error

func (*NullableUserPermission) Unset

func (v *NullableUserPermission) Unset()

type NullableZookie

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

func NewNullableZookie

func NewNullableZookie(val *Zookie) *NullableZookie

func (NullableZookie) Get

func (v NullableZookie) Get() *Zookie

func (NullableZookie) IsSet

func (v NullableZookie) IsSet() bool

func (NullableZookie) MarshalJSON

func (v NullableZookie) MarshalJSON() ([]byte, error)

func (*NullableZookie) Set

func (v *NullableZookie) Set(val *Zookie)

func (*NullableZookie) UnmarshalJSON

func (v *NullableZookie) UnmarshalJSON(src []byte) error

func (*NullableZookie) Unset

func (v *NullableZookie) Unset()

type Permission

type Permission struct {
	Description string `json:"description"`
	Name        string `json:"name" validate:"regexp=^[a-z](?:[-.]?[a-z]){1,63}$"`
}

Permission struct for Permission

func NewPermission

func NewPermission(description string, name string) *Permission

NewPermission instantiates a new Permission object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewPermissionWithDefaults

func NewPermissionWithDefaults() *Permission

NewPermissionWithDefaults instantiates a new Permission object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Permission) GetDescription

func (o *Permission) GetDescription() string

GetDescription returns the Description field value

func (*Permission) GetDescriptionOk

func (o *Permission) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value and a boolean to check if the value has been set.

func (*Permission) GetName

func (o *Permission) GetName() string

GetName returns the Name field value

func (*Permission) GetNameOk

func (o *Permission) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (Permission) MarshalJSON

func (o Permission) MarshalJSON() ([]byte, error)

func (*Permission) SetDescription

func (o *Permission) SetDescription(v string)

SetDescription sets field value

func (*Permission) SetName

func (o *Permission) SetName(v string)

SetName sets field value

func (Permission) ToMap

func (o Permission) ToMap() (map[string]interface{}, error)

func (*Permission) UnmarshalJSON

func (o *Permission) UnmarshalJSON(data []byte) (err error)

type PermissionRequest

type PermissionRequest struct {
	Name string `json:"name" validate:"regexp=^[a-z](?:[-.]?[a-z]){1,63}$"`
}

PermissionRequest struct for PermissionRequest

func NewPermissionRequest

func NewPermissionRequest(name string) *PermissionRequest

NewPermissionRequest instantiates a new PermissionRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewPermissionRequestWithDefaults

func NewPermissionRequestWithDefaults() *PermissionRequest

NewPermissionRequestWithDefaults instantiates a new PermissionRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*PermissionRequest) GetName

func (o *PermissionRequest) GetName() string

GetName returns the Name field value

func (*PermissionRequest) GetNameOk

func (o *PermissionRequest) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (PermissionRequest) MarshalJSON

func (o PermissionRequest) MarshalJSON() ([]byte, error)

func (*PermissionRequest) SetName

func (o *PermissionRequest) SetName(v string)

SetName sets field value

func (PermissionRequest) ToMap

func (o PermissionRequest) ToMap() (map[string]interface{}, error)

func (*PermissionRequest) UnmarshalJSON

func (o *PermissionRequest) UnmarshalJSON(data []byte) (err error)

type RemoveMembersPayload

type RemoveMembersPayload struct {
	ForceRemove  *bool    `json:"forceRemove,omitempty"`
	Members      []Member `json:"members"`
	ResourceType string   `json:"resourceType" validate:"regexp=^[a-z](?:-?[a-z]){1,63}$"`
}

RemoveMembersPayload struct for RemoveMembersPayload

func NewRemoveMembersPayload

func NewRemoveMembersPayload(members []Member, resourceType string) *RemoveMembersPayload

NewRemoveMembersPayload instantiates a new RemoveMembersPayload object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewRemoveMembersPayloadWithDefaults

func NewRemoveMembersPayloadWithDefaults() *RemoveMembersPayload

NewRemoveMembersPayloadWithDefaults instantiates a new RemoveMembersPayload object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*RemoveMembersPayload) GetForceRemove

func (o *RemoveMembersPayload) GetForceRemove() bool

GetForceRemove returns the ForceRemove field value if set, zero value otherwise.

func (*RemoveMembersPayload) GetForceRemoveOk

func (o *RemoveMembersPayload) GetForceRemoveOk() (*bool, bool)

GetForceRemoveOk returns a tuple with the ForceRemove field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RemoveMembersPayload) GetMembers

func (o *RemoveMembersPayload) GetMembers() []Member

GetMembers returns the Members field value

func (*RemoveMembersPayload) GetMembersOk

func (o *RemoveMembersPayload) GetMembersOk() ([]Member, bool)

GetMembersOk returns a tuple with the Members field value and a boolean to check if the value has been set.

func (*RemoveMembersPayload) GetResourceType

func (o *RemoveMembersPayload) GetResourceType() string

GetResourceType returns the ResourceType field value

func (*RemoveMembersPayload) GetResourceTypeOk

func (o *RemoveMembersPayload) GetResourceTypeOk() (*string, bool)

GetResourceTypeOk returns a tuple with the ResourceType field value and a boolean to check if the value has been set.

func (*RemoveMembersPayload) HasForceRemove

func (o *RemoveMembersPayload) HasForceRemove() bool

HasForceRemove returns a boolean if a field has been set.

func (RemoveMembersPayload) MarshalJSON

func (o RemoveMembersPayload) MarshalJSON() ([]byte, error)

func (*RemoveMembersPayload) SetForceRemove

func (o *RemoveMembersPayload) SetForceRemove(v bool)

SetForceRemove gets a reference to the given bool and assigns it to the ForceRemove field.

func (*RemoveMembersPayload) SetMembers

func (o *RemoveMembersPayload) SetMembers(v []Member)

SetMembers sets field value

func (*RemoveMembersPayload) SetResourceType

func (o *RemoveMembersPayload) SetResourceType(v string)

SetResourceType sets field value

func (RemoveMembersPayload) ToMap

func (o RemoveMembersPayload) ToMap() (map[string]interface{}, error)

func (*RemoveMembersPayload) UnmarshalJSON

func (o *RemoveMembersPayload) UnmarshalJSON(data []byte) (err error)

type Role

type Role struct {
	Description string       `json:"description"`
	Etag        *string      `json:"etag,omitempty"`
	Id          *string      `json:"id,omitempty" validate:"regexp=^([a-zA-Z0-9\\/_|\\\\-=+]{1,})$"`
	Name        string       `json:"name" validate:"regexp=^[a-z](?:[-.]?[a-z]){1,63}$"`
	Permissions []Permission `json:"permissions"`
}

Role struct for Role

func NewRole

func NewRole(description string, name string, permissions []Permission) *Role

NewRole instantiates a new Role object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewRoleWithDefaults

func NewRoleWithDefaults() *Role

NewRoleWithDefaults instantiates a new Role object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Role) GetDescription

func (o *Role) GetDescription() string

GetDescription returns the Description field value

func (*Role) GetDescriptionOk

func (o *Role) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value and a boolean to check if the value has been set.

func (*Role) GetEtag

func (o *Role) GetEtag() string

GetEtag returns the Etag field value if set, zero value otherwise.

func (*Role) GetEtagOk

func (o *Role) GetEtagOk() (*string, bool)

GetEtagOk returns a tuple with the Etag field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Role) GetId

func (o *Role) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*Role) GetIdOk

func (o *Role) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Role) GetName

func (o *Role) GetName() string

GetName returns the Name field value

func (*Role) GetNameOk

func (o *Role) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*Role) GetPermissions

func (o *Role) GetPermissions() []Permission

GetPermissions returns the Permissions field value

func (*Role) GetPermissionsOk

func (o *Role) GetPermissionsOk() ([]Permission, bool)

GetPermissionsOk returns a tuple with the Permissions field value and a boolean to check if the value has been set.

func (*Role) HasEtag

func (o *Role) HasEtag() bool

HasEtag returns a boolean if a field has been set.

func (*Role) HasId

func (o *Role) HasId() bool

HasId returns a boolean if a field has been set.

func (Role) MarshalJSON

func (o Role) MarshalJSON() ([]byte, error)

func (*Role) SetDescription

func (o *Role) SetDescription(v string)

SetDescription sets field value

func (*Role) SetEtag

func (o *Role) SetEtag(v string)

SetEtag gets a reference to the given string and assigns it to the Etag field.

func (*Role) SetId

func (o *Role) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*Role) SetName

func (o *Role) SetName(v string)

SetName sets field value

func (*Role) SetPermissions

func (o *Role) SetPermissions(v []Permission)

SetPermissions sets field value

func (Role) ToMap

func (o Role) ToMap() (map[string]interface{}, error)

func (*Role) UnmarshalJSON

func (o *Role) UnmarshalJSON(data []byte) (err error)

type RolesResponse

type RolesResponse struct {
	ResourceId   string `json:"resourceId" validate:"regexp=^([a-zA-Z0-9\\/_|\\\\-=+@.]{1,})$"`
	ResourceType string `json:"resourceType" validate:"regexp=^[a-z](?:-?[a-z]){1,63}$"`
	Roles        []Role `json:"roles"`
}

RolesResponse struct for RolesResponse

func NewRolesResponse

func NewRolesResponse(resourceId string, resourceType string, roles []Role) *RolesResponse

NewRolesResponse instantiates a new RolesResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewRolesResponseWithDefaults

func NewRolesResponseWithDefaults() *RolesResponse

NewRolesResponseWithDefaults instantiates a new RolesResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*RolesResponse) GetResourceId

func (o *RolesResponse) GetResourceId() string

GetResourceId returns the ResourceId field value

func (*RolesResponse) GetResourceIdOk

func (o *RolesResponse) GetResourceIdOk() (*string, bool)

GetResourceIdOk returns a tuple with the ResourceId field value and a boolean to check if the value has been set.

func (*RolesResponse) GetResourceType

func (o *RolesResponse) GetResourceType() string

GetResourceType returns the ResourceType field value

func (*RolesResponse) GetResourceTypeOk

func (o *RolesResponse) GetResourceTypeOk() (*string, bool)

GetResourceTypeOk returns a tuple with the ResourceType field value and a boolean to check if the value has been set.

func (*RolesResponse) GetRoles

func (o *RolesResponse) GetRoles() []Role

GetRoles returns the Roles field value

func (*RolesResponse) GetRolesOk

func (o *RolesResponse) GetRolesOk() ([]Role, bool)

GetRolesOk returns a tuple with the Roles field value and a boolean to check if the value has been set.

func (RolesResponse) MarshalJSON

func (o RolesResponse) MarshalJSON() ([]byte, error)

func (*RolesResponse) SetResourceId

func (o *RolesResponse) SetResourceId(v string)

SetResourceId sets field value

func (*RolesResponse) SetResourceType

func (o *RolesResponse) SetResourceType(v string)

SetResourceType sets field value

func (*RolesResponse) SetRoles

func (o *RolesResponse) SetRoles(v []Role)

SetRoles sets field value

func (RolesResponse) ToMap

func (o RolesResponse) ToMap() (map[string]interface{}, error)

func (*RolesResponse) UnmarshalJSON

func (o *RolesResponse) UnmarshalJSON(data []byte) (err error)

type UpdateRolePayload

type UpdateRolePayload struct {
	Description string              `json:"description"`
	Etag        *string             `json:"etag,omitempty"`
	Name        string              `json:"name" validate:"regexp=^[a-z](?:[-.]?[a-z]){1,63}$"`
	Permissions []PermissionRequest `json:"permissions"`
}

UpdateRolePayload struct for UpdateRolePayload

func NewUpdateRolePayload

func NewUpdateRolePayload(description string, name string, permissions []PermissionRequest) *UpdateRolePayload

NewUpdateRolePayload instantiates a new UpdateRolePayload object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewUpdateRolePayloadWithDefaults

func NewUpdateRolePayloadWithDefaults() *UpdateRolePayload

NewUpdateRolePayloadWithDefaults instantiates a new UpdateRolePayload object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*UpdateRolePayload) GetDescription

func (o *UpdateRolePayload) GetDescription() string

GetDescription returns the Description field value

func (*UpdateRolePayload) GetDescriptionOk

func (o *UpdateRolePayload) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value and a boolean to check if the value has been set.

func (*UpdateRolePayload) GetEtag

func (o *UpdateRolePayload) GetEtag() string

GetEtag returns the Etag field value if set, zero value otherwise.

func (*UpdateRolePayload) GetEtagOk

func (o *UpdateRolePayload) GetEtagOk() (*string, bool)

GetEtagOk returns a tuple with the Etag field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UpdateRolePayload) GetName

func (o *UpdateRolePayload) GetName() string

GetName returns the Name field value

func (*UpdateRolePayload) GetNameOk

func (o *UpdateRolePayload) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*UpdateRolePayload) GetPermissions

func (o *UpdateRolePayload) GetPermissions() []PermissionRequest

GetPermissions returns the Permissions field value

func (*UpdateRolePayload) GetPermissionsOk

func (o *UpdateRolePayload) GetPermissionsOk() ([]PermissionRequest, bool)

GetPermissionsOk returns a tuple with the Permissions field value and a boolean to check if the value has been set.

func (*UpdateRolePayload) HasEtag

func (o *UpdateRolePayload) HasEtag() bool

HasEtag returns a boolean if a field has been set.

func (UpdateRolePayload) MarshalJSON

func (o UpdateRolePayload) MarshalJSON() ([]byte, error)

func (*UpdateRolePayload) SetDescription

func (o *UpdateRolePayload) SetDescription(v string)

SetDescription sets field value

func (*UpdateRolePayload) SetEtag

func (o *UpdateRolePayload) SetEtag(v string)

SetEtag gets a reference to the given string and assigns it to the Etag field.

func (*UpdateRolePayload) SetName

func (o *UpdateRolePayload) SetName(v string)

SetName sets field value

func (*UpdateRolePayload) SetPermissions

func (o *UpdateRolePayload) SetPermissions(v []PermissionRequest)

SetPermissions sets field value

func (UpdateRolePayload) ToMap

func (o UpdateRolePayload) ToMap() (map[string]interface{}, error)

func (*UpdateRolePayload) UnmarshalJSON

func (o *UpdateRolePayload) UnmarshalJSON(data []byte) (err error)

type UpdateRoleResponse

type UpdateRoleResponse struct {
	ResourceId   string `json:"resourceId" validate:"regexp=^([a-zA-Z0-9\\/_|\\\\-=+@.]{1,})$"`
	ResourceType string `json:"resourceType" validate:"regexp=^[a-z](?:-?[a-z]){1,63}$"`
	Role         Role   `json:"role"`
}

UpdateRoleResponse struct for UpdateRoleResponse

func NewUpdateRoleResponse

func NewUpdateRoleResponse(resourceId string, resourceType string, role Role) *UpdateRoleResponse

NewUpdateRoleResponse instantiates a new UpdateRoleResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewUpdateRoleResponseWithDefaults

func NewUpdateRoleResponseWithDefaults() *UpdateRoleResponse

NewUpdateRoleResponseWithDefaults instantiates a new UpdateRoleResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*UpdateRoleResponse) GetResourceId

func (o *UpdateRoleResponse) GetResourceId() string

GetResourceId returns the ResourceId field value

func (*UpdateRoleResponse) GetResourceIdOk

func (o *UpdateRoleResponse) GetResourceIdOk() (*string, bool)

GetResourceIdOk returns a tuple with the ResourceId field value and a boolean to check if the value has been set.

func (*UpdateRoleResponse) GetResourceType

func (o *UpdateRoleResponse) GetResourceType() string

GetResourceType returns the ResourceType field value

func (*UpdateRoleResponse) GetResourceTypeOk

func (o *UpdateRoleResponse) GetResourceTypeOk() (*string, bool)

GetResourceTypeOk returns a tuple with the ResourceType field value and a boolean to check if the value has been set.

func (*UpdateRoleResponse) GetRole

func (o *UpdateRoleResponse) GetRole() Role

GetRole returns the Role field value

func (*UpdateRoleResponse) GetRoleOk

func (o *UpdateRoleResponse) GetRoleOk() (*Role, bool)

GetRoleOk returns a tuple with the Role field value and a boolean to check if the value has been set.

func (UpdateRoleResponse) MarshalJSON

func (o UpdateRoleResponse) MarshalJSON() ([]byte, error)

func (*UpdateRoleResponse) SetResourceId

func (o *UpdateRoleResponse) SetResourceId(v string)

SetResourceId sets field value

func (*UpdateRoleResponse) SetResourceType

func (o *UpdateRoleResponse) SetResourceType(v string)

SetResourceType sets field value

func (*UpdateRoleResponse) SetRole

func (o *UpdateRoleResponse) SetRole(v Role)

SetRole sets field value

func (UpdateRoleResponse) ToMap

func (o UpdateRoleResponse) ToMap() (map[string]interface{}, error)

func (*UpdateRoleResponse) UnmarshalJSON

func (o *UpdateRoleResponse) UnmarshalJSON(data []byte) (err error)

type UserMembership

type UserMembership struct {
	ResourceId   string `json:"resourceId" validate:"regexp=^([a-zA-Z0-9\\/_|\\\\-=+@.]{1,})$"`
	ResourceType string `json:"resourceType" validate:"regexp=^[a-z](?:-?[a-z]){1,63}$"`
	Role         string `json:"role" validate:"regexp=^[a-z](?:[-.]?[a-z]){1,63}$"`
	Subject      string `json:"subject"`
}

UserMembership struct for UserMembership

func NewUserMembership

func NewUserMembership(resourceId string, resourceType string, role string, subject string) *UserMembership

NewUserMembership instantiates a new UserMembership object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewUserMembershipWithDefaults

func NewUserMembershipWithDefaults() *UserMembership

NewUserMembershipWithDefaults instantiates a new UserMembership object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*UserMembership) GetResourceId

func (o *UserMembership) GetResourceId() string

GetResourceId returns the ResourceId field value

func (*UserMembership) GetResourceIdOk

func (o *UserMembership) GetResourceIdOk() (*string, bool)

GetResourceIdOk returns a tuple with the ResourceId field value and a boolean to check if the value has been set.

func (*UserMembership) GetResourceType

func (o *UserMembership) GetResourceType() string

GetResourceType returns the ResourceType field value

func (*UserMembership) GetResourceTypeOk

func (o *UserMembership) GetResourceTypeOk() (*string, bool)

GetResourceTypeOk returns a tuple with the ResourceType field value and a boolean to check if the value has been set.

func (*UserMembership) GetRole

func (o *UserMembership) GetRole() string

GetRole returns the Role field value

func (*UserMembership) GetRoleOk

func (o *UserMembership) GetRoleOk() (*string, bool)

GetRoleOk returns a tuple with the Role field value and a boolean to check if the value has been set.

func (*UserMembership) GetSubject

func (o *UserMembership) GetSubject() string

GetSubject returns the Subject field value

func (*UserMembership) GetSubjectOk

func (o *UserMembership) GetSubjectOk() (*string, bool)

GetSubjectOk returns a tuple with the Subject field value and a boolean to check if the value has been set.

func (UserMembership) MarshalJSON

func (o UserMembership) MarshalJSON() ([]byte, error)

func (*UserMembership) SetResourceId

func (o *UserMembership) SetResourceId(v string)

SetResourceId sets field value

func (*UserMembership) SetResourceType

func (o *UserMembership) SetResourceType(v string)

SetResourceType sets field value

func (*UserMembership) SetRole

func (o *UserMembership) SetRole(v string)

SetRole sets field value

func (*UserMembership) SetSubject

func (o *UserMembership) SetSubject(v string)

SetSubject sets field value

func (UserMembership) ToMap

func (o UserMembership) ToMap() (map[string]interface{}, error)

func (*UserMembership) UnmarshalJSON

func (o *UserMembership) UnmarshalJSON(data []byte) (err error)

type UserPermission

type UserPermission struct {
	Permissions  []ExistingPermission `json:"permissions"`
	ResourceId   string               `json:"resourceId" validate:"regexp=^([a-zA-Z0-9\\/_|\\\\-=+@.]{1,})$"`
	ResourceType string               `json:"resourceType" validate:"regexp=^[a-z](?:-?[a-z]){1,63}$"`
}

UserPermission struct for UserPermission

func NewUserPermission

func NewUserPermission(permissions []ExistingPermission, resourceId string, resourceType string) *UserPermission

NewUserPermission instantiates a new UserPermission object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewUserPermissionWithDefaults

func NewUserPermissionWithDefaults() *UserPermission

NewUserPermissionWithDefaults instantiates a new UserPermission object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*UserPermission) GetPermissions

func (o *UserPermission) GetPermissions() []ExistingPermission

GetPermissions returns the Permissions field value

func (*UserPermission) GetPermissionsOk

func (o *UserPermission) GetPermissionsOk() ([]ExistingPermission, bool)

GetPermissionsOk returns a tuple with the Permissions field value and a boolean to check if the value has been set.

func (*UserPermission) GetResourceId

func (o *UserPermission) GetResourceId() string

GetResourceId returns the ResourceId field value

func (*UserPermission) GetResourceIdOk

func (o *UserPermission) GetResourceIdOk() (*string, bool)

GetResourceIdOk returns a tuple with the ResourceId field value and a boolean to check if the value has been set.

func (*UserPermission) GetResourceType

func (o *UserPermission) GetResourceType() string

GetResourceType returns the ResourceType field value

func (*UserPermission) GetResourceTypeOk

func (o *UserPermission) GetResourceTypeOk() (*string, bool)

GetResourceTypeOk returns a tuple with the ResourceType field value and a boolean to check if the value has been set.

func (UserPermission) MarshalJSON

func (o UserPermission) MarshalJSON() ([]byte, error)

func (*UserPermission) SetPermissions

func (o *UserPermission) SetPermissions(v []ExistingPermission)

SetPermissions sets field value

func (*UserPermission) SetResourceId

func (o *UserPermission) SetResourceId(v string)

SetResourceId sets field value

func (*UserPermission) SetResourceType

func (o *UserPermission) SetResourceType(v string)

SetResourceType sets field value

func (UserPermission) ToMap

func (o UserPermission) ToMap() (map[string]interface{}, error)

func (*UserPermission) UnmarshalJSON

func (o *UserPermission) UnmarshalJSON(data []byte) (err error)

type Zookie

type Zookie struct {
	Zookie *string `json:"zookie,omitempty"`
}

Zookie struct for Zookie

func NewZookie

func NewZookie() *Zookie

NewZookie instantiates a new Zookie object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewZookieWithDefaults

func NewZookieWithDefaults() *Zookie

NewZookieWithDefaults instantiates a new Zookie object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Zookie) GetZookie

func (o *Zookie) GetZookie() string

GetZookie returns the Zookie field value if set, zero value otherwise.

func (*Zookie) GetZookieOk

func (o *Zookie) GetZookieOk() (*string, bool)

GetZookieOk returns a tuple with the Zookie field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Zookie) HasZookie

func (o *Zookie) HasZookie() bool

HasZookie returns a boolean if a field has been set.

func (Zookie) MarshalJSON

func (o Zookie) MarshalJSON() ([]byte, error)

func (*Zookie) SetZookie

func (o *Zookie) SetZookie(v string)

SetZookie gets a reference to the given string and assigns it to the Zookie field.

func (Zookie) ToMap

func (o Zookie) ToMap() (map[string]interface{}, error)

Jump to

Keyboard shortcuts

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