appregistry

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2020 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppMetadataInternal

type AppMetadataInternal struct {
	// OAuth 2.0 Client ID.
	ClientId *string `json:"clientId,omitempty"`
	// The date that the app was created.
	CreatedAt *string `json:"createdAt,omitempty"`
	// The principal who created this app.
	CreatedBy *string `json:"createdBy,omitempty"`
}

type AppMetadataPrivate

type AppMetadataPrivate struct {
	// Array of URLs that can be used for redirect after logging into the app.
	RedirectUrls []string `json:"redirectUrls,omitempty"`
	// URL to redirect to after a subscription is created.
	SetupUrl *string `json:"setupUrl,omitempty"`
	// URL that webhook events are sent to.
	WebhookUrl *string `json:"webhookUrl,omitempty"`
}

type AppMetadataPublic

type AppMetadataPublic struct {
	// Array of permission templates that are used to grant permission to the app principal when a tenant subscribes.
	AppPrincipalPermissions []string `json:"appPrincipalPermissions,omitempty"`
	// Short paragraph describing the app.
	Description *string `json:"description,omitempty"`
	// The URL used to log in to the app.
	LoginUrl *string `json:"loginUrl,omitempty"`
	// The URL used to display the app's logo.
	LogoUrl *string `json:"logoUrl,omitempty"`
	// Human-readable title for the app.
	Title *string `json:"title,omitempty"`
	// Array of permission filter templates that are used to intersect with a user's permissions when using the app.
	UserPermissionsFilter []string `json:"userPermissionsFilter,omitempty"`
}

type AppMetadataSecret

type AppMetadataSecret struct {
	// OAuth 2.0 Client Secret string (used for confidential clients).
	ClientSecret *string `json:"clientSecret,omitempty"`
}

type AppName

type AppName struct {
	AppName string `json:"appName"`
}

type AppResource

type AppResource struct {
	Kind AppResourceKind `json:"kind"`
	// App name that is unique within Splunk Cloud Platform.
	Name string `json:"name"`
}

type AppResourceKind

type AppResourceKind string

AppResourceKind :

const (
	AppResourceKindWeb     AppResourceKind = "web"
	AppResourceKindNative  AppResourceKind = "native"
	AppResourceKindService AppResourceKind = "service"
)

List of AppResourceKind

type AppResponseCreateUpdate

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

func MakeAppResponseCreateUpdateFromNativeApp added in v1.2.1

func MakeAppResponseCreateUpdateFromNativeApp(f NativeApp) AppResponseCreateUpdate

MakeAppResponseCreateUpdateFromNativeApp creates a new AppResponseCreateUpdate from an instance of NativeApp

func MakeAppResponseCreateUpdateFromRawInterface added in v1.2.1

func MakeAppResponseCreateUpdateFromRawInterface(f interface{}) AppResponseCreateUpdate

MakeAppResponseCreateUpdateFromRawInterface creates a new AppResponseCreateUpdate from a raw interface{}

func MakeAppResponseCreateUpdateFromServiceApp added in v1.2.1

func MakeAppResponseCreateUpdateFromServiceApp(f ServiceApp) AppResponseCreateUpdate

MakeAppResponseCreateUpdateFromServiceApp creates a new AppResponseCreateUpdate from an instance of ServiceApp

func MakeAppResponseCreateUpdateFromWebApp added in v1.2.1

func MakeAppResponseCreateUpdateFromWebApp(f WebApp) AppResponseCreateUpdate

MakeAppResponseCreateUpdateFromWebApp creates a new AppResponseCreateUpdate from an instance of WebApp

func (AppResponseCreateUpdate) IsNativeApp added in v1.2.1

func (m AppResponseCreateUpdate) IsNativeApp() bool

IsNativeApp checks if the AppResponseCreateUpdate is a NativeApp

func (AppResponseCreateUpdate) IsRawInterface added in v1.2.1

func (m AppResponseCreateUpdate) IsRawInterface() bool

IsRawInterface checks if the AppResponseCreateUpdate is an interface{} (unknown type)

func (AppResponseCreateUpdate) IsServiceApp added in v1.2.1

func (m AppResponseCreateUpdate) IsServiceApp() bool

IsServiceApp checks if the AppResponseCreateUpdate is a ServiceApp

func (AppResponseCreateUpdate) IsWebApp added in v1.2.1

func (m AppResponseCreateUpdate) IsWebApp() bool

IsWebApp checks if the AppResponseCreateUpdate is a WebApp

func (AppResponseCreateUpdate) MarshalJSON added in v1.2.1

func (m AppResponseCreateUpdate) MarshalJSON() ([]byte, error)

MarshalJSON marshals AppResponseCreateUpdate using the appropriate struct field

func (AppResponseCreateUpdate) NativeApp added in v1.2.1

func (m AppResponseCreateUpdate) NativeApp() *NativeApp

NativeApp returns NativeApp if IsNativeApp() is true, nil otherwise

func (AppResponseCreateUpdate) RawInterface added in v1.2.1

func (m AppResponseCreateUpdate) RawInterface() interface{}

RawInterface returns interface{} if IsRawInterface() is true (unknown type), nil otherwise

func (AppResponseCreateUpdate) ServiceApp added in v1.2.1

func (m AppResponseCreateUpdate) ServiceApp() *ServiceApp

ServiceApp returns ServiceApp if IsServiceApp() is true, nil otherwise

func (*AppResponseCreateUpdate) UnmarshalJSON added in v1.2.1

func (m *AppResponseCreateUpdate) UnmarshalJSON(b []byte) (err error)

UnmarshalJSON unmarshals AppResponseCreateUpdate using the "kind" property

func (AppResponseCreateUpdate) WebApp added in v1.2.1

func (m AppResponseCreateUpdate) WebApp() *WebApp

WebApp returns WebApp if IsWebApp() is true, nil otherwise

type AppResponseGetList

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

func MakeAppResponseGetListFromNativeApp added in v1.2.1

func MakeAppResponseGetListFromNativeApp(f NativeApp) AppResponseGetList

MakeAppResponseGetListFromNativeApp creates a new AppResponseGetList from an instance of NativeApp

func MakeAppResponseGetListFromRawInterface added in v1.2.1

func MakeAppResponseGetListFromRawInterface(f interface{}) AppResponseGetList

MakeAppResponseGetListFromRawInterface creates a new AppResponseGetList from a raw interface{}

func MakeAppResponseGetListFromServiceApp added in v1.2.1

func MakeAppResponseGetListFromServiceApp(f ServiceApp) AppResponseGetList

MakeAppResponseGetListFromServiceApp creates a new AppResponseGetList from an instance of ServiceApp

func MakeAppResponseGetListFromWebApp added in v1.2.1

func MakeAppResponseGetListFromWebApp(f WebApp) AppResponseGetList

MakeAppResponseGetListFromWebApp creates a new AppResponseGetList from an instance of WebApp

func (AppResponseGetList) IsNativeApp added in v1.2.1

func (m AppResponseGetList) IsNativeApp() bool

IsNativeApp checks if the AppResponseGetList is a NativeApp

func (AppResponseGetList) IsRawInterface added in v1.2.1

func (m AppResponseGetList) IsRawInterface() bool

IsRawInterface checks if the AppResponseGetList is an interface{} (unknown type)

func (AppResponseGetList) IsServiceApp added in v1.2.1

func (m AppResponseGetList) IsServiceApp() bool

IsServiceApp checks if the AppResponseGetList is a ServiceApp

func (AppResponseGetList) IsWebApp added in v1.2.1

func (m AppResponseGetList) IsWebApp() bool

IsWebApp checks if the AppResponseGetList is a WebApp

func (AppResponseGetList) MarshalJSON added in v1.2.1

func (m AppResponseGetList) MarshalJSON() ([]byte, error)

MarshalJSON marshals AppResponseGetList using the appropriate struct field

func (AppResponseGetList) NativeApp added in v1.2.1

func (m AppResponseGetList) NativeApp() *NativeApp

NativeApp returns NativeApp if IsNativeApp() is true, nil otherwise

func (AppResponseGetList) RawInterface added in v1.2.1

func (m AppResponseGetList) RawInterface() interface{}

RawInterface returns interface{} if IsRawInterface() is true (unknown type), nil otherwise

func (AppResponseGetList) ServiceApp added in v1.2.1

func (m AppResponseGetList) ServiceApp() *ServiceApp

ServiceApp returns ServiceApp if IsServiceApp() is true, nil otherwise

func (*AppResponseGetList) UnmarshalJSON added in v1.2.1

func (m *AppResponseGetList) UnmarshalJSON(b []byte) (err error)

UnmarshalJSON unmarshals AppResponseGetList using the "kind" property

func (AppResponseGetList) WebApp added in v1.2.1

func (m AppResponseGetList) WebApp() *WebApp

WebApp returns WebApp if IsWebApp() is true, nil otherwise

type CreateAppRequest

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

func MakeCreateAppRequestFromNativeAppPost added in v1.2.1

func MakeCreateAppRequestFromNativeAppPost(f NativeAppPost) CreateAppRequest

MakeCreateAppRequestFromNativeAppPost creates a new CreateAppRequest from an instance of NativeAppPost

func MakeCreateAppRequestFromRawInterface added in v1.2.1

func MakeCreateAppRequestFromRawInterface(f interface{}) CreateAppRequest

MakeCreateAppRequestFromRawInterface creates a new CreateAppRequest from a raw interface{}

func MakeCreateAppRequestFromServiceAppPost added in v1.2.1

func MakeCreateAppRequestFromServiceAppPost(f ServiceAppPost) CreateAppRequest

MakeCreateAppRequestFromServiceAppPost creates a new CreateAppRequest from an instance of ServiceAppPost

func MakeCreateAppRequestFromWebAppPost added in v1.2.1

func MakeCreateAppRequestFromWebAppPost(f WebAppPost) CreateAppRequest

MakeCreateAppRequestFromWebAppPost creates a new CreateAppRequest from an instance of WebAppPost

func (CreateAppRequest) IsNativeAppPost added in v1.2.1

func (m CreateAppRequest) IsNativeAppPost() bool

IsNativeAppPost checks if the CreateAppRequest is a NativeAppPost

func (CreateAppRequest) IsRawInterface added in v1.2.1

func (m CreateAppRequest) IsRawInterface() bool

IsRawInterface checks if the CreateAppRequest is an interface{} (unknown type)

func (CreateAppRequest) IsServiceAppPost added in v1.2.1

func (m CreateAppRequest) IsServiceAppPost() bool

IsServiceAppPost checks if the CreateAppRequest is a ServiceAppPost

func (CreateAppRequest) IsWebAppPost added in v1.2.1

func (m CreateAppRequest) IsWebAppPost() bool

IsWebAppPost checks if the CreateAppRequest is a WebAppPost

func (CreateAppRequest) MarshalJSON added in v1.2.1

func (m CreateAppRequest) MarshalJSON() ([]byte, error)

MarshalJSON marshals CreateAppRequest using the appropriate struct field

func (CreateAppRequest) NativeAppPost added in v1.2.1

func (m CreateAppRequest) NativeAppPost() *NativeAppPost

NativeAppPost returns NativeAppPost if IsNativeAppPost() is true, nil otherwise

func (CreateAppRequest) RawInterface added in v1.2.1

func (m CreateAppRequest) RawInterface() interface{}

RawInterface returns interface{} if IsRawInterface() is true (unknown type), nil otherwise

func (CreateAppRequest) ServiceAppPost added in v1.2.1

func (m CreateAppRequest) ServiceAppPost() *ServiceAppPost

ServiceAppPost returns ServiceAppPost if IsServiceAppPost() is true, nil otherwise

func (*CreateAppRequest) UnmarshalJSON added in v1.2.1

func (m *CreateAppRequest) UnmarshalJSON(b []byte) (err error)

UnmarshalJSON unmarshals CreateAppRequest using the "kind" property

func (CreateAppRequest) WebAppPost added in v1.2.1

func (m CreateAppRequest) WebAppPost() *WebAppPost

WebAppPost returns WebAppPost if IsWebAppPost() is true, nil otherwise

type Error

type Error struct {
	Code    string `json:"code"`
	Message string `json:"message"`
}

type Key

type Key struct {
	// Public key used for verifying signed webhook requests.
	Key *string `json:"key,omitempty"`
}

Public Key

type ListSubscriptionsQueryParams

type ListSubscriptionsQueryParams struct {
	// Kind : The kind of application.
	Kind AppResourceKind `key:"kind"`
}

ListSubscriptionsQueryParams represents valid query parameters for the ListSubscriptions operation For convenience ListSubscriptionsQueryParams can be formed in a single statement, for example:

`v := ListSubscriptionsQueryParams{}.SetKind(...)`

func (ListSubscriptionsQueryParams) SetKind

type NativeApp added in v1.2.1

type NativeApp struct {
	// OAuth 2.0 Client ID.
	ClientId string `json:"clientId"`
	// The date that the app was created.
	CreatedAt string `json:"createdAt"`
	// The principal who created this app.
	CreatedBy string          `json:"createdBy"`
	Kind      AppResourceKind `json:"kind"`
	// App name that is unique within Splunk Cloud Platform.
	Name string `json:"name"`
	// Human-readable title for the app.
	Title string `json:"title"`
	// Array of permission templates that are used to grant permission to the app principal when a tenant subscribes.
	AppPrincipalPermissions []string `json:"appPrincipalPermissions,omitempty"`
	// Short paragraph describing the app.
	Description *string `json:"description,omitempty"`
	// The URL used to log in to the app.
	LoginUrl *string `json:"loginUrl,omitempty"`
	// The URL used to display the app's logo.
	LogoUrl *string `json:"logoUrl,omitempty"`
	// Array of URLs that can be used for redirect after logging into the app.
	RedirectUrls []string `json:"redirectUrls,omitempty"`
	// URL to redirect to after a subscription is created.
	SetupUrl *string `json:"setupUrl,omitempty"`
	// Array of permission filter templates that are used to intersect with a user's permissions when using the app.
	UserPermissionsFilter []string `json:"userPermissionsFilter,omitempty"`
	// URL that webhook events are sent to.
	WebhookUrl *string `json:"webhookUrl,omitempty"`
}

A native kind app.

type NativeAppPost added in v1.2.1

type NativeAppPost struct {
	Kind AppResourceKind `json:"kind"`
	// App name that is unique within Splunk Cloud Platform.
	Name string `json:"name"`
	// Human-readable title for the app.
	Title string `json:"title"`
	// Array of permission templates that are used to grant permission to the app principal when a tenant subscribes.
	AppPrincipalPermissions []string `json:"appPrincipalPermissions,omitempty"`
	// Short paragraph describing the app.
	Description *string `json:"description,omitempty"`
	// The URL used to log in to the app.
	LoginUrl *string `json:"loginUrl,omitempty"`
	// The URL used to display the app's logo.
	LogoUrl *string `json:"logoUrl,omitempty"`
	// Array of URLs that can be used for redirect after logging into the app.
	RedirectUrls []string `json:"redirectUrls,omitempty"`
	// URL to redirect to after a subscription is created.
	SetupUrl *string `json:"setupUrl,omitempty"`
	// Array of permission filter templates that are used to intersect with a user's permissions when using the app.
	UserPermissionsFilter []string `json:"userPermissionsFilter,omitempty"`
	// URL that webhook events are sent to.
	WebhookUrl *string `json:"webhookUrl,omitempty"`
}

Required input for creating a native kind app.

type Service

type Service services.BaseService

func NewService

func NewService(config *services.Config) (*Service, error)

NewService creates a new appregistry service client from the given Config

func (*Service) CreateApp

func (s *Service) CreateApp(createAppRequest CreateAppRequest, resp ...*http.Response) (*AppResponseCreateUpdate, error)

CreateApp - appregistry service endpoint Creates an app. Parameters:

createAppRequest: Creates a new app.
resp: an optional pointer to a http.Response to be populated by this method. NOTE: only the first resp pointer will be used if multiple are provided

func (*Service) CreateSubscription

func (s *Service) CreateSubscription(appName AppName, resp ...*http.Response) error

CreateSubscription - appregistry service endpoint Creates a subscription. Parameters:

appName: Creates a subscription between a tenant and an app.
resp: an optional pointer to a http.Response to be populated by this method. NOTE: only the first resp pointer will be used if multiple are provided

func (*Service) DeleteApp

func (s *Service) DeleteApp(appName string, resp ...*http.Response) error

DeleteApp - appregistry service endpoint Removes an app. Parameters:

appName: App name.
resp: an optional pointer to a http.Response to be populated by this method. NOTE: only the first resp pointer will be used if multiple are provided

func (*Service) DeleteSubscription

func (s *Service) DeleteSubscription(appName string, resp ...*http.Response) error

DeleteSubscription - appregistry service endpoint Removes a subscription. Parameters:

appName: App name.
resp: an optional pointer to a http.Response to be populated by this method. NOTE: only the first resp pointer will be used if multiple are provided

func (*Service) GetApp

func (s *Service) GetApp(appName string, resp ...*http.Response) (*AppResponseGetList, error)

GetApp - appregistry service endpoint Returns the metadata of an app. Parameters:

appName: App name.
resp: an optional pointer to a http.Response to be populated by this method. NOTE: only the first resp pointer will be used if multiple are provided

func (*Service) GetKeys

func (s *Service) GetKeys(resp ...*http.Response) ([]Key, error)

GetKeys - appregistry service endpoint Returns a list of the public keys used for verifying signed webhook requests. Parameters:

resp: an optional pointer to a http.Response to be populated by this method. NOTE: only the first resp pointer will be used if multiple are provided

func (*Service) GetSubscription

func (s *Service) GetSubscription(appName string, resp ...*http.Response) (*Subscription, error)

GetSubscription - appregistry service endpoint Returns or validates a subscription. Parameters:

appName: App name.
resp: an optional pointer to a http.Response to be populated by this method. NOTE: only the first resp pointer will be used if multiple are provided

func (*Service) ListAppSubscriptions

func (s *Service) ListAppSubscriptions(appName string, resp ...*http.Response) ([]Subscription, error)

ListAppSubscriptions - appregistry service endpoint Returns the collection of subscriptions to an app. Parameters:

appName: App name.
resp: an optional pointer to a http.Response to be populated by this method. NOTE: only the first resp pointer will be used if multiple are provided

func (*Service) ListApps

func (s *Service) ListApps(resp ...*http.Response) ([]AppResponseGetList, error)

ListApps - appregistry service endpoint Returns a list of apps. Parameters:

resp: an optional pointer to a http.Response to be populated by this method. NOTE: only the first resp pointer will be used if multiple are provided

func (*Service) ListSubscriptions

func (s *Service) ListSubscriptions(query *ListSubscriptionsQueryParams, resp ...*http.Response) ([]Subscription, error)

ListSubscriptions - appregistry service endpoint Returns the tenant subscriptions. Parameters:

query: a struct pointer of valid query parameters for the endpoint, nil to send no query parameters
resp: an optional pointer to a http.Response to be populated by this method. NOTE: only the first resp pointer will be used if multiple are provided

func (*Service) RotateSecret

func (s *Service) RotateSecret(appName string, resp ...*http.Response) (*AppResponseCreateUpdate, error)

RotateSecret - appregistry service endpoint Rotates the client secret for an app. Parameters:

appName: App name.
resp: an optional pointer to a http.Response to be populated by this method. NOTE: only the first resp pointer will be used if multiple are provided

func (*Service) UpdateApp

func (s *Service) UpdateApp(appName string, updateAppRequest UpdateAppRequest, resp ...*http.Response) (*AppResponseCreateUpdate, error)

UpdateApp - appregistry service endpoint Updates an app. Parameters:

appName: App name.
updateAppRequest: Updates app contents.
resp: an optional pointer to a http.Response to be populated by this method. NOTE: only the first resp pointer will be used if multiple are provided

type ServiceApp added in v1.2.1

type ServiceApp struct {
	// OAuth 2.0 Client ID.
	ClientId string `json:"clientId"`
	// OAuth 2.0 Client Secret string (used for confidential clients).
	ClientSecret string `json:"clientSecret"`
	// The date that the app was created.
	CreatedAt string `json:"createdAt"`
	// The principal who created this app.
	CreatedBy string          `json:"createdBy"`
	Kind      AppResourceKind `json:"kind"`
	// App name that is unique within Splunk Cloud Platform.
	Name string `json:"name"`
	// Human-readable title for the app.
	Title string `json:"title"`
	// Array of permission templates that are used to grant permission to the app principal when a tenant subscribes.
	AppPrincipalPermissions []string `json:"appPrincipalPermissions,omitempty"`
	// Short paragraph describing the app.
	Description *string `json:"description,omitempty"`
	// The URL used to log in to the app.
	LoginUrl *string `json:"loginUrl,omitempty"`
	// The URL used to display the app's logo.
	LogoUrl *string `json:"logoUrl,omitempty"`
	// Array of URLs that can be used for redirect after logging into the app.
	RedirectUrls []string `json:"redirectUrls,omitempty"`
	// URL to redirect to after a subscription is created.
	SetupUrl *string `json:"setupUrl,omitempty"`
	// Array of permission filter templates that are used to intersect with a user's permissions when using the app.
	UserPermissionsFilter []string `json:"userPermissionsFilter,omitempty"`
	// URL that webhook events are sent to.
	WebhookUrl *string `json:"webhookUrl,omitempty"`
}

A service kind app.

type ServiceAppPost added in v1.2.1

type ServiceAppPost struct {
	Kind AppResourceKind `json:"kind"`
	// App name that is unique within Splunk Cloud Platform.
	Name string `json:"name"`
	// Human-readable title for the app.
	Title string `json:"title"`
	// Array of permission templates that are used to grant permission to the app principal when a tenant subscribes.
	AppPrincipalPermissions []string `json:"appPrincipalPermissions,omitempty"`
	// Short paragraph describing the app.
	Description *string `json:"description,omitempty"`
	// The URL used to log in to the app.
	LoginUrl *string `json:"loginUrl,omitempty"`
	// The URL used to display the app's logo.
	LogoUrl *string `json:"logoUrl,omitempty"`
	// Array of URLs that can be used for redirect after logging into the app.
	RedirectUrls []string `json:"redirectUrls,omitempty"`
	// URL to redirect to after a subscription is created.
	SetupUrl *string `json:"setupUrl,omitempty"`
	// Array of permission filter templates that are used to intersect with a user's permissions when using the app.
	UserPermissionsFilter []string `json:"userPermissionsFilter,omitempty"`
	// URL that webhook events are sent to.
	WebhookUrl *string `json:"webhookUrl,omitempty"`
}

Required input for creating a service kind app.

type Servicer

type Servicer interface {
	/*
		CreateApp - appregistry service endpoint
		Creates an app.
		Parameters:
			createAppRequest: Creates a new app.
			resp: an optional pointer to a http.Response to be populated by this method. NOTE: only the first resp pointer will be used if multiple are provided
	*/
	CreateApp(createAppRequest CreateAppRequest, resp ...*http.Response) (*AppResponseCreateUpdate, error)
	/*
		CreateSubscription - appregistry service endpoint
		Creates a subscription.
		Parameters:
			appName: Creates a subscription between a tenant and an app.
			resp: an optional pointer to a http.Response to be populated by this method. NOTE: only the first resp pointer will be used if multiple are provided
	*/
	CreateSubscription(appName AppName, resp ...*http.Response) error
	/*
		DeleteApp - appregistry service endpoint
		Removes an app.
		Parameters:
			appName: App name.
			resp: an optional pointer to a http.Response to be populated by this method. NOTE: only the first resp pointer will be used if multiple are provided
	*/
	DeleteApp(appName string, resp ...*http.Response) error
	/*
		DeleteSubscription - appregistry service endpoint
		Removes a subscription.
		Parameters:
			appName: App name.
			resp: an optional pointer to a http.Response to be populated by this method. NOTE: only the first resp pointer will be used if multiple are provided
	*/
	DeleteSubscription(appName string, resp ...*http.Response) error
	/*
		GetApp - appregistry service endpoint
		Returns the metadata of an app.
		Parameters:
			appName: App name.
			resp: an optional pointer to a http.Response to be populated by this method. NOTE: only the first resp pointer will be used if multiple are provided
	*/
	GetApp(appName string, resp ...*http.Response) (*AppResponseGetList, error)
	/*
		GetKeys - appregistry service endpoint
		Returns a list of the public keys used for verifying signed webhook requests.
		Parameters:
			resp: an optional pointer to a http.Response to be populated by this method. NOTE: only the first resp pointer will be used if multiple are provided
	*/
	GetKeys(resp ...*http.Response) ([]Key, error)
	/*
		GetSubscription - appregistry service endpoint
		Returns or validates a subscription.
		Parameters:
			appName: App name.
			resp: an optional pointer to a http.Response to be populated by this method. NOTE: only the first resp pointer will be used if multiple are provided
	*/
	GetSubscription(appName string, resp ...*http.Response) (*Subscription, error)
	/*
		ListAppSubscriptions - appregistry service endpoint
		Returns the collection of subscriptions to an app.
		Parameters:
			appName: App name.
			resp: an optional pointer to a http.Response to be populated by this method. NOTE: only the first resp pointer will be used if multiple are provided
	*/
	ListAppSubscriptions(appName string, resp ...*http.Response) ([]Subscription, error)
	/*
		ListApps - appregistry service endpoint
		Returns a list of apps.
		Parameters:
			resp: an optional pointer to a http.Response to be populated by this method. NOTE: only the first resp pointer will be used if multiple are provided
	*/
	ListApps(resp ...*http.Response) ([]AppResponseGetList, error)
	/*
		ListSubscriptions - appregistry service endpoint
		Returns the tenant subscriptions.
		Parameters:
			query: a struct pointer of valid query parameters for the endpoint, nil to send no query parameters
			resp: an optional pointer to a http.Response to be populated by this method. NOTE: only the first resp pointer will be used if multiple are provided
	*/
	ListSubscriptions(query *ListSubscriptionsQueryParams, resp ...*http.Response) ([]Subscription, error)
	/*
		RotateSecret - appregistry service endpoint
		Rotates the client secret for an app.
		Parameters:
			appName: App name.
			resp: an optional pointer to a http.Response to be populated by this method. NOTE: only the first resp pointer will be used if multiple are provided
	*/
	RotateSecret(appName string, resp ...*http.Response) (*AppResponseCreateUpdate, error)
	/*
		UpdateApp - appregistry service endpoint
		Updates an app.
		Parameters:
			appName: App name.
			updateAppRequest: Updates app contents.
			resp: an optional pointer to a http.Response to be populated by this method. NOTE: only the first resp pointer will be used if multiple are provided
	*/
	UpdateApp(appName string, updateAppRequest UpdateAppRequest, resp ...*http.Response) (*AppResponseCreateUpdate, error)
}

Servicer represents the interface for implementing all endpoints for this service

type Subscription

type Subscription struct {
	// App name.
	AppName string `json:"appName"`
	// Time of subscription creation (UTC).
	CreatedAt string `json:"createdAt"`
	// The user who created the subscription.
	CreatedBy string `json:"createdBy"`
	// Short paragraph describing the app.
	Description string `json:"description"`
	// URL used to login to the app.
	LoginUrl string `json:"loginUrl"`
	// The URL used to display the app's logo.
	LogoUrl string `json:"logoUrl"`
	// Human-readable name for the application.
	Title string `json:"title"`
	// The tenant that is subscribed to the app.
	Tenant *string `json:"tenant,omitempty"`
}

type UpdateAppRequest

type UpdateAppRequest struct {
	// Array of permission templates that are used to grant permission to the app principal when a tenant subscribes.
	AppPrincipalPermissions []string `json:"appPrincipalPermissions,omitempty"`
	// Short paragraph describing the app.
	Description *string `json:"description,omitempty"`
	// The URL used to log in to the app.
	LoginUrl *string `json:"loginUrl,omitempty"`
	// The URL used to display the app's logo.
	LogoUrl *string `json:"logoUrl,omitempty"`
	// Array of URLs that can be used for redirect after logging into the app.
	RedirectUrls []string `json:"redirectUrls,omitempty"`
	// URL to redirect to after a subscription is created.
	SetupUrl *string `json:"setupUrl,omitempty"`
	// Human-readable title for the app.
	Title *string `json:"title,omitempty"`
	// Array of permission filter templates that are used to intersect with a user's permissions when using the app.
	UserPermissionsFilter []string `json:"userPermissionsFilter,omitempty"`
	// URL that webhook events are sent to.
	WebhookUrl *string `json:"webhookUrl,omitempty"`
}

type WebApp added in v1.2.1

type WebApp struct {
	// OAuth 2.0 Client ID.
	ClientId string `json:"clientId"`
	// OAuth 2.0 Client Secret string (used for confidential clients).
	ClientSecret string `json:"clientSecret"`
	// The date that the app was created.
	CreatedAt string `json:"createdAt"`
	// The principal who created this app.
	CreatedBy string          `json:"createdBy"`
	Kind      AppResourceKind `json:"kind"`
	// App name that is unique within Splunk Cloud Platform.
	Name string `json:"name"`
	// Array of URLs that can be used for redirect after logging into the app.
	RedirectUrls []string `json:"redirectUrls"`
	// Human-readable title for the app.
	Title string `json:"title"`
	// Array of permission templates that are used to grant permission to the app principal when a tenant subscribes.
	AppPrincipalPermissions []string `json:"appPrincipalPermissions,omitempty"`
	// Short paragraph describing the app.
	Description *string `json:"description,omitempty"`
	// The URL used to log in to the app.
	LoginUrl *string `json:"loginUrl,omitempty"`
	// The URL used to display the app's logo.
	LogoUrl *string `json:"logoUrl,omitempty"`
	// URL to redirect to after a subscription is created.
	SetupUrl *string `json:"setupUrl,omitempty"`
	// Array of permission filter templates that are used to intersect with a user's permissions when using the app.
	UserPermissionsFilter []string `json:"userPermissionsFilter,omitempty"`
	// URL that webhook events are sent to.
	WebhookUrl *string `json:"webhookUrl,omitempty"`
}

A web kind app.

type WebAppPost added in v1.2.1

type WebAppPost struct {
	Kind AppResourceKind `json:"kind"`
	// App name that is unique within Splunk Cloud Platform.
	Name string `json:"name"`
	// Array of URLs that can be used for redirect after logging into the app.
	RedirectUrls []string `json:"redirectUrls"`
	// Human-readable title for the app.
	Title string `json:"title"`
	// Array of permission templates that are used to grant permission to the app principal when a tenant subscribes.
	AppPrincipalPermissions []string `json:"appPrincipalPermissions,omitempty"`
	// Short paragraph describing the app.
	Description *string `json:"description,omitempty"`
	// The URL used to log in to the app.
	LoginUrl *string `json:"loginUrl,omitempty"`
	// The URL used to display the app's logo.
	LogoUrl *string `json:"logoUrl,omitempty"`
	// URL to redirect to after a subscription is created.
	SetupUrl *string `json:"setupUrl,omitempty"`
	// Array of permission filter templates that are used to intersect with a user's permissions when using the app.
	UserPermissionsFilter []string `json:"userPermissionsFilter,omitempty"`
	// URL that webhook events are sent to.
	WebhookUrl *string `json:"webhookUrl,omitempty"`
}

Required input for creating a web kind app.

Jump to

Keyboard shortcuts

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