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
- 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 NewDeleteIntegrationV2Request(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 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 NewListAccessRequestsRequest(server string, params *ListAccessRequestsParams) (*http.Request, error)
- func NewListConnectorsRequest(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 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 AccessRequest
- type AccessStatusModel
- type AponoClient
- type Client
- 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) DeleteIntegrationV2(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) GetIntegrationConfig(ctx context.Context, pType 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) ListAccessRequests(ctx context.Context, params *ListAccessRequestsParams, ...) (*http.Response, error)
- func (c *Client) ListConnectors(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) 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) 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) DeleteIntegrationV2WithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteIntegrationV2Response, 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) 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) ListAccessRequestsWithResponse(ctx context.Context, params *ListAccessRequestsParams, ...) (*ListAccessRequestsResponse, error)
- func (c *ClientWithResponses) ListConnectorsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListConnectorsResponse, 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) 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 ConnectionMetadata
- type Connector
- type CreateAccessRequest
- type CreateAccessRequestJSONRequestBody
- type CreateAccessRequestResponse
- type CreateIntegration
- type CreateIntegrationV2JSONRequestBody
- type CreateIntegrationV2Response
- type DeleteIntegrationV2Response
- type GetAccessRequestResponse
- type GetIntegrationConfigResponse
- type GetIntegrationV2Response
- type GetSelectableIntegrationsParams
- type GetSelectableIntegrationsResponse
- type GetSelectablePermissionsParams
- type GetSelectablePermissionsResponse
- type GetSelectableResourcesParams
- type GetSelectableResourcesResponse
- type GetUserResponse
- type HttpRequestDoer
- type Instant
- type Integration
- type IntegrationConfig
- type IntegrationConfigParam
- type IntegrationStatus
- type ListAccessRequestsParams
- type ListAccessRequestsResponse
- type ListConnectorsResponse
- type ListIntegrationConfigsResponse
- type ListIntegrationsV2Response
- type ListUsersResponse
- type MessageResponse
- type PaginatedResponseAccessRequestV3
- type PaginatedResponseIntegrationConfigPublicModel
- type PaginatedResponseIntegrationModel
- type PaginatedResponseSelectableIntegrationV3
- type PaginatedResponseSelectableResourceV3
- type PaginatedResponseUserModel
- type PaginationInfo
- type RefreshIntegrationV2Response
- type RequestEditorFn
- type SecretConfig
- type SelectableIntegration
- type SelectablePermissionsResponse
- type SelectableResource
- type Session
- type TokenUpdateFunc
- type UpdateIntegration
- type UpdateIntegrationV2JSONRequestBody
- type UpdateIntegrationV2Response
- type UserModel
Constants ¶
const (
AuthorizationScopes = "Authorization.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
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 NewDeleteIntegrationV2Request ¶
NewDeleteIntegrationV2Request generates requests for DeleteIntegrationV2
func NewGetAccessRequestRequest ¶
NewGetAccessRequestRequest generates requests for GetAccessRequest
func NewGetIntegrationConfigRequest ¶
NewGetIntegrationConfigRequest generates requests for GetIntegrationConfig
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 NewListAccessRequestsRequest ¶
func NewListAccessRequestsRequest(server string, params *ListAccessRequestsParams) (*http.Request, error)
NewListAccessRequestsRequest generates requests for ListAccessRequests
func NewListConnectorsRequest ¶
NewListConnectorsRequest generates requests for ListConnectors
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 NewUpdateIntegrationV2Request ¶
func NewUpdateIntegrationV2Request(server string, id string, body UpdateIntegrationV2JSONRequestBody) (*http.Request, error)
NewUpdateIntegrationV2Request calls the generic UpdateIntegrationV2 builder with application/json body
Types ¶
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 AccessStatusModel ¶
type AccessStatusModel string
AccessStatusModel defines model for AccessStatusModel.
const ( APPROVED AccessStatusModel = "APPROVED" EXPIRED AccessStatusModel = "EXPIRED" FAILED AccessStatusModel = "FAILED" GRANTED AccessStatusModel = "GRANTED" PENDING AccessStatusModel = "PENDING" REJECTED AccessStatusModel = "REJECTED" REVOKING AccessStatusModel = "REVOKING" )
Defines values for AccessStatusModel.
type AponoClient ¶
type AponoClient struct { *ClientWithResponses Session *Session }
func CreateClient ¶
func CreateClient(ctx context.Context, profileName string) (*AponoClient, error)
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) 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) DeleteIntegrationV2 ¶
func (*Client) GetAccessRequest ¶
func (*Client) GetIntegrationConfig ¶
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) ListAccessRequests ¶
func (c *Client) ListAccessRequests(ctx context.Context, params *ListAccessRequestsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListConnectors ¶
func (*Client) ListIntegrationConfigs ¶
func (*Client) ListIntegrationsV2 ¶
func (*Client) RefreshIntegrationV2 ¶
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) // 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) // 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) // 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) 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) DeleteIntegrationV2WithResponse ¶
func (c *ClientWithResponses) DeleteIntegrationV2WithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteIntegrationV2Response, error)
DeleteIntegrationV2WithResponse request returning *DeleteIntegrationV2Response
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) 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) ListAccessRequestsWithResponse ¶
func (c *ClientWithResponses) ListAccessRequestsWithResponse(ctx context.Context, params *ListAccessRequestsParams, reqEditors ...RequestEditorFn) (*ListAccessRequestsResponse, error)
ListAccessRequestsWithResponse request returning *ListAccessRequestsResponse
func (*ClientWithResponses) ListConnectorsWithResponse ¶
func (c *ClientWithResponses) ListConnectorsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListConnectorsResponse, error)
ListConnectorsWithResponse request returning *ListConnectorsResponse
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) 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) // 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) // 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) // 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 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 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 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 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 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 HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
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 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 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 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 PaginatedResponseAccessRequestV3 ¶
type PaginatedResponseAccessRequestV3 struct { Data []AccessRequest `json:"data"` Pagination PaginationInfo `json:"pagination"` }
PaginatedResponseAccessRequestV3 defines model for PaginatedResponseAccessRequestV3.
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 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 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 RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
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 TokenUpdateFunc ¶
TokenUpdateFunc is a function that accepts an oauth2 Token upon refresh, and returns an error if it should not be used.
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