Documentation ¶
Overview ¶
Package aponoapi provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version v1.12.4 DO NOT EDIT.
Index ¶
- Constants
- Variables
- func CreateContext(ctx context.Context, client *AponoClient) context.Context
- func NewCreateAccessFlowRequest(server string, body CreateAccessFlowJSONRequestBody) (*http.Request, error)
- func NewCreateAccessFlowRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateAccessRequestRequest(server string, body CreateAccessRequestJSONRequestBody) (*http.Request, error)
- func NewCreateAccessRequestRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateIntegrationV2Request(server string, body CreateIntegrationV2JSONRequestBody) (*http.Request, error)
- func NewCreateIntegrationV2RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteAccessFlowRequest(server string, id string) (*http.Request, error)
- func NewDeleteIntegrationV2Request(server string, id string) (*http.Request, error)
- func NewGetAccessFlowRequest(server string, id string) (*http.Request, error)
- func NewGetAccessRequestDetailsRequest(server string, id string) (*http.Request, error)
- func NewGetAccessRequestRequest(server string, id string) (*http.Request, error)
- func NewGetIntegrationConfigRequest(server string, pType string) (*http.Request, error)
- func NewGetIntegrationPermissionsRequest(server string, id string) (*http.Request, error)
- func NewGetIntegrationResourcesRequest(server string, id string) (*http.Request, error)
- func NewGetIntegrationV2Request(server string, id string) (*http.Request, error)
- func NewGetSelectableIntegrationsRequest(server string, params *GetSelectableIntegrationsParams) (*http.Request, error)
- func NewGetSelectablePermissionsRequest(server string, integrationId string, params *GetSelectablePermissionsParams) (*http.Request, error)
- func NewGetSelectableResourcesRequest(server string, integrationId string, params *GetSelectableResourcesParams) (*http.Request, error)
- func NewGetUserRequest(server string, id string) (*http.Request, error)
- func NewListAccessFlowsRequest(server string, params *ListAccessFlowsParams) (*http.Request, error)
- func NewListAccessRequestsRequest(server string, params *ListAccessRequestsParams) (*http.Request, error)
- func NewListActivityRequest(server string, params *ListActivityParams) (*http.Request, error)
- func NewListConnectorsRequest(server string) (*http.Request, error)
- func NewListIdentitiesRequest(server string) (*http.Request, error)
- func NewListIntegrationConfigsRequest(server string) (*http.Request, error)
- func NewListIntegrationsV2Request(server string) (*http.Request, error)
- func NewListUsersRequest(server string) (*http.Request, error)
- func NewRefreshIntegrationV2Request(server string, id string) (*http.Request, error)
- func NewRefreshableTokenSource(ctx context.Context, cfg oauth2.Config, token *oauth2.Token, f TokenUpdateFunc) oauth2.TokenSource
- func NewResetAccessRequestCredentialsRequest(server string, id string) (*http.Request, error)
- func NewUpdateAccessFlowRequest(server string, id string, body UpdateAccessFlowJSONRequestBody) (*http.Request, error)
- func NewUpdateAccessFlowRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateIntegrationV2Request(server string, id string, body UpdateIntegrationV2JSONRequestBody) (*http.Request, error)
- func NewUpdateIntegrationV2RequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
- type AccessFlowFilterResult
- type AccessFlowModelV3
- type AccessRequest
- type AccessStatus
- type AccessStatusModel
- type AccessTargetModelV3
- type ActivityReportJsonExportModel
- type AponoClient
- type ApproverModel
- type ApproverTypeModel
- type Client
- func (c *Client) CreateAccessFlow(ctx context.Context, body CreateAccessFlowJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateAccessFlowWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateAccessRequest(ctx context.Context, body CreateAccessRequestJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateAccessRequestWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateIntegrationV2(ctx context.Context, body CreateIntegrationV2JSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateIntegrationV2WithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteAccessFlow(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteIntegrationV2(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetAccessFlow(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetAccessRequest(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetAccessRequestDetails(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetIntegrationConfig(ctx context.Context, pType string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetIntegrationPermissions(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetIntegrationResources(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetIntegrationV2(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetSelectableIntegrations(ctx context.Context, params *GetSelectableIntegrationsParams, ...) (*http.Response, error)
- func (c *Client) GetSelectablePermissions(ctx context.Context, integrationId string, ...) (*http.Response, error)
- func (c *Client) GetSelectableResources(ctx context.Context, integrationId string, ...) (*http.Response, error)
- func (c *Client) GetUser(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListAccessFlows(ctx context.Context, params *ListAccessFlowsParams, ...) (*http.Response, error)
- func (c *Client) ListAccessRequests(ctx context.Context, params *ListAccessRequestsParams, ...) (*http.Response, error)
- func (c *Client) ListActivity(ctx context.Context, params *ListActivityParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListConnectors(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListIdentities(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListIntegrationConfigs(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListIntegrationsV2(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListUsers(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) RefreshIntegrationV2(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ResetAccessRequestCredentials(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) UpdateAccessFlow(ctx context.Context, id string, body UpdateAccessFlowJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateAccessFlowWithBody(ctx context.Context, id string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateIntegrationV2(ctx context.Context, id string, body UpdateIntegrationV2JSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateIntegrationV2WithBody(ctx context.Context, id string, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) CreateAccessFlowWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateAccessFlowResponse, error)
- func (c *ClientWithResponses) CreateAccessFlowWithResponse(ctx context.Context, body CreateAccessFlowJSONRequestBody, ...) (*CreateAccessFlowResponse, error)
- func (c *ClientWithResponses) CreateAccessRequestWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateAccessRequestResponse, error)
- func (c *ClientWithResponses) CreateAccessRequestWithResponse(ctx context.Context, body CreateAccessRequestJSONRequestBody, ...) (*CreateAccessRequestResponse, error)
- func (c *ClientWithResponses) CreateIntegrationV2WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateIntegrationV2Response, error)
- func (c *ClientWithResponses) CreateIntegrationV2WithResponse(ctx context.Context, body CreateIntegrationV2JSONRequestBody, ...) (*CreateIntegrationV2Response, error)
- func (c *ClientWithResponses) DeleteAccessFlowWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteAccessFlowResponse, error)
- func (c *ClientWithResponses) DeleteIntegrationV2WithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteIntegrationV2Response, error)
- func (c *ClientWithResponses) GetAccessFlowWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetAccessFlowResponse, error)
- func (c *ClientWithResponses) GetAccessRequestDetailsWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetAccessRequestDetailsResponse, error)
- func (c *ClientWithResponses) GetAccessRequestWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetAccessRequestResponse, error)
- func (c *ClientWithResponses) GetIntegrationConfigWithResponse(ctx context.Context, pType string, reqEditors ...RequestEditorFn) (*GetIntegrationConfigResponse, error)
- func (c *ClientWithResponses) GetIntegrationPermissionsWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetIntegrationPermissionsResponse, error)
- func (c *ClientWithResponses) GetIntegrationResourcesWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetIntegrationResourcesResponse, error)
- func (c *ClientWithResponses) GetIntegrationV2WithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetIntegrationV2Response, error)
- func (c *ClientWithResponses) GetSelectableIntegrationsWithResponse(ctx context.Context, params *GetSelectableIntegrationsParams, ...) (*GetSelectableIntegrationsResponse, error)
- func (c *ClientWithResponses) GetSelectablePermissionsWithResponse(ctx context.Context, integrationId string, ...) (*GetSelectablePermissionsResponse, error)
- func (c *ClientWithResponses) GetSelectableResourcesWithResponse(ctx context.Context, integrationId string, ...) (*GetSelectableResourcesResponse, error)
- func (c *ClientWithResponses) GetUserWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetUserResponse, error)
- func (c *ClientWithResponses) ListAccessFlowsWithResponse(ctx context.Context, params *ListAccessFlowsParams, ...) (*ListAccessFlowsResponse, error)
- func (c *ClientWithResponses) ListAccessRequestsWithResponse(ctx context.Context, params *ListAccessRequestsParams, ...) (*ListAccessRequestsResponse, error)
- func (c *ClientWithResponses) ListActivityWithResponse(ctx context.Context, params *ListActivityParams, reqEditors ...RequestEditorFn) (*ListActivityResponse, error)
- func (c *ClientWithResponses) ListConnectorsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListConnectorsResponse, error)
- func (c *ClientWithResponses) ListIdentitiesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListIdentitiesResponse, error)
- func (c *ClientWithResponses) ListIntegrationConfigsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListIntegrationConfigsResponse, error)
- func (c *ClientWithResponses) ListIntegrationsV2WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListIntegrationsV2Response, error)
- func (c *ClientWithResponses) ListUsersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListUsersResponse, error)
- func (c *ClientWithResponses) RefreshIntegrationV2WithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*RefreshIntegrationV2Response, error)
- func (c *ClientWithResponses) ResetAccessRequestCredentialsWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ResetAccessRequestCredentialsResponse, error)
- func (c *ClientWithResponses) UpdateAccessFlowWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, ...) (*UpdateAccessFlowResponse, error)
- func (c *ClientWithResponses) UpdateAccessFlowWithResponse(ctx context.Context, id string, body UpdateAccessFlowJSONRequestBody, ...) (*UpdateAccessFlowResponse, error)
- func (c *ClientWithResponses) UpdateIntegrationV2WithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, ...) (*UpdateIntegrationV2Response, error)
- func (c *ClientWithResponses) UpdateIntegrationV2WithResponse(ctx context.Context, id string, body UpdateIntegrationV2JSONRequestBody, ...) (*UpdateIntegrationV2Response, error)
- type ClientWithResponsesInterface
- type ConnectDetailsResponse
- type ConnectionMetadata
- type Connector
- type CreateAccessFlowJSONRequestBody
- type CreateAccessFlowRequestV3
- type CreateAccessFlowResponse
- type CreateAccessRequest
- type CreateAccessRequestJSONRequestBody
- type CreateAccessRequestResponse
- type CreateIntegration
- type CreateIntegrationV2JSONRequestBody
- type CreateIntegrationV2Response
- type DayOfWeek
- type DeleteAccessFlowResponse
- type DeleteIntegrationV2Response
- type FilterResult
- type FilterResultContext
- type FilterResultContextType
- type GetAccessFlowResponse
- type GetAccessRequestDetailsResponse
- type GetAccessRequestResponse
- type GetIntegrationConfigResponse
- type GetIntegrationPermissionsResponse
- type GetIntegrationResourcesResponse
- type GetIntegrationV2Response
- type GetSelectableIntegrationsParams
- type GetSelectableIntegrationsResponse
- type GetSelectablePermissionsParams
- type GetSelectablePermissionsResponse
- type GetSelectableResourcesParams
- type GetSelectableResourcesResponse
- type GetUserResponse
- type GranteeModel
- type GranteeTypeModel
- type HttpRequestDoer
- type IdentityModel2
- type Instant
- type Integration
- type IntegrationConfig
- type IntegrationConfigParam
- type IntegrationStatus
- type ListAccessFlowsParams
- type ListAccessFlowsResponse
- type ListAccessRequestsParams
- type ListAccessRequestsResponse
- type ListActivityParams
- type ListActivityResponse
- type ListConnectorsResponse
- type ListIdentitiesResponse
- type ListIntegrationConfigsResponse
- type ListIntegrationsV2Response
- type ListUsersResponse
- type MessageResponse
- type PaginatedAccessFlowV3SearchResponse
- type PaginatedResponseAccessRequestV3
- type PaginatedResponseActivityReportJsonExportModel
- type PaginatedResponseIdentityModelV2
- type PaginatedResponseIntegrationConfigPublicModel
- type PaginatedResponseIntegrationModel
- type PaginatedResponsePermissionV3Response
- type PaginatedResponseResourceV3Response
- type PaginatedResponseSelectableIntegrationV3
- type PaginatedResponseSelectableResourceV3
- type PaginatedResponseUserModel
- type PaginationInfo
- type PermissionV3
- type RefreshIntegrationV2Response
- type ReportField
- type RequestEditorFn
- type ResetAccessRequestCredentialsResponse
- type ResourceV3
- type SecretConfig
- type SelectableIntegration
- type SelectablePermissionsResponse
- type SelectableResource
- type Session
- type TagModelV3
- type Timeframe
- type TokenUpdateFunc
- type TriggerType
- type UpdateAccessFlowJSONRequestBody
- type UpdateAccessFlowModelV3
- type UpdateAccessFlowResponse
- type UpdateIntegration
- type UpdateIntegrationV2JSONRequestBody
- type UpdateIntegrationV2Response
- type UserModel
Constants ¶
const (
AuthorizationScopes = "Authorization.Scopes"
)
Variables ¶
var ( ErrClientNotConfigured = errors.New("client is not set in context") ErrIllegalContextValue = errors.New("illegal value is set in context") )
var ErrProfileNotExists = errors.New("profile not exists")
Functions ¶
func CreateContext ¶ added in v0.1.2
func CreateContext(ctx context.Context, client *AponoClient) context.Context
func NewCreateAccessFlowRequest ¶ added in v0.2.0
func NewCreateAccessFlowRequest(server string, body CreateAccessFlowJSONRequestBody) (*http.Request, error)
NewCreateAccessFlowRequest calls the generic CreateAccessFlow builder with application/json body
func NewCreateAccessFlowRequestWithBody ¶ added in v0.2.0
func NewCreateAccessFlowRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateAccessFlowRequestWithBody generates requests for CreateAccessFlow with any type of body
func NewCreateAccessRequestRequest ¶
func NewCreateAccessRequestRequest(server string, body CreateAccessRequestJSONRequestBody) (*http.Request, error)
NewCreateAccessRequestRequest calls the generic CreateAccessRequest builder with application/json body
func NewCreateAccessRequestRequestWithBody ¶
func NewCreateAccessRequestRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateAccessRequestRequestWithBody generates requests for CreateAccessRequest with any type of body
func NewCreateIntegrationV2Request ¶
func NewCreateIntegrationV2Request(server string, body CreateIntegrationV2JSONRequestBody) (*http.Request, error)
NewCreateIntegrationV2Request calls the generic CreateIntegrationV2 builder with application/json body
func NewCreateIntegrationV2RequestWithBody ¶
func NewCreateIntegrationV2RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateIntegrationV2RequestWithBody generates requests for CreateIntegrationV2 with any type of body
func NewDeleteAccessFlowRequest ¶ added in v0.2.0
NewDeleteAccessFlowRequest generates requests for DeleteAccessFlow
func NewDeleteIntegrationV2Request ¶
NewDeleteIntegrationV2Request generates requests for DeleteIntegrationV2
func NewGetAccessFlowRequest ¶ added in v0.2.0
NewGetAccessFlowRequest generates requests for GetAccessFlow
func NewGetAccessRequestDetailsRequest ¶ added in v0.2.0
NewGetAccessRequestDetailsRequest generates requests for GetAccessRequestDetails
func NewGetAccessRequestRequest ¶
NewGetAccessRequestRequest generates requests for GetAccessRequest
func NewGetIntegrationConfigRequest ¶
NewGetIntegrationConfigRequest generates requests for GetIntegrationConfig
func NewGetIntegrationPermissionsRequest ¶ added in v0.2.0
NewGetIntegrationPermissionsRequest generates requests for GetIntegrationPermissions
func NewGetIntegrationResourcesRequest ¶ added in v0.2.0
NewGetIntegrationResourcesRequest generates requests for GetIntegrationResources
func NewGetIntegrationV2Request ¶
NewGetIntegrationV2Request generates requests for GetIntegrationV2
func NewGetSelectableIntegrationsRequest ¶
func NewGetSelectableIntegrationsRequest(server string, params *GetSelectableIntegrationsParams) (*http.Request, error)
NewGetSelectableIntegrationsRequest generates requests for GetSelectableIntegrations
func NewGetSelectablePermissionsRequest ¶
func NewGetSelectablePermissionsRequest(server string, integrationId string, params *GetSelectablePermissionsParams) (*http.Request, error)
NewGetSelectablePermissionsRequest generates requests for GetSelectablePermissions
func NewGetSelectableResourcesRequest ¶
func NewGetSelectableResourcesRequest(server string, integrationId string, params *GetSelectableResourcesParams) (*http.Request, error)
NewGetSelectableResourcesRequest generates requests for GetSelectableResources
func NewGetUserRequest ¶
NewGetUserRequest generates requests for GetUser
func NewListAccessFlowsRequest ¶ added in v0.2.0
func NewListAccessFlowsRequest(server string, params *ListAccessFlowsParams) (*http.Request, error)
NewListAccessFlowsRequest generates requests for ListAccessFlows
func NewListAccessRequestsRequest ¶
func NewListAccessRequestsRequest(server string, params *ListAccessRequestsParams) (*http.Request, error)
NewListAccessRequestsRequest generates requests for ListAccessRequests
func NewListActivityRequest ¶ added in v0.2.0
func NewListActivityRequest(server string, params *ListActivityParams) (*http.Request, error)
NewListActivityRequest generates requests for ListActivity
func NewListConnectorsRequest ¶
NewListConnectorsRequest generates requests for ListConnectors
func NewListIdentitiesRequest ¶ added in v0.2.0
NewListIdentitiesRequest generates requests for ListIdentities
func NewListIntegrationConfigsRequest ¶
NewListIntegrationConfigsRequest generates requests for ListIntegrationConfigs
func NewListIntegrationsV2Request ¶
NewListIntegrationsV2Request generates requests for ListIntegrationsV2
func NewListUsersRequest ¶
NewListUsersRequest generates requests for ListUsers
func NewRefreshIntegrationV2Request ¶
NewRefreshIntegrationV2Request generates requests for RefreshIntegrationV2
func NewRefreshableTokenSource ¶
func NewRefreshableTokenSource( ctx context.Context, cfg oauth2.Config, token *oauth2.Token, f TokenUpdateFunc, ) oauth2.TokenSource
func NewResetAccessRequestCredentialsRequest ¶ added in v0.2.0
NewResetAccessRequestCredentialsRequest generates requests for ResetAccessRequestCredentials
func NewUpdateAccessFlowRequest ¶ added in v0.2.0
func NewUpdateAccessFlowRequest(server string, id string, body UpdateAccessFlowJSONRequestBody) (*http.Request, error)
NewUpdateAccessFlowRequest calls the generic UpdateAccessFlow builder with application/json body
func NewUpdateAccessFlowRequestWithBody ¶ added in v0.2.0
func NewUpdateAccessFlowRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateAccessFlowRequestWithBody generates requests for UpdateAccessFlow with any type of body
func NewUpdateIntegrationV2Request ¶
func NewUpdateIntegrationV2Request(server string, id string, body UpdateIntegrationV2JSONRequestBody) (*http.Request, error)
NewUpdateIntegrationV2Request calls the generic UpdateIntegrationV2 builder with application/json body
Types ¶
type AccessFlowFilterResult ¶ added in v0.2.0
type AccessFlowFilterResult struct { AccessFlowId string `json:"access_flow_id"` Results []FilterResult `json:"results"` }
AccessFlowFilterResult defines model for AccessFlowFilterResult.
type AccessFlowModelV3 ¶ added in v0.2.0
type AccessFlowModelV3 struct { AccessTargets []AccessTargetModelV3 `json:"access_targets"` Active bool `json:"active"` Approvers []ApproverModel `json:"approvers"` CreatedDate Instant `json:"created_date"` Grantees []GranteeModel `json:"grantees"` Id string `json:"id"` JustificationRequired bool `json:"justification_required"` Name string `json:"name"` RequireAllApprovers *bool `json:"require_all_approvers"` RevokeAfterInSec int32 `json:"revoke_after_in_sec"` Timeframe *Timeframe `json:"timeframe"` TriggerType TriggerType `json:"trigger_type"` }
AccessFlowModelV3 defines model for AccessFlowModelV3.
type AccessRequest ¶
type AccessRequest struct { FriendlyRequestId string `json:"friendly_request_id"` IntegrationId string `json:"integration_id"` Justification string `json:"justification"` Permissions []string `json:"permissions"` RequestId string `json:"request_id"` ResourceIds []string `json:"resource_ids"` Status AccessStatusModel `json:"status"` UserId string `json:"user_id"` }
AccessRequest defines model for AccessRequest.
type AccessStatus ¶ added in v0.2.0
type AccessStatus string
AccessStatus defines model for AccessStatus.
const ( AccessStatusAPPROVED AccessStatus = "APPROVED" AccessStatusEXPIRED AccessStatus = "EXPIRED" AccessStatusFAILED AccessStatus = "FAILED" AccessStatusGRANTED AccessStatus = "GRANTED" AccessStatusPENDING AccessStatus = "PENDING" AccessStatusREJECTED AccessStatus = "REJECTED" AccessStatusREVOKING AccessStatus = "REVOKING" )
Defines values for AccessStatus.
type AccessStatusModel ¶
type AccessStatusModel string
AccessStatusModel defines model for AccessStatusModel.
const ( AccessStatusModelAPPROVED AccessStatusModel = "APPROVED" AccessStatusModelEXPIRED AccessStatusModel = "EXPIRED" AccessStatusModelFAILED AccessStatusModel = "FAILED" AccessStatusModelGRANTED AccessStatusModel = "GRANTED" AccessStatusModelPENDING AccessStatusModel = "PENDING" AccessStatusModelREJECTED AccessStatusModel = "REJECTED" AccessStatusModelREVOKING AccessStatusModel = "REVOKING" )
Defines values for AccessStatusModel.
type AccessTargetModelV3 ¶ added in v0.2.0
type AccessTargetModelV3 struct { IntegrationId string `json:"integration_id"` Permissions []string `json:"permissions"` ResourceTagMatchers []TagModelV3 `json:"resource_tag_matchers"` ResourceType string `json:"resource_type"` }
AccessTargetModelV3 defines model for AccessTargetModelV3.
type ActivityReportJsonExportModel ¶ added in v0.2.0
type ActivityReportJsonExportModel struct { AccessFlow *string `json:"access_flow"` Integration *string `json:"integration"` Justification *string `json:"justification"` Permissions *[]string `json:"permissions"` RequestDate *string `json:"request_date"` RequestId *string `json:"request_id"` RequestorEmail *string `json:"requestor_email"` RequestorName *string `json:"requestor_name"` ResourceType *string `json:"resource_type"` Resources *[]string `json:"resources"` Status *string `json:"status"` }
ActivityReportJsonExportModel defines model for ActivityReportJsonExportModel.
type AponoClient ¶
type AponoClient struct { *ClientWithResponses Session *Session }
func CreateClient ¶
func CreateClient(ctx context.Context, profileName string) (*AponoClient, error)
type ApproverModel ¶ added in v0.2.0
type ApproverModel struct { Id string `json:"id"` Type ApproverTypeModel `json:"type"` }
ApproverModel defines model for ApproverModel.
type ApproverTypeModel ¶ added in v0.2.0
type ApproverTypeModel string
ApproverTypeModel defines model for ApproverTypeModel.
const ( ApproverTypeModelCONTEXTATTRIBUTE ApproverTypeModel = "CONTEXT_ATTRIBUTE" ApproverTypeModelGROUP ApproverTypeModel = "GROUP" ApproverTypeModelUSER ApproverTypeModel = "USER" )
Defines values for ApproverTypeModel.
type Client ¶
type Client struct { // The endpoint of the server conforming to this interface, with scheme, // https://api.deepmap.com for example. This can contain a path relative // to the server, such as https://api.deepmap.com/dev-test, and all the // paths in the swagger spec will be appended to the server. Server string // Doer for performing requests, typically a *http.Client with any // customized settings, such as certificate chains. Client HttpRequestDoer // A list of callbacks for modifying requests which are generated before sending over // the network. RequestEditors []RequestEditorFn }
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) CreateAccessFlow ¶ added in v0.2.0
func (c *Client) CreateAccessFlow(ctx context.Context, body CreateAccessFlowJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateAccessFlowWithBody ¶ added in v0.2.0
func (*Client) CreateAccessRequest ¶
func (c *Client) CreateAccessRequest(ctx context.Context, body CreateAccessRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateAccessRequestWithBody ¶
func (*Client) CreateIntegrationV2 ¶
func (c *Client) CreateIntegrationV2(ctx context.Context, body CreateIntegrationV2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateIntegrationV2WithBody ¶
func (*Client) DeleteAccessFlow ¶ added in v0.2.0
func (*Client) DeleteIntegrationV2 ¶
func (*Client) GetAccessFlow ¶ added in v0.2.0
func (*Client) GetAccessRequest ¶
func (*Client) GetAccessRequestDetails ¶ added in v0.2.0
func (*Client) GetIntegrationConfig ¶
func (*Client) GetIntegrationPermissions ¶ added in v0.2.0
func (*Client) GetIntegrationResources ¶ added in v0.2.0
func (*Client) GetIntegrationV2 ¶
func (*Client) GetSelectableIntegrations ¶
func (c *Client) GetSelectableIntegrations(ctx context.Context, params *GetSelectableIntegrationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetSelectablePermissions ¶
func (c *Client) GetSelectablePermissions(ctx context.Context, integrationId string, params *GetSelectablePermissionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetSelectableResources ¶
func (c *Client) GetSelectableResources(ctx context.Context, integrationId string, params *GetSelectableResourcesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListAccessFlows ¶ added in v0.2.0
func (c *Client) ListAccessFlows(ctx context.Context, params *ListAccessFlowsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListAccessRequests ¶
func (c *Client) ListAccessRequests(ctx context.Context, params *ListAccessRequestsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListActivity ¶ added in v0.2.0
func (c *Client) ListActivity(ctx context.Context, params *ListActivityParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListConnectors ¶
func (*Client) ListIdentities ¶ added in v0.2.0
func (*Client) ListIntegrationConfigs ¶
func (*Client) ListIntegrationsV2 ¶
func (*Client) RefreshIntegrationV2 ¶
func (*Client) ResetAccessRequestCredentials ¶ added in v0.2.0
func (*Client) UpdateAccessFlow ¶ added in v0.2.0
func (c *Client) UpdateAccessFlow(ctx context.Context, id string, body UpdateAccessFlowJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateAccessFlowWithBody ¶ added in v0.2.0
func (*Client) UpdateIntegrationV2 ¶
func (c *Client) UpdateIntegrationV2(ctx context.Context, id string, body UpdateIntegrationV2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface { // ListConnectors request ListConnectors(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // ListIdentities request ListIdentities(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // ListIntegrationsV2 request ListIntegrationsV2(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateIntegrationV2 request with any body CreateIntegrationV2WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) CreateIntegrationV2(ctx context.Context, body CreateIntegrationV2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // ListIntegrationConfigs request ListIntegrationConfigs(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // GetIntegrationConfig request GetIntegrationConfig(ctx context.Context, pType string, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteIntegrationV2 request DeleteIntegrationV2(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetIntegrationV2 request GetIntegrationV2(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateIntegrationV2 request with any body UpdateIntegrationV2WithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) UpdateIntegrationV2(ctx context.Context, id string, body UpdateIntegrationV2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // RefreshIntegrationV2 request RefreshIntegrationV2(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) // ListUsers request ListUsers(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // GetUser request GetUser(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) // ListAccessFlows request ListAccessFlows(ctx context.Context, params *ListAccessFlowsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateAccessFlow request with any body CreateAccessFlowWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) CreateAccessFlow(ctx context.Context, body CreateAccessFlowJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteAccessFlow request DeleteAccessFlow(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetAccessFlow request GetAccessFlow(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateAccessFlow request with any body UpdateAccessFlowWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) UpdateAccessFlow(ctx context.Context, id string, body UpdateAccessFlowJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // ListAccessRequests request ListAccessRequests(ctx context.Context, params *ListAccessRequestsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateAccessRequest request with any body CreateAccessRequestWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) CreateAccessRequest(ctx context.Context, body CreateAccessRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetAccessRequest request GetAccessRequest(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetAccessRequestDetails request GetAccessRequestDetails(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) // ResetAccessRequestCredentials request ResetAccessRequestCredentials(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) // ListActivity request ListActivity(ctx context.Context, params *ListActivityParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetIntegrationPermissions request GetIntegrationPermissions(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetIntegrationResources request GetIntegrationResources(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetSelectableIntegrations request GetSelectableIntegrations(ctx context.Context, params *GetSelectableIntegrationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetSelectablePermissions request GetSelectablePermissions(ctx context.Context, integrationId string, params *GetSelectablePermissionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetSelectableResources request GetSelectableResources(ctx context.Context, integrationId string, params *GetSelectableResourcesParams, reqEditors ...RequestEditorFn) (*http.Response, error) }
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) CreateAccessFlowWithBodyWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) CreateAccessFlowWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAccessFlowResponse, error)
CreateAccessFlowWithBodyWithResponse request with arbitrary body returning *CreateAccessFlowResponse
func (*ClientWithResponses) CreateAccessFlowWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) CreateAccessFlowWithResponse(ctx context.Context, body CreateAccessFlowJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAccessFlowResponse, error)
func (*ClientWithResponses) CreateAccessRequestWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateAccessRequestWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAccessRequestResponse, error)
CreateAccessRequestWithBodyWithResponse request with arbitrary body returning *CreateAccessRequestResponse
func (*ClientWithResponses) CreateAccessRequestWithResponse ¶
func (c *ClientWithResponses) CreateAccessRequestWithResponse(ctx context.Context, body CreateAccessRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAccessRequestResponse, error)
func (*ClientWithResponses) CreateIntegrationV2WithBodyWithResponse ¶
func (c *ClientWithResponses) CreateIntegrationV2WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateIntegrationV2Response, error)
CreateIntegrationV2WithBodyWithResponse request with arbitrary body returning *CreateIntegrationV2Response
func (*ClientWithResponses) CreateIntegrationV2WithResponse ¶
func (c *ClientWithResponses) CreateIntegrationV2WithResponse(ctx context.Context, body CreateIntegrationV2JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateIntegrationV2Response, error)
func (*ClientWithResponses) DeleteAccessFlowWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) DeleteAccessFlowWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteAccessFlowResponse, error)
DeleteAccessFlowWithResponse request returning *DeleteAccessFlowResponse
func (*ClientWithResponses) DeleteIntegrationV2WithResponse ¶
func (c *ClientWithResponses) DeleteIntegrationV2WithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteIntegrationV2Response, error)
DeleteIntegrationV2WithResponse request returning *DeleteIntegrationV2Response
func (*ClientWithResponses) GetAccessFlowWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) GetAccessFlowWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetAccessFlowResponse, error)
GetAccessFlowWithResponse request returning *GetAccessFlowResponse
func (*ClientWithResponses) GetAccessRequestDetailsWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) GetAccessRequestDetailsWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetAccessRequestDetailsResponse, error)
GetAccessRequestDetailsWithResponse request returning *GetAccessRequestDetailsResponse
func (*ClientWithResponses) GetAccessRequestWithResponse ¶
func (c *ClientWithResponses) GetAccessRequestWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetAccessRequestResponse, error)
GetAccessRequestWithResponse request returning *GetAccessRequestResponse
func (*ClientWithResponses) GetIntegrationConfigWithResponse ¶
func (c *ClientWithResponses) GetIntegrationConfigWithResponse(ctx context.Context, pType string, reqEditors ...RequestEditorFn) (*GetIntegrationConfigResponse, error)
GetIntegrationConfigWithResponse request returning *GetIntegrationConfigResponse
func (*ClientWithResponses) GetIntegrationPermissionsWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) GetIntegrationPermissionsWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetIntegrationPermissionsResponse, error)
GetIntegrationPermissionsWithResponse request returning *GetIntegrationPermissionsResponse
func (*ClientWithResponses) GetIntegrationResourcesWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) GetIntegrationResourcesWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetIntegrationResourcesResponse, error)
GetIntegrationResourcesWithResponse request returning *GetIntegrationResourcesResponse
func (*ClientWithResponses) GetIntegrationV2WithResponse ¶
func (c *ClientWithResponses) GetIntegrationV2WithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetIntegrationV2Response, error)
GetIntegrationV2WithResponse request returning *GetIntegrationV2Response
func (*ClientWithResponses) GetSelectableIntegrationsWithResponse ¶
func (c *ClientWithResponses) GetSelectableIntegrationsWithResponse(ctx context.Context, params *GetSelectableIntegrationsParams, reqEditors ...RequestEditorFn) (*GetSelectableIntegrationsResponse, error)
GetSelectableIntegrationsWithResponse request returning *GetSelectableIntegrationsResponse
func (*ClientWithResponses) GetSelectablePermissionsWithResponse ¶
func (c *ClientWithResponses) GetSelectablePermissionsWithResponse(ctx context.Context, integrationId string, params *GetSelectablePermissionsParams, reqEditors ...RequestEditorFn) (*GetSelectablePermissionsResponse, error)
GetSelectablePermissionsWithResponse request returning *GetSelectablePermissionsResponse
func (*ClientWithResponses) GetSelectableResourcesWithResponse ¶
func (c *ClientWithResponses) GetSelectableResourcesWithResponse(ctx context.Context, integrationId string, params *GetSelectableResourcesParams, reqEditors ...RequestEditorFn) (*GetSelectableResourcesResponse, error)
GetSelectableResourcesWithResponse request returning *GetSelectableResourcesResponse
func (*ClientWithResponses) GetUserWithResponse ¶
func (c *ClientWithResponses) GetUserWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetUserResponse, error)
GetUserWithResponse request returning *GetUserResponse
func (*ClientWithResponses) ListAccessFlowsWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) ListAccessFlowsWithResponse(ctx context.Context, params *ListAccessFlowsParams, reqEditors ...RequestEditorFn) (*ListAccessFlowsResponse, error)
ListAccessFlowsWithResponse request returning *ListAccessFlowsResponse
func (*ClientWithResponses) ListAccessRequestsWithResponse ¶
func (c *ClientWithResponses) ListAccessRequestsWithResponse(ctx context.Context, params *ListAccessRequestsParams, reqEditors ...RequestEditorFn) (*ListAccessRequestsResponse, error)
ListAccessRequestsWithResponse request returning *ListAccessRequestsResponse
func (*ClientWithResponses) ListActivityWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) ListActivityWithResponse(ctx context.Context, params *ListActivityParams, reqEditors ...RequestEditorFn) (*ListActivityResponse, error)
ListActivityWithResponse request returning *ListActivityResponse
func (*ClientWithResponses) ListConnectorsWithResponse ¶
func (c *ClientWithResponses) ListConnectorsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListConnectorsResponse, error)
ListConnectorsWithResponse request returning *ListConnectorsResponse
func (*ClientWithResponses) ListIdentitiesWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) ListIdentitiesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListIdentitiesResponse, error)
ListIdentitiesWithResponse request returning *ListIdentitiesResponse
func (*ClientWithResponses) ListIntegrationConfigsWithResponse ¶
func (c *ClientWithResponses) ListIntegrationConfigsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListIntegrationConfigsResponse, error)
ListIntegrationConfigsWithResponse request returning *ListIntegrationConfigsResponse
func (*ClientWithResponses) ListIntegrationsV2WithResponse ¶
func (c *ClientWithResponses) ListIntegrationsV2WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListIntegrationsV2Response, error)
ListIntegrationsV2WithResponse request returning *ListIntegrationsV2Response
func (*ClientWithResponses) ListUsersWithResponse ¶
func (c *ClientWithResponses) ListUsersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListUsersResponse, error)
ListUsersWithResponse request returning *ListUsersResponse
func (*ClientWithResponses) RefreshIntegrationV2WithResponse ¶
func (c *ClientWithResponses) RefreshIntegrationV2WithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*RefreshIntegrationV2Response, error)
RefreshIntegrationV2WithResponse request returning *RefreshIntegrationV2Response
func (*ClientWithResponses) ResetAccessRequestCredentialsWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) ResetAccessRequestCredentialsWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ResetAccessRequestCredentialsResponse, error)
ResetAccessRequestCredentialsWithResponse request returning *ResetAccessRequestCredentialsResponse
func (*ClientWithResponses) UpdateAccessFlowWithBodyWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) UpdateAccessFlowWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAccessFlowResponse, error)
UpdateAccessFlowWithBodyWithResponse request with arbitrary body returning *UpdateAccessFlowResponse
func (*ClientWithResponses) UpdateAccessFlowWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) UpdateAccessFlowWithResponse(ctx context.Context, id string, body UpdateAccessFlowJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAccessFlowResponse, error)
func (*ClientWithResponses) UpdateIntegrationV2WithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateIntegrationV2WithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateIntegrationV2Response, error)
UpdateIntegrationV2WithBodyWithResponse request with arbitrary body returning *UpdateIntegrationV2Response
func (*ClientWithResponses) UpdateIntegrationV2WithResponse ¶
func (c *ClientWithResponses) UpdateIntegrationV2WithResponse(ctx context.Context, id string, body UpdateIntegrationV2JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateIntegrationV2Response, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface { // ListConnectors request ListConnectorsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListConnectorsResponse, error) // ListIdentities request ListIdentitiesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListIdentitiesResponse, error) // ListIntegrationsV2 request ListIntegrationsV2WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListIntegrationsV2Response, error) // CreateIntegrationV2 request with any body CreateIntegrationV2WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateIntegrationV2Response, error) CreateIntegrationV2WithResponse(ctx context.Context, body CreateIntegrationV2JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateIntegrationV2Response, error) // ListIntegrationConfigs request ListIntegrationConfigsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListIntegrationConfigsResponse, error) // GetIntegrationConfig request GetIntegrationConfigWithResponse(ctx context.Context, pType string, reqEditors ...RequestEditorFn) (*GetIntegrationConfigResponse, error) // DeleteIntegrationV2 request DeleteIntegrationV2WithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteIntegrationV2Response, error) // GetIntegrationV2 request GetIntegrationV2WithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetIntegrationV2Response, error) // UpdateIntegrationV2 request with any body UpdateIntegrationV2WithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateIntegrationV2Response, error) UpdateIntegrationV2WithResponse(ctx context.Context, id string, body UpdateIntegrationV2JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateIntegrationV2Response, error) // RefreshIntegrationV2 request RefreshIntegrationV2WithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*RefreshIntegrationV2Response, error) // ListUsers request ListUsersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListUsersResponse, error) // GetUser request GetUserWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetUserResponse, error) // ListAccessFlows request ListAccessFlowsWithResponse(ctx context.Context, params *ListAccessFlowsParams, reqEditors ...RequestEditorFn) (*ListAccessFlowsResponse, error) // CreateAccessFlow request with any body CreateAccessFlowWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAccessFlowResponse, error) CreateAccessFlowWithResponse(ctx context.Context, body CreateAccessFlowJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAccessFlowResponse, error) // DeleteAccessFlow request DeleteAccessFlowWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteAccessFlowResponse, error) // GetAccessFlow request GetAccessFlowWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetAccessFlowResponse, error) // UpdateAccessFlow request with any body UpdateAccessFlowWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAccessFlowResponse, error) UpdateAccessFlowWithResponse(ctx context.Context, id string, body UpdateAccessFlowJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAccessFlowResponse, error) // ListAccessRequests request ListAccessRequestsWithResponse(ctx context.Context, params *ListAccessRequestsParams, reqEditors ...RequestEditorFn) (*ListAccessRequestsResponse, error) // CreateAccessRequest request with any body CreateAccessRequestWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAccessRequestResponse, error) CreateAccessRequestWithResponse(ctx context.Context, body CreateAccessRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAccessRequestResponse, error) // GetAccessRequest request GetAccessRequestWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetAccessRequestResponse, error) // GetAccessRequestDetails request GetAccessRequestDetailsWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetAccessRequestDetailsResponse, error) // ResetAccessRequestCredentials request ResetAccessRequestCredentialsWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ResetAccessRequestCredentialsResponse, error) // ListActivity request ListActivityWithResponse(ctx context.Context, params *ListActivityParams, reqEditors ...RequestEditorFn) (*ListActivityResponse, error) // GetIntegrationPermissions request GetIntegrationPermissionsWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetIntegrationPermissionsResponse, error) // GetIntegrationResources request GetIntegrationResourcesWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetIntegrationResourcesResponse, error) // GetSelectableIntegrations request GetSelectableIntegrationsWithResponse(ctx context.Context, params *GetSelectableIntegrationsParams, reqEditors ...RequestEditorFn) (*GetSelectableIntegrationsResponse, error) // GetSelectablePermissions request GetSelectablePermissionsWithResponse(ctx context.Context, integrationId string, params *GetSelectablePermissionsParams, reqEditors ...RequestEditorFn) (*GetSelectablePermissionsResponse, error) // GetSelectableResources request GetSelectableResourcesWithResponse(ctx context.Context, integrationId string, params *GetSelectableResourcesParams, reqEditors ...RequestEditorFn) (*GetSelectableResourcesResponse, error) }
ClientWithResponsesInterface is the interface specification for the client with responses above.
type ConnectDetailsResponse ¶ added in v0.2.0
type ConnectDetailsResponse struct {
Details string `json:"details"`
}
ConnectDetailsResponse defines model for ConnectDetailsResponse.
type ConnectionMetadata ¶
type ConnectionMetadata = map[string]interface{}
ConnectionMetadata defines model for ConnectionMetadata.
type Connector ¶
type Connector struct { ConnectorId string `json:"connector_id"` LastConnected *Instant `json:"last_connected"` Status string `json:"status"` }
Connector defines model for Connector.
type CreateAccessFlowJSONRequestBody ¶ added in v0.2.0
type CreateAccessFlowJSONRequestBody = CreateAccessFlowRequestV3
CreateAccessFlowJSONRequestBody defines body for CreateAccessFlow for application/json ContentType.
type CreateAccessFlowRequestV3 ¶ added in v0.2.0
type CreateAccessFlowRequestV3 struct { AccessTargets []AccessTargetModelV3 `json:"access_targets"` Active bool `json:"active"` Approvers []ApproverModel `json:"approvers"` Grantees []GranteeModel `json:"grantees"` JustificationRequired bool `json:"justification_required"` Name string `json:"name"` RequireAllApprovers *bool `json:"require_all_approvers"` RevokeAfterInSec int32 `json:"revoke_after_in_sec"` Timeframe *Timeframe `json:"timeframe"` TriggerType TriggerType `json:"trigger_type"` }
CreateAccessFlowRequestV3 defines model for CreateAccessFlowRequestV3.
type CreateAccessFlowResponse ¶ added in v0.2.0
type CreateAccessFlowResponse struct { Body []byte HTTPResponse *http.Response JSON200 *AccessFlowModelV3 }
func ParseCreateAccessFlowResponse ¶ added in v0.2.0
func ParseCreateAccessFlowResponse(rsp *http.Response) (*CreateAccessFlowResponse, error)
ParseCreateAccessFlowResponse parses an HTTP response from a CreateAccessFlowWithResponse call
func (CreateAccessFlowResponse) Status ¶ added in v0.2.0
func (r CreateAccessFlowResponse) Status() string
Status returns HTTPResponse.Status
func (CreateAccessFlowResponse) StatusCode ¶ added in v0.2.0
func (r CreateAccessFlowResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateAccessRequest ¶
type CreateAccessRequest struct { IntegrationId string `json:"integration_id"` Justification string `json:"justification"` Permissions []string `json:"permissions"` ResourceIds []string `json:"resource_ids"` UserId string `json:"user_id"` }
CreateAccessRequest defines model for CreateAccessRequest.
type CreateAccessRequestJSONRequestBody ¶
type CreateAccessRequestJSONRequestBody = CreateAccessRequest
CreateAccessRequestJSONRequestBody defines body for CreateAccessRequest for application/json ContentType.
type CreateAccessRequestResponse ¶
type CreateAccessRequestResponse struct { Body []byte HTTPResponse *http.Response JSON200 *AccessRequest }
func ParseCreateAccessRequestResponse ¶
func ParseCreateAccessRequestResponse(rsp *http.Response) (*CreateAccessRequestResponse, error)
ParseCreateAccessRequestResponse parses an HTTP response from a CreateAccessRequestWithResponse call
func (CreateAccessRequestResponse) Status ¶
func (r CreateAccessRequestResponse) Status() string
Status returns HTTPResponse.Status
func (CreateAccessRequestResponse) StatusCode ¶
func (r CreateAccessRequestResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateIntegration ¶
type CreateIntegration struct { Metadata map[string]interface{} `json:"metadata"` Name string `json:"name"` ProvisionerId *string `json:"provisioner_id"` SecretConfig *SecretConfig `json:"secret_config"` Type string `json:"type"` }
CreateIntegration defines model for CreateIntegration.
type CreateIntegrationV2JSONRequestBody ¶
type CreateIntegrationV2JSONRequestBody = CreateIntegration
CreateIntegrationV2JSONRequestBody defines body for CreateIntegrationV2 for application/json ContentType.
type CreateIntegrationV2Response ¶
type CreateIntegrationV2Response struct { Body []byte HTTPResponse *http.Response JSON200 *Integration }
func ParseCreateIntegrationV2Response ¶
func ParseCreateIntegrationV2Response(rsp *http.Response) (*CreateIntegrationV2Response, error)
ParseCreateIntegrationV2Response parses an HTTP response from a CreateIntegrationV2WithResponse call
func (CreateIntegrationV2Response) Status ¶
func (r CreateIntegrationV2Response) Status() string
Status returns HTTPResponse.Status
func (CreateIntegrationV2Response) StatusCode ¶
func (r CreateIntegrationV2Response) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteAccessFlowResponse ¶ added in v0.2.0
type DeleteAccessFlowResponse struct { Body []byte HTTPResponse *http.Response JSON200 *MessageResponse }
func ParseDeleteAccessFlowResponse ¶ added in v0.2.0
func ParseDeleteAccessFlowResponse(rsp *http.Response) (*DeleteAccessFlowResponse, error)
ParseDeleteAccessFlowResponse parses an HTTP response from a DeleteAccessFlowWithResponse call
func (DeleteAccessFlowResponse) Status ¶ added in v0.2.0
func (r DeleteAccessFlowResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteAccessFlowResponse) StatusCode ¶ added in v0.2.0
func (r DeleteAccessFlowResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteIntegrationV2Response ¶
type DeleteIntegrationV2Response struct { Body []byte HTTPResponse *http.Response JSON200 *MessageResponse }
func ParseDeleteIntegrationV2Response ¶
func ParseDeleteIntegrationV2Response(rsp *http.Response) (*DeleteIntegrationV2Response, error)
ParseDeleteIntegrationV2Response parses an HTTP response from a DeleteIntegrationV2WithResponse call
func (DeleteIntegrationV2Response) Status ¶
func (r DeleteIntegrationV2Response) Status() string
Status returns HTTPResponse.Status
func (DeleteIntegrationV2Response) StatusCode ¶
func (r DeleteIntegrationV2Response) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type FilterResult ¶ added in v0.2.0
type FilterResult struct { Context FilterResultContext `json:"context"` FilterPhrase string `json:"filter_phrase"` MatchedValues []string `json:"matched_values"` Type FilterResultContextType `json:"type"` }
FilterResult defines model for FilterResult.
type FilterResultContext ¶ added in v0.2.0
type FilterResultContext string
FilterResultContext defines model for FilterResultContext.
const ( FilterResultContextAccessFlowName FilterResultContext = "AccessFlowName" FilterResultContextAccessTarget FilterResultContext = "AccessTarget" FilterResultContextApprovers FilterResultContext = "Approvers" FilterResultContextGrantees FilterResultContext = "Grantees" FilterResultContextTriggerType FilterResultContext = "TriggerType" )
Defines values for FilterResultContext.
type FilterResultContextType ¶ added in v0.2.0
type FilterResultContextType string
FilterResultContextType defines model for FilterResultContextType.
const ( FilterResultContextTypeAccessFlowName FilterResultContextType = "AccessFlowName" FilterResultContextTypeContextAttribute FilterResultContextType = "ContextAttribute" FilterResultContextTypeGroup FilterResultContextType = "Group" FilterResultContextTypeMetadata FilterResultContextType = "Metadata" FilterResultContextTypePermissions FilterResultContextType = "Permissions" FilterResultContextTypeResource FilterResultContextType = "Resource" FilterResultContextTypeResourceIntegration FilterResultContextType = "ResourceIntegration" FilterResultContextTypeUser FilterResultContextType = "User" )
Defines values for FilterResultContextType.
type GetAccessFlowResponse ¶ added in v0.2.0
type GetAccessFlowResponse struct { Body []byte HTTPResponse *http.Response JSON200 *AccessFlowModelV3 }
func ParseGetAccessFlowResponse ¶ added in v0.2.0
func ParseGetAccessFlowResponse(rsp *http.Response) (*GetAccessFlowResponse, error)
ParseGetAccessFlowResponse parses an HTTP response from a GetAccessFlowWithResponse call
func (GetAccessFlowResponse) Status ¶ added in v0.2.0
func (r GetAccessFlowResponse) Status() string
Status returns HTTPResponse.Status
func (GetAccessFlowResponse) StatusCode ¶ added in v0.2.0
func (r GetAccessFlowResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetAccessRequestDetailsResponse ¶ added in v0.2.0
type GetAccessRequestDetailsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ConnectDetailsResponse }
func ParseGetAccessRequestDetailsResponse ¶ added in v0.2.0
func ParseGetAccessRequestDetailsResponse(rsp *http.Response) (*GetAccessRequestDetailsResponse, error)
ParseGetAccessRequestDetailsResponse parses an HTTP response from a GetAccessRequestDetailsWithResponse call
func (GetAccessRequestDetailsResponse) Status ¶ added in v0.2.0
func (r GetAccessRequestDetailsResponse) Status() string
Status returns HTTPResponse.Status
func (GetAccessRequestDetailsResponse) StatusCode ¶ added in v0.2.0
func (r GetAccessRequestDetailsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetAccessRequestResponse ¶
type GetAccessRequestResponse struct { Body []byte HTTPResponse *http.Response JSON200 *AccessRequest }
func ParseGetAccessRequestResponse ¶
func ParseGetAccessRequestResponse(rsp *http.Response) (*GetAccessRequestResponse, error)
ParseGetAccessRequestResponse parses an HTTP response from a GetAccessRequestWithResponse call
func (GetAccessRequestResponse) Status ¶
func (r GetAccessRequestResponse) Status() string
Status returns HTTPResponse.Status
func (GetAccessRequestResponse) StatusCode ¶
func (r GetAccessRequestResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetIntegrationConfigResponse ¶
type GetIntegrationConfigResponse struct { Body []byte HTTPResponse *http.Response JSON200 *IntegrationConfig }
func ParseGetIntegrationConfigResponse ¶
func ParseGetIntegrationConfigResponse(rsp *http.Response) (*GetIntegrationConfigResponse, error)
ParseGetIntegrationConfigResponse parses an HTTP response from a GetIntegrationConfigWithResponse call
func (GetIntegrationConfigResponse) Status ¶
func (r GetIntegrationConfigResponse) Status() string
Status returns HTTPResponse.Status
func (GetIntegrationConfigResponse) StatusCode ¶
func (r GetIntegrationConfigResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetIntegrationPermissionsResponse ¶ added in v0.2.0
type GetIntegrationPermissionsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *PaginatedResponsePermissionV3Response }
func ParseGetIntegrationPermissionsResponse ¶ added in v0.2.0
func ParseGetIntegrationPermissionsResponse(rsp *http.Response) (*GetIntegrationPermissionsResponse, error)
ParseGetIntegrationPermissionsResponse parses an HTTP response from a GetIntegrationPermissionsWithResponse call
func (GetIntegrationPermissionsResponse) Status ¶ added in v0.2.0
func (r GetIntegrationPermissionsResponse) Status() string
Status returns HTTPResponse.Status
func (GetIntegrationPermissionsResponse) StatusCode ¶ added in v0.2.0
func (r GetIntegrationPermissionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetIntegrationResourcesResponse ¶ added in v0.2.0
type GetIntegrationResourcesResponse struct { Body []byte HTTPResponse *http.Response JSON200 *PaginatedResponseResourceV3Response }
func ParseGetIntegrationResourcesResponse ¶ added in v0.2.0
func ParseGetIntegrationResourcesResponse(rsp *http.Response) (*GetIntegrationResourcesResponse, error)
ParseGetIntegrationResourcesResponse parses an HTTP response from a GetIntegrationResourcesWithResponse call
func (GetIntegrationResourcesResponse) Status ¶ added in v0.2.0
func (r GetIntegrationResourcesResponse) Status() string
Status returns HTTPResponse.Status
func (GetIntegrationResourcesResponse) StatusCode ¶ added in v0.2.0
func (r GetIntegrationResourcesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetIntegrationV2Response ¶
type GetIntegrationV2Response struct { Body []byte HTTPResponse *http.Response JSON200 *Integration }
func ParseGetIntegrationV2Response ¶
func ParseGetIntegrationV2Response(rsp *http.Response) (*GetIntegrationV2Response, error)
ParseGetIntegrationV2Response parses an HTTP response from a GetIntegrationV2WithResponse call
func (GetIntegrationV2Response) Status ¶
func (r GetIntegrationV2Response) Status() string
Status returns HTTPResponse.Status
func (GetIntegrationV2Response) StatusCode ¶
func (r GetIntegrationV2Response) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSelectableIntegrationsParams ¶
type GetSelectableIntegrationsParams struct {
UserId *string `form:"user_id,omitempty" json:"user_id,omitempty"`
}
GetSelectableIntegrationsParams defines parameters for GetSelectableIntegrations.
type GetSelectableIntegrationsResponse ¶
type GetSelectableIntegrationsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *PaginatedResponseSelectableIntegrationV3 }
func ParseGetSelectableIntegrationsResponse ¶
func ParseGetSelectableIntegrationsResponse(rsp *http.Response) (*GetSelectableIntegrationsResponse, error)
ParseGetSelectableIntegrationsResponse parses an HTTP response from a GetSelectableIntegrationsWithResponse call
func (GetSelectableIntegrationsResponse) Status ¶
func (r GetSelectableIntegrationsResponse) Status() string
Status returns HTTPResponse.Status
func (GetSelectableIntegrationsResponse) StatusCode ¶
func (r GetSelectableIntegrationsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSelectablePermissionsParams ¶
type GetSelectablePermissionsParams struct {
UserId *string `form:"user_id,omitempty" json:"user_id,omitempty"`
}
GetSelectablePermissionsParams defines parameters for GetSelectablePermissions.
type GetSelectablePermissionsResponse ¶
type GetSelectablePermissionsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *SelectablePermissionsResponse }
func ParseGetSelectablePermissionsResponse ¶
func ParseGetSelectablePermissionsResponse(rsp *http.Response) (*GetSelectablePermissionsResponse, error)
ParseGetSelectablePermissionsResponse parses an HTTP response from a GetSelectablePermissionsWithResponse call
func (GetSelectablePermissionsResponse) Status ¶
func (r GetSelectablePermissionsResponse) Status() string
Status returns HTTPResponse.Status
func (GetSelectablePermissionsResponse) StatusCode ¶
func (r GetSelectablePermissionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSelectableResourcesParams ¶
type GetSelectableResourcesParams struct {
UserId *string `form:"user_id,omitempty" json:"user_id,omitempty"`
}
GetSelectableResourcesParams defines parameters for GetSelectableResources.
type GetSelectableResourcesResponse ¶
type GetSelectableResourcesResponse struct { Body []byte HTTPResponse *http.Response JSON200 *PaginatedResponseSelectableResourceV3 }
func ParseGetSelectableResourcesResponse ¶
func ParseGetSelectableResourcesResponse(rsp *http.Response) (*GetSelectableResourcesResponse, error)
ParseGetSelectableResourcesResponse parses an HTTP response from a GetSelectableResourcesWithResponse call
func (GetSelectableResourcesResponse) Status ¶
func (r GetSelectableResourcesResponse) Status() string
Status returns HTTPResponse.Status
func (GetSelectableResourcesResponse) StatusCode ¶
func (r GetSelectableResourcesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetUserResponse ¶
func ParseGetUserResponse ¶
func ParseGetUserResponse(rsp *http.Response) (*GetUserResponse, error)
ParseGetUserResponse parses an HTTP response from a GetUserWithResponse call
func (GetUserResponse) Status ¶
func (r GetUserResponse) Status() string
Status returns HTTPResponse.Status
func (GetUserResponse) StatusCode ¶
func (r GetUserResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GranteeModel ¶ added in v0.2.0
type GranteeModel struct { Id string `json:"id"` Type GranteeTypeModel `json:"type"` }
GranteeModel defines model for GranteeModel.
type GranteeTypeModel ¶ added in v0.2.0
type GranteeTypeModel string
GranteeTypeModel defines model for GranteeTypeModel.
const ( GranteeTypeModelCONTEXTATTRIBUTE GranteeTypeModel = "CONTEXT_ATTRIBUTE" GranteeTypeModelEXTERNALEMAIL GranteeTypeModel = "EXTERNAL_EMAIL" GranteeTypeModelGROUP GranteeTypeModel = "GROUP" GranteeTypeModelUSER GranteeTypeModel = "USER" )
Defines values for GranteeTypeModel.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type IdentityModel2 ¶ added in v0.2.0
type IdentityModel2 struct { Id string `json:"id"` Name string `json:"name"` Type string `json:"type"` }
IdentityModel2 defines model for IdentityModel2.
type Integration ¶
type Integration struct { Connection *ConnectionMetadata `json:"connection"` Details *string `json:"details"` Id string `json:"id"` LastSyncTime *Instant `json:"last_sync_time"` Metadata map[string]interface{} `json:"metadata"` Name string `json:"name"` ProvisionerId *string `json:"provisioner_id"` SecretConfig *SecretConfig `json:"secret_config"` Status IntegrationStatus `json:"status"` Type string `json:"type"` }
Integration defines model for Integration.
type IntegrationConfig ¶
type IntegrationConfig struct { Description string `json:"description"` Name string `json:"name"` Params []IntegrationConfigParam `json:"params"` RequiresSecret bool `json:"requires_secret"` SupportedSecretTypes []string `json:"supported_secret_types"` Type string `json:"type"` }
IntegrationConfig defines model for IntegrationConfig.
type IntegrationConfigParam ¶
type IntegrationConfigParam struct { Default string `json:"default"` Id string `json:"id"` Label string `json:"label"` Values []string `json:"values"` }
IntegrationConfigParam defines model for IntegrationConfigParam.
type IntegrationStatus ¶
type IntegrationStatus string
IntegrationStatus defines model for IntegrationStatus.
const ( Active IntegrationStatus = "Active" Disabled IntegrationStatus = "Disabled" Error IntegrationStatus = "Error" Initializing IntegrationStatus = "Initializing" Refreshing IntegrationStatus = "Refreshing" Warning IntegrationStatus = "Warning" )
Defines values for IntegrationStatus.
type ListAccessFlowsParams ¶ added in v0.2.0
type ListAccessFlowsParams struct { Filters *string `form:"filters,omitempty" json:"filters,omitempty"` OnlyActive *bool `form:"only_active,omitempty" json:"only_active,omitempty"` }
ListAccessFlowsParams defines parameters for ListAccessFlows.
type ListAccessFlowsResponse ¶ added in v0.2.0
type ListAccessFlowsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *PaginatedAccessFlowV3SearchResponse }
func ParseListAccessFlowsResponse ¶ added in v0.2.0
func ParseListAccessFlowsResponse(rsp *http.Response) (*ListAccessFlowsResponse, error)
ParseListAccessFlowsResponse parses an HTTP response from a ListAccessFlowsWithResponse call
func (ListAccessFlowsResponse) Status ¶ added in v0.2.0
func (r ListAccessFlowsResponse) Status() string
Status returns HTTPResponse.Status
func (ListAccessFlowsResponse) StatusCode ¶ added in v0.2.0
func (r ListAccessFlowsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListAccessRequestsParams ¶
type ListAccessRequestsParams struct { DaysOffset *int64 `form:"days_offset,omitempty" json:"days_offset,omitempty"` UserId *string `form:"user_id,omitempty" json:"user_id,omitempty"` }
ListAccessRequestsParams defines parameters for ListAccessRequests.
type ListAccessRequestsResponse ¶
type ListAccessRequestsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *PaginatedResponseAccessRequestV3 }
func ParseListAccessRequestsResponse ¶
func ParseListAccessRequestsResponse(rsp *http.Response) (*ListAccessRequestsResponse, error)
ParseListAccessRequestsResponse parses an HTTP response from a ListAccessRequestsWithResponse call
func (ListAccessRequestsResponse) Status ¶
func (r ListAccessRequestsResponse) Status() string
Status returns HTTPResponse.Status
func (ListAccessRequestsResponse) StatusCode ¶
func (r ListAccessRequestsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListActivityParams ¶ added in v0.2.0
type ListActivityParams struct { EndDate *int64 `form:"end_date,omitempty" json:"end_date,omitempty"` Fields *[]ReportField `form:"fields,omitempty" json:"fields,omitempty"` FilterIntegrationId *[]string `form:"filter[integration_id],omitempty" json:"filter[integration_id],omitempty"` FilterPermission *[]string `form:"filter[permission],omitempty" json:"filter[permission],omitempty"` FilterRequestorId *[]string `form:"filter[requestor_id],omitempty" json:"filter[requestor_id],omitempty"` FilterResource *[]string `form:"filter[resource],omitempty" json:"filter[resource],omitempty"` FilterResourceType *[]string `form:"filter[resource_type],omitempty" json:"filter[resource_type],omitempty"` FilterStatus *[]AccessStatus `form:"filter[status],omitempty" json:"filter[status],omitempty"` StartDate *int64 `form:"start_date,omitempty" json:"start_date,omitempty"` }
ListActivityParams defines parameters for ListActivity.
type ListActivityResponse ¶ added in v0.2.0
type ListActivityResponse struct { Body []byte HTTPResponse *http.Response JSON200 *PaginatedResponseActivityReportJsonExportModel }
func ParseListActivityResponse ¶ added in v0.2.0
func ParseListActivityResponse(rsp *http.Response) (*ListActivityResponse, error)
ParseListActivityResponse parses an HTTP response from a ListActivityWithResponse call
func (ListActivityResponse) Status ¶ added in v0.2.0
func (r ListActivityResponse) Status() string
Status returns HTTPResponse.Status
func (ListActivityResponse) StatusCode ¶ added in v0.2.0
func (r ListActivityResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListConnectorsResponse ¶
func ParseListConnectorsResponse ¶
func ParseListConnectorsResponse(rsp *http.Response) (*ListConnectorsResponse, error)
ParseListConnectorsResponse parses an HTTP response from a ListConnectorsWithResponse call
func (ListConnectorsResponse) Status ¶
func (r ListConnectorsResponse) Status() string
Status returns HTTPResponse.Status
func (ListConnectorsResponse) StatusCode ¶
func (r ListConnectorsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListIdentitiesResponse ¶ added in v0.2.0
type ListIdentitiesResponse struct { Body []byte HTTPResponse *http.Response JSON200 *PaginatedResponseIdentityModelV2 }
func ParseListIdentitiesResponse ¶ added in v0.2.0
func ParseListIdentitiesResponse(rsp *http.Response) (*ListIdentitiesResponse, error)
ParseListIdentitiesResponse parses an HTTP response from a ListIdentitiesWithResponse call
func (ListIdentitiesResponse) Status ¶ added in v0.2.0
func (r ListIdentitiesResponse) Status() string
Status returns HTTPResponse.Status
func (ListIdentitiesResponse) StatusCode ¶ added in v0.2.0
func (r ListIdentitiesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListIntegrationConfigsResponse ¶
type ListIntegrationConfigsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *PaginatedResponseIntegrationConfigPublicModel }
func ParseListIntegrationConfigsResponse ¶
func ParseListIntegrationConfigsResponse(rsp *http.Response) (*ListIntegrationConfigsResponse, error)
ParseListIntegrationConfigsResponse parses an HTTP response from a ListIntegrationConfigsWithResponse call
func (ListIntegrationConfigsResponse) Status ¶
func (r ListIntegrationConfigsResponse) Status() string
Status returns HTTPResponse.Status
func (ListIntegrationConfigsResponse) StatusCode ¶
func (r ListIntegrationConfigsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListIntegrationsV2Response ¶
type ListIntegrationsV2Response struct { Body []byte HTTPResponse *http.Response JSON200 *PaginatedResponseIntegrationModel }
func ParseListIntegrationsV2Response ¶
func ParseListIntegrationsV2Response(rsp *http.Response) (*ListIntegrationsV2Response, error)
ParseListIntegrationsV2Response parses an HTTP response from a ListIntegrationsV2WithResponse call
func (ListIntegrationsV2Response) Status ¶
func (r ListIntegrationsV2Response) Status() string
Status returns HTTPResponse.Status
func (ListIntegrationsV2Response) StatusCode ¶
func (r ListIntegrationsV2Response) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListUsersResponse ¶
type ListUsersResponse struct { Body []byte HTTPResponse *http.Response JSON200 *PaginatedResponseUserModel }
func ParseListUsersResponse ¶
func ParseListUsersResponse(rsp *http.Response) (*ListUsersResponse, error)
ParseListUsersResponse parses an HTTP response from a ListUsersWithResponse call
func (ListUsersResponse) Status ¶
func (r ListUsersResponse) Status() string
Status returns HTTPResponse.Status
func (ListUsersResponse) StatusCode ¶
func (r ListUsersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type MessageResponse ¶
type MessageResponse struct {
Message string `json:"message"`
}
MessageResponse defines model for MessageResponse.
type PaginatedAccessFlowV3SearchResponse ¶ added in v0.2.0
type PaginatedAccessFlowV3SearchResponse struct { Data []AccessFlowModelV3 `json:"data"` FilterResult *[]AccessFlowFilterResult `json:"filter_result"` }
PaginatedAccessFlowV3SearchResponse defines model for PaginatedAccessFlowV3SearchResponse.
type PaginatedResponseAccessRequestV3 ¶
type PaginatedResponseAccessRequestV3 struct { Data []AccessRequest `json:"data"` Pagination PaginationInfo `json:"pagination"` }
PaginatedResponseAccessRequestV3 defines model for PaginatedResponseAccessRequestV3.
type PaginatedResponseActivityReportJsonExportModel ¶ added in v0.2.0
type PaginatedResponseActivityReportJsonExportModel struct { Data []ActivityReportJsonExportModel `json:"data"` Pagination PaginationInfo `json:"pagination"` }
PaginatedResponseActivityReportJsonExportModel defines model for PaginatedResponseActivityReportJsonExportModel.
type PaginatedResponseIdentityModelV2 ¶ added in v0.2.0
type PaginatedResponseIdentityModelV2 struct { Data []IdentityModel2 `json:"data"` Pagination PaginationInfo `json:"pagination"` }
PaginatedResponseIdentityModelV2 defines model for PaginatedResponseIdentityModelV2.
type PaginatedResponseIntegrationConfigPublicModel ¶
type PaginatedResponseIntegrationConfigPublicModel struct { Data []IntegrationConfig `json:"data"` Pagination PaginationInfo `json:"pagination"` }
PaginatedResponseIntegrationConfigPublicModel defines model for PaginatedResponseIntegrationConfigPublicModel.
type PaginatedResponseIntegrationModel ¶
type PaginatedResponseIntegrationModel struct { Data []Integration `json:"data"` Pagination PaginationInfo `json:"pagination"` }
PaginatedResponseIntegrationModel defines model for PaginatedResponseIntegrationModel.
type PaginatedResponsePermissionV3Response ¶ added in v0.2.0
type PaginatedResponsePermissionV3Response struct { Data []PermissionV3 `json:"data"` Pagination PaginationInfo `json:"pagination"` }
PaginatedResponsePermissionV3Response defines model for PaginatedResponsePermissionV3Response.
type PaginatedResponseResourceV3Response ¶ added in v0.2.0
type PaginatedResponseResourceV3Response struct { Data []ResourceV3 `json:"data"` Pagination PaginationInfo `json:"pagination"` }
PaginatedResponseResourceV3Response defines model for PaginatedResponseResourceV3Response.
type PaginatedResponseSelectableIntegrationV3 ¶
type PaginatedResponseSelectableIntegrationV3 struct { Data []SelectableIntegration `json:"data"` Pagination PaginationInfo `json:"pagination"` }
PaginatedResponseSelectableIntegrationV3 defines model for PaginatedResponseSelectableIntegrationV3.
type PaginatedResponseSelectableResourceV3 ¶
type PaginatedResponseSelectableResourceV3 struct { Data []SelectableResource `json:"data"` Pagination PaginationInfo `json:"pagination"` }
PaginatedResponseSelectableResourceV3 defines model for PaginatedResponseSelectableResourceV3.
type PaginatedResponseUserModel ¶
type PaginatedResponseUserModel struct { Data []UserModel `json:"data"` Pagination PaginationInfo `json:"pagination"` }
PaginatedResponseUserModel defines model for PaginatedResponseUserModel.
type PaginationInfo ¶
type PaginationInfo struct { Limit int32 `json:"limit"` Offset int32 `json:"offset"` Total int32 `json:"total"` }
PaginationInfo defines model for PaginationInfo.
type PermissionV3 ¶ added in v0.2.0
type PermissionV3 struct { Id string `json:"id"` Name string `json:"name"` ResourceType string `json:"resource_type"` }
PermissionV3 defines model for PermissionV3.
type RefreshIntegrationV2Response ¶
type RefreshIntegrationV2Response struct { Body []byte HTTPResponse *http.Response JSON200 *MessageResponse }
func ParseRefreshIntegrationV2Response ¶
func ParseRefreshIntegrationV2Response(rsp *http.Response) (*RefreshIntegrationV2Response, error)
ParseRefreshIntegrationV2Response parses an HTTP response from a RefreshIntegrationV2WithResponse call
func (RefreshIntegrationV2Response) Status ¶
func (r RefreshIntegrationV2Response) Status() string
Status returns HTTPResponse.Status
func (RefreshIntegrationV2Response) StatusCode ¶
func (r RefreshIntegrationV2Response) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ReportField ¶ added in v0.2.0
type ReportField string
ReportField defines model for ReportField.
const ( ReportFieldAccessFlow ReportField = "access_flow" ReportFieldIntegration ReportField = "integration" ReportFieldJustification ReportField = "justification" ReportFieldPermissions ReportField = "permissions" ReportFieldRequestDate ReportField = "request_date" ReportFieldRequestId ReportField = "request_id" ReportFieldRequestorEmail ReportField = "requestor_email" ReportFieldRequestorName ReportField = "requestor_name" ReportFieldResourceType ReportField = "resource_type" ReportFieldResources ReportField = "resources" ReportFieldStatus ReportField = "status" )
Defines values for ReportField.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type ResetAccessRequestCredentialsResponse ¶ added in v0.2.0
type ResetAccessRequestCredentialsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *MessageResponse }
func ParseResetAccessRequestCredentialsResponse ¶ added in v0.2.0
func ParseResetAccessRequestCredentialsResponse(rsp *http.Response) (*ResetAccessRequestCredentialsResponse, error)
ParseResetAccessRequestCredentialsResponse parses an HTTP response from a ResetAccessRequestCredentialsWithResponse call
func (ResetAccessRequestCredentialsResponse) Status ¶ added in v0.2.0
func (r ResetAccessRequestCredentialsResponse) Status() string
Status returns HTTPResponse.Status
func (ResetAccessRequestCredentialsResponse) StatusCode ¶ added in v0.2.0
func (r ResetAccessRequestCredentialsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ResourceV3 ¶ added in v0.2.0
type ResourceV3 struct { Id string `json:"id"` Name string `json:"name"` Type string `json:"type"` }
ResourceV3 defines model for ResourceV3.
type SecretConfig ¶
type SecretConfig = map[string]interface{}
SecretConfig defines model for SecretConfig.
type SelectableIntegration ¶
type SelectableIntegration struct {
Id string `json:"id"`
}
SelectableIntegration defines model for SelectableIntegration.
type SelectablePermissionsResponse ¶
type SelectablePermissionsResponse struct { AllowMultiple bool `json:"allow_multiple"` Data []string `json:"data"` Pagination PaginationInfo `json:"pagination"` }
SelectablePermissionsResponse defines model for SelectablePermissionsResponse.
type SelectableResource ¶
SelectableResource defines model for SelectableResource.
type TagModelV3 ¶ added in v0.2.0
TagModelV3 defines model for TagModelV3.
type Timeframe ¶ added in v0.2.0
type Timeframe struct { DaysInWeek []DayOfWeek `json:"days_in_week"` EndTimeSec int64 `json:"end_time_sec"` StartTimeSec int64 `json:"start_time_sec"` TimeZone string `json:"time_zone"` }
Timeframe defines model for Timeframe.
type TokenUpdateFunc ¶
TokenUpdateFunc is a function that accepts an oauth2 Token upon refresh, and returns an error if it should not be used.
type TriggerType ¶ added in v0.2.0
type TriggerType string
TriggerType defines model for TriggerType.
const ( SHARELINK TriggerType = "SHARE_LINK" USERREQUEST TriggerType = "USER_REQUEST" )
Defines values for TriggerType.
type UpdateAccessFlowJSONRequestBody ¶ added in v0.2.0
type UpdateAccessFlowJSONRequestBody = UpdateAccessFlowModelV3
UpdateAccessFlowJSONRequestBody defines body for UpdateAccessFlow for application/json ContentType.
type UpdateAccessFlowModelV3 ¶ added in v0.2.0
type UpdateAccessFlowModelV3 struct { AccessTargets []AccessTargetModelV3 `json:"access_targets"` Active bool `json:"active"` Approvers []ApproverModel `json:"approvers"` Grantees []GranteeModel `json:"grantees"` JustificationRequired bool `json:"justification_required"` Name string `json:"name"` RequireAllApprovers *bool `json:"require_all_approvers"` RevokeAfterInSec int32 `json:"revoke_after_in_sec"` Timeframe *Timeframe `json:"timeframe"` TriggerType TriggerType `json:"trigger_type"` }
UpdateAccessFlowModelV3 defines model for UpdateAccessFlowModelV3.
type UpdateAccessFlowResponse ¶ added in v0.2.0
type UpdateAccessFlowResponse struct { Body []byte HTTPResponse *http.Response JSON200 *AccessFlowModelV3 }
func ParseUpdateAccessFlowResponse ¶ added in v0.2.0
func ParseUpdateAccessFlowResponse(rsp *http.Response) (*UpdateAccessFlowResponse, error)
ParseUpdateAccessFlowResponse parses an HTTP response from a UpdateAccessFlowWithResponse call
func (UpdateAccessFlowResponse) Status ¶ added in v0.2.0
func (r UpdateAccessFlowResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateAccessFlowResponse) StatusCode ¶ added in v0.2.0
func (r UpdateAccessFlowResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateIntegration ¶
type UpdateIntegration struct { Metadata map[string]interface{} `json:"metadata"` Name string `json:"name"` ProvisionerId *string `json:"provisioner_id"` SecretConfig *SecretConfig `json:"secret_config"` }
UpdateIntegration defines model for UpdateIntegration.
type UpdateIntegrationV2JSONRequestBody ¶
type UpdateIntegrationV2JSONRequestBody = UpdateIntegration
UpdateIntegrationV2JSONRequestBody defines body for UpdateIntegrationV2 for application/json ContentType.
type UpdateIntegrationV2Response ¶
type UpdateIntegrationV2Response struct { Body []byte HTTPResponse *http.Response JSON200 *Integration }
func ParseUpdateIntegrationV2Response ¶
func ParseUpdateIntegrationV2Response(rsp *http.Response) (*UpdateIntegrationV2Response, error)
ParseUpdateIntegrationV2Response parses an HTTP response from a UpdateIntegrationV2WithResponse call
func (UpdateIntegrationV2Response) Status ¶
func (r UpdateIntegrationV2Response) Status() string
Status returns HTTPResponse.Status
func (UpdateIntegrationV2Response) StatusCode ¶
func (r UpdateIntegrationV2Response) StatusCode() int
StatusCode returns HTTPResponse.StatusCode