Documentation
¶
Overview ¶
Package mdm provides support the HSDP Connect IoT services
Index ¶
- Constants
- Variables
- type Application
- type ApplicationsService
- func (a *ApplicationsService) CreateApplication(app Application) (*Application, *Response, error)
- func (a *ApplicationsService) GetApplicationByID(id string) (*Application, *Response, error)
- func (a *ApplicationsService) GetApplicationByName(name string) (*Application, *Response, error)
- func (a *ApplicationsService) GetApplications(opt *GetApplicationsOptions, options ...OptionFunc) (*[]Application, *Response, error)
- func (a *ApplicationsService) UpdateApplication(app Application) (*Application, *Response, error)
- type AuthenticationMethod
- type AuthenticationMethodsService
- func (c *AuthenticationMethodsService) Create(ac AuthenticationMethod) (*AuthenticationMethod, *Response, error)
- func (c *AuthenticationMethodsService) Delete(ac AuthenticationMethod) (bool, *Response, error)
- func (c *AuthenticationMethodsService) Find(opt *GetAuthenticationMethodOptions, options ...OptionFunc) (*[]AuthenticationMethod, *Response, error)
- func (c *AuthenticationMethodsService) GetByID(id string) (*AuthenticationMethod, *Response, error)
- func (c *AuthenticationMethodsService) Update(ac AuthenticationMethod) (*AuthenticationMethod, *Response, error)
- type BlobDataContract
- type BlobDataContractsService
- func (c *BlobDataContractsService) Create(ac BlobDataContract) (*BlobDataContract, *Response, error)
- func (c *BlobDataContractsService) Delete(ac BlobDataContract) (bool, *Response, error)
- func (c *BlobDataContractsService) Find(opt *GetBlobDataContractOptions, options ...OptionFunc) (*[]BlobDataContract, *Response, error)
- func (c *BlobDataContractsService) GetByID(id string) (*BlobDataContract, *Response, error)
- func (c *BlobDataContractsService) Update(ac BlobDataContract) (*BlobDataContract, *Response, error)
- type BlobSubscription
- type BlobSubscriptionsService
- func (c *BlobSubscriptionsService) Create(ac BlobSubscription) (*BlobSubscription, *Response, error)
- func (c *BlobSubscriptionsService) Delete(ac BlobSubscription) (bool, *Response, error)
- func (c *BlobSubscriptionsService) Find(opt *GetBlobSubscriptionOptions, options ...OptionFunc) (*[]BlobSubscription, *Response, error)
- func (c *BlobSubscriptionsService) GetByID(id string) (*BlobSubscription, *Response, error)
- func (c *BlobSubscriptionsService) Update(ac BlobSubscription) (*BlobSubscription, *Response, error)
- type Bucket
- type BucketsService
- func (c *BucketsService) Create(ac Bucket) (*Bucket, *Response, error)
- func (c *BucketsService) Delete(ac Bucket) (bool, *Response, error)
- func (c *BucketsService) Find(opt *GetBucketOptions, options ...OptionFunc) (*[]Bucket, *Response, error)
- func (c *BucketsService) GetByID(id string) (*Bucket, *Response, error)
- func (c *BucketsService) Update(ac Bucket) (*Bucket, *Response, error)
- type CORSConfiguration
- type Client
- func (c *Client) Close()
- func (c *Client) Do(req *http.Request, v interface{}) (*Response, error)
- func (c *Client) GetBaseURL() string
- func (c *Client) GetEndpointURL() string
- func (c *Client) NewRequest(method, requestPath string, opt interface{}, options ...OptionFunc) (*http.Request, error)
- func (c *Client) SetBaseURL(urlStr string) error
- type Config
- type DataAdapter
- type DataAdaptersService
- type DataBrokerSubscription
- type DataBrokerSubscriptionsService
- func (c *DataBrokerSubscriptionsService) Create(ac DataBrokerSubscription) (*DataBrokerSubscription, *Response, error)
- func (c *DataBrokerSubscriptionsService) Delete(ac DataBrokerSubscription) (bool, *Response, error)
- func (c *DataBrokerSubscriptionsService) Find(opt *GetDataBrokerSubscriptionOptions, options ...OptionFunc) (*[]DataBrokerSubscription, *Response, error)
- func (c *DataBrokerSubscriptionsService) GetByID(id string) (*DataBrokerSubscription, *Response, error)
- func (c *DataBrokerSubscriptionsService) Update(ac DataBrokerSubscription) (*DataBrokerSubscription, *Response, error)
- type DataSubscriber
- type DataSubscribersService
- type DataType
- type DataTypesService
- func (c *DataTypesService) Create(ac DataType) (*DataType, *Response, error)
- func (c *DataTypesService) Delete(ac DataType) (bool, *Response, error)
- func (c *DataTypesService) Find(opt *GetDataTypeOptions, options ...OptionFunc) (*[]DataType, *Response, error)
- func (c *DataTypesService) GetByID(id string) (*DataType, *Response, error)
- func (c *DataTypesService) Update(ac DataType) (*DataType, *Response, error)
- type DeviceGroup
- type DeviceGroupsService
- func (c *DeviceGroupsService) Create(ac DeviceGroup) (*DeviceGroup, *Response, error)
- func (c *DeviceGroupsService) Delete(ac DeviceGroup) (bool, *Response, error)
- func (c *DeviceGroupsService) Find(opt *GetDeviceGroupOptions, options ...OptionFunc) (*[]DeviceGroup, *Response, error)
- func (c *DeviceGroupsService) GetByID(id string) (*DeviceGroup, *Response, error)
- func (c *DeviceGroupsService) Update(ac DeviceGroup) (*DeviceGroup, *Response, error)
- type DeviceType
- type DeviceTypesService
- func (c *DeviceTypesService) Create(ac DeviceType) (*DeviceType, *Response, error)
- func (c *DeviceTypesService) Delete(ac DeviceType) (bool, *Response, error)
- func (c *DeviceTypesService) Find(opt *GetDeviceTypeOptions, options ...OptionFunc) (*[]DeviceType, *Response, error)
- func (c *DeviceTypesService) GetByID(id string) (*DeviceType, *Response, error)
- func (c *DeviceTypesService) Update(ac DeviceType) (*DeviceType, *Response, error)
- type EncryptionInfo
- type Fingerprint
- type FirmwareComponent
- type FirmwareComponentVersion
- type FirmwareComponentVersionsService
- func (c *FirmwareComponentVersionsService) Create(ac FirmwareComponentVersion) (*FirmwareComponentVersion, *Response, error)
- func (c *FirmwareComponentVersionsService) Delete(ac FirmwareComponentVersion) (bool, *Response, error)
- func (c *FirmwareComponentVersionsService) Find(opt *GetFirmwareComponentVersionOptions, options ...OptionFunc) (*[]FirmwareComponentVersion, *Response, error)
- func (c *FirmwareComponentVersionsService) GetByID(id string) (*FirmwareComponentVersion, *Response, error)
- func (c *FirmwareComponentVersionsService) Update(ac FirmwareComponentVersion) (*FirmwareComponentVersion, *Response, error)
- type FirmwareComponentsService
- func (c *FirmwareComponentsService) Create(ac FirmwareComponent) (*FirmwareComponent, *Response, error)
- func (c *FirmwareComponentsService) Delete(ac FirmwareComponent) (bool, *Response, error)
- func (c *FirmwareComponentsService) Find(opt *GetFirmwareComponentOptions, options ...OptionFunc) (*[]FirmwareComponent, *Response, error)
- func (c *FirmwareComponentsService) GetByID(id string) (*FirmwareComponent, *Response, error)
- func (c *FirmwareComponentsService) Update(ac FirmwareComponent) (*FirmwareComponent, *Response, error)
- type FirmwareDistributionRequest
- type FirmwareDistributionRequestsService
- func (c *FirmwareDistributionRequestsService) Create(ac FirmwareDistributionRequest) (*FirmwareDistributionRequest, *Response, error)
- func (c *FirmwareDistributionRequestsService) Delete(ac FirmwareDistributionRequest) (bool, *Response, error)
- func (c *FirmwareDistributionRequestsService) Find(opt *GetFirmwareDistributionRequestOptions, options ...OptionFunc) (*[]FirmwareDistributionRequest, *Response, error)
- func (c *FirmwareDistributionRequestsService) GetByID(id string) (*FirmwareDistributionRequest, *Response, error)
- func (c *FirmwareDistributionRequestsService) Update(ac FirmwareDistributionRequest) (*FirmwareDistributionRequest, *Response, error)
- type GetApplicationsOptions
- type GetAuthenticationMethodOptions
- type GetBlobDataContractOptions
- type GetBlobSubscriptionOptions
- type GetBucketOptions
- type GetDataAdapterOptions
- type GetDataBrokerSubscriptionOptions
- type GetDataSubscriberOptions
- type GetDataTypeOptions
- type GetDeviceGroupOptions
- type GetDeviceTypeOptions
- type GetFirmwareComponentOptions
- type GetFirmwareComponentVersionOptions
- type GetFirmwareDistributionRequestOptions
- type GetOAuthClientScopeOptions
- type GetOAuthClientsOptions
- type GetPropositionsOptions
- type GetRegionOptions
- type GetServiceActionOptions
- type GetServiceAgentOptions
- type GetServiceReferenceOptions
- type GetStandardServiceOptions
- type GetStorageClassOptions
- type GetSubscriberTypeOptions
- type Identifier
- type Meta
- type OAuthClient
- type OAuthClientScope
- type OAuthClientScopesService
- type OAuthClientsService
- func (c *OAuthClientsService) CreateOAuthClient(ac OAuthClient) (*OAuthClient, *Response, error)
- func (c *OAuthClientsService) DeleteOAuthClient(ac OAuthClient) (bool, *Response, error)
- func (c *OAuthClientsService) GetOAuthClientByID(id string) (*OAuthClient, *Response, error)
- func (c *OAuthClientsService) GetOAuthClients(opt *GetOAuthClientsOptions, options ...OptionFunc) (*[]OAuthClient, *Response, error)
- func (c *OAuthClientsService) Update(ac OAuthClient) (*OAuthClient, *Response, error)
- func (c *OAuthClientsService) UpdateScopes(ac OAuthClient, scopes []string, defaultScopes []string) (bool, *Response, error)
- func (c *OAuthClientsService) UpdateScopesByFlag(ac OAuthClient, scopes []string, defaultScopes []string, ...) (bool, *Response, error)
- type OptionFunc
- type Proposition
- type PropositionsService
- func (p *PropositionsService) CreateProposition(prop Proposition) (*Proposition, *Response, error)
- func (p *PropositionsService) GetProposition(opt *GetPropositionsOptions, options ...OptionFunc) (*Proposition, *Response, error)
- func (p *PropositionsService) GetPropositionByID(id string) (*Proposition, *Response, error)
- func (p *PropositionsService) GetPropositions(opt *GetPropositionsOptions, options ...OptionFunc) (*[]Proposition, *Response, error)
- func (p *PropositionsService) UpdateProposition(prop Proposition) (*Proposition, *Response, error)
- type Reference
- type Region
- type RegionsService
- type ResourceLimitsService
- type ResourcesLimits
- type Response
- type ServiceAction
- type ServiceActionsService
- func (c *ServiceActionsService) Create(ac ServiceAction) (*ServiceAction, *Response, error)
- func (c *ServiceActionsService) Delete(ac ServiceAction) (bool, *Response, error)
- func (c *ServiceActionsService) Find(opt *GetServiceActionOptions, options ...OptionFunc) (*[]ServiceAction, *Response, error)
- func (c *ServiceActionsService) GetByID(id string) (*ServiceAction, *Response, error)
- func (c *ServiceActionsService) Update(ac ServiceAction) (*ServiceAction, *Response, error)
- type ServiceAgent
- type ServiceAgentsService
- type ServiceReference
- type ServiceReferencesService
- func (c *ServiceReferencesService) Create(ac ServiceReference) (*ServiceReference, *Response, error)
- func (c *ServiceReferencesService) Delete(ac ServiceReference) (bool, *Response, error)
- func (c *ServiceReferencesService) Find(opt *GetServiceReferenceOptions, options ...OptionFunc) (*[]ServiceReference, *Response, error)
- func (c *ServiceReferencesService) GetByID(id string) (*ServiceReference, *Response, error)
- func (c *ServiceReferencesService) Update(ac ServiceReference) (*ServiceReference, *Response, error)
- type ServiceURL
- type StandardService
- type StandardServicesService
- func (c *StandardServicesService) CreateStandardService(ac StandardService) (*StandardService, *Response, error)
- func (c *StandardServicesService) DeleteStandardService(ac StandardService) (bool, *Response, error)
- func (c *StandardServicesService) GetStandardServiceByID(id string) (*StandardService, *Response, error)
- func (c *StandardServicesService) GetStandardServices(opt *GetStandardServiceOptions, options ...OptionFunc) (*[]StandardService, *Response, error)
- func (c *StandardServicesService) Update(ac StandardService) (*StandardService, *Response, error)
- type StorageClass
- type StorageClassService
- type SubscriberType
- type SubscriberTypesService
Constants ¶
const (
APIVersion = "1"
)
Variables ¶
var ( ErrNotFound = errors.New("entity not found") ErrBaseURLCannotBeEmpty = errors.New("base URL cannot be empty") ErrEmptyResult = errors.New("empty result") ErrOperationFailed = errors.New("operation failed") ErrCouldNoReadResourceAfterCreate = errors.New("could not read resource after create") )
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct { ResourceType string `json:"resourceType" validate:"required"` ID string `json:"id,omitempty"` Name string `json:"name" validate:"required"` Description string `json:"description"` PropositionID Reference `json:"propositionId"` GlobalReferenceID string `json:"globalReferenceId"` ApplicationGuid *Identifier `json:"applicationGuid,omitempty"` DefaultGroupGuid *Identifier `json:"defaultGroupGuid,omitempty"` Meta *Meta `json:"meta,omitempty"` }
Application represents an MDM Application entity
type ApplicationsService ¶
type ApplicationsService struct { *Client // contains filtered or unexported fields }
ApplicationsService implements actions on IAM Application entities
func (*ApplicationsService) CreateApplication ¶
func (a *ApplicationsService) CreateApplication(app Application) (*Application, *Response, error)
CreateApplication creates a Application
func (*ApplicationsService) GetApplicationByID ¶
func (a *ApplicationsService) GetApplicationByID(id string) (*Application, *Response, error)
GetApplicationByID retrieves an Application by its ID
func (*ApplicationsService) GetApplicationByName ¶
func (a *ApplicationsService) GetApplicationByName(name string) (*Application, *Response, error)
GetApplicationByName retrieves an Application by its Name
func (*ApplicationsService) GetApplications ¶
func (a *ApplicationsService) GetApplications(opt *GetApplicationsOptions, options ...OptionFunc) (*[]Application, *Response, error)
GetApplications search for an Applications entity based on the GetApplicationsOptions values
func (*ApplicationsService) UpdateApplication ¶
func (a *ApplicationsService) UpdateApplication(app Application) (*Application, *Response, error)
UpdateApplication creates a Application
type AuthenticationMethod ¶
type AuthenticationMethod struct { ResourceType string `json:"resourceType" validate:"required"` ID string `json:"id,omitempty"` Name string `json:"name" validate:"required,min=1,max=20"` Description string `json:"description"` LoginName string `json:"loginName" validate:"required,min=1,max=78"` Password string `json:"password" validate:"required,min=1,max=50"` ClientID string `json:"clientId" validate:"required,min=1,max=78"` ClientSecret string `json:"clientSecret" validate:"required,min=1,max=78"` AuthURL string `json:"authUrl,omitempty"` AuthMethod string `json:"authMethod,omitempty"` APIVersion string `json:"apiVersion,omitempty"` OrganizationGuid *Identifier `json:"organizationGuid,omitempty"` Meta *Meta `json:"meta,omitempty"` }
type AuthenticationMethodsService ¶
type AuthenticationMethodsService struct { *Client // contains filtered or unexported fields }
func (*AuthenticationMethodsService) Create ¶
func (c *AuthenticationMethodsService) Create(ac AuthenticationMethod) (*AuthenticationMethod, *Response, error)
Create creates a AuthenticationMethod
func (*AuthenticationMethodsService) Delete ¶
func (c *AuthenticationMethodsService) Delete(ac AuthenticationMethod) (bool, *Response, error)
Delete deletes the given ServiceAction
func (*AuthenticationMethodsService) Find ¶
func (c *AuthenticationMethodsService) Find(opt *GetAuthenticationMethodOptions, options ...OptionFunc) (*[]AuthenticationMethod, *Response, error)
Find looks up services based on GetServiceActionOptions
func (*AuthenticationMethodsService) GetByID ¶
func (c *AuthenticationMethodsService) GetByID(id string) (*AuthenticationMethod, *Response, error)
GetByID finds a client by its ID
func (*AuthenticationMethodsService) Update ¶
func (c *AuthenticationMethodsService) Update(ac AuthenticationMethod) (*AuthenticationMethod, *Response, error)
Update updates a standard service
type BlobDataContract ¶
type BlobDataContract struct { ResourceType string `json:"resourceType" validate:"required"` ID string `json:"id,omitempty"` Name string `json:"name" validate:"required,min=1,max=20"` DataTypeID Reference `json:"dataTypeId" validate:"required"` BucketID Reference `json:"bucketId" validate:"required"` StorageClassID Reference `json:"storageClassId" validate:"required"` RootPathInBucket string `json:"rootPathInBucket" validate:"required,max=256"` LoggingEnabled bool `json:"loggingEnabled"` CrossRegionReplicationEnabled bool `json:"crossRegionReplicationEnabled"` Meta *Meta `json:"meta,omitempty"` }
type BlobDataContractsService ¶
type BlobDataContractsService struct { *Client // contains filtered or unexported fields }
func (*BlobDataContractsService) Create ¶
func (c *BlobDataContractsService) Create(ac BlobDataContract) (*BlobDataContract, *Response, error)
Create creates a BlobDataContract
func (*BlobDataContractsService) Delete ¶
func (c *BlobDataContractsService) Delete(ac BlobDataContract) (bool, *Response, error)
Delete deletes the given ServiceAction
func (*BlobDataContractsService) Find ¶
func (c *BlobDataContractsService) Find(opt *GetBlobDataContractOptions, options ...OptionFunc) (*[]BlobDataContract, *Response, error)
Find looks up services based on GetServiceActionOptions
func (*BlobDataContractsService) GetByID ¶
func (c *BlobDataContractsService) GetByID(id string) (*BlobDataContract, *Response, error)
GetByID finds a client by its ID
func (*BlobDataContractsService) Update ¶
func (c *BlobDataContractsService) Update(ac BlobDataContract) (*BlobDataContract, *Response, error)
Update updates a standard service
type BlobSubscription ¶
type BlobSubscription struct { ResourceType string `json:"resourceType" validate:"required"` ID string `json:"id,omitempty"` Name string `json:"name" validate:"required,max=64"` Description string `json:"description" validate:"omitempty,max=250"` DataTypeId Reference `json:"dataTypeId" validate:"required"` NotificationTopicGuid Identifier `json:"notificationTopicGuid" validate:"required,dive"` Meta *Meta `json:"meta,omitempty"` }
type BlobSubscriptionsService ¶
type BlobSubscriptionsService struct { *Client // contains filtered or unexported fields }
func (*BlobSubscriptionsService) Create ¶
func (c *BlobSubscriptionsService) Create(ac BlobSubscription) (*BlobSubscription, *Response, error)
Create creates a BlobSubscription
func (*BlobSubscriptionsService) Delete ¶
func (c *BlobSubscriptionsService) Delete(ac BlobSubscription) (bool, *Response, error)
Delete deletes the given ServiceAction
func (*BlobSubscriptionsService) Find ¶
func (c *BlobSubscriptionsService) Find(opt *GetBlobSubscriptionOptions, options ...OptionFunc) (*[]BlobSubscription, *Response, error)
Find looks up services based on GetServiceActionOptions
func (*BlobSubscriptionsService) GetByID ¶
func (c *BlobSubscriptionsService) GetByID(id string) (*BlobSubscription, *Response, error)
GetByID finds a client by its ID
func (*BlobSubscriptionsService) Update ¶
func (c *BlobSubscriptionsService) Update(ac BlobSubscription) (*BlobSubscription, *Response, error)
Update updates a standard service
type Bucket ¶
type Bucket struct { ResourceType string `json:"resourceType" validate:"required"` ID string `json:"id,omitempty"` Name string `json:"name" validate:"required"` Description string `json:"description"` PropositionID Reference `json:"propositionId" validate:"required"` DefaultRegionID Reference `json:"defaultRegionId" validate:"required"` ReplicationRegionID *Reference `json:"replicationRegionId,omitempty" validate:"omitempty,dive"` VersioningEnabled bool `json:"versioningEnabled"` LoggingEnabled bool `json:"loggingEnabled"` CrossRegionReplicationEnabled bool `json:"crossRegionReplicationEnabled"` AuditingEnabled bool `json:"auditingEnabled"` EnableCDN bool `json:"enableCDN"` CacheControlAge int `json:"cacheControlAge,omitempty" validate:"omitempty,min=300,max=1800"` CorsConfiguration []CORSConfiguration `json:"corsConfiguration,omitempty" validate:"omitempty,dive"` Meta *Meta `json:"meta,omitempty"` }
type BucketsService ¶
type BucketsService struct { *Client // contains filtered or unexported fields }
func (*BucketsService) Create ¶
func (c *BucketsService) Create(ac Bucket) (*Bucket, *Response, error)
Create creates a Bucket
func (*BucketsService) Delete ¶
func (c *BucketsService) Delete(ac Bucket) (bool, *Response, error)
Delete deletes the given ServiceAction
func (*BucketsService) Find ¶
func (c *BucketsService) Find(opt *GetBucketOptions, options ...OptionFunc) (*[]Bucket, *Response, error)
Find looks up services based on GetBucketOptions
type CORSConfiguration ¶
type CORSConfiguration struct { AllowedOrigins []string `json:"allowedOrigins" validate:"required"` AllowedMethods []string `json:"allowedMethods" validate:"required,dive,oneof=GET POST PUT DELETE HEAD"` AllowedHeaders []string `json:"allowedHeaders,omitempty"` MaxAgeSeconds int `json:"maxAgeSeconds"` ExposeHeaders []string `json:"exposeHeaders,omitempty"` }
type Client ¶
type Client struct { // HTTP Client used to communicate with IAM API *iam.Client // User agent used when communicating with the HSDP Notification API UserAgent string Propositions *PropositionsService Applications *ApplicationsService Regions *RegionsService StorageClasses *StorageClassService OAuthClientScopes *OAuthClientScopesService OAuthClients *OAuthClientsService StandardServices *StandardServicesService ServiceActions *ServiceActionsService DeviceGroups *DeviceGroupsService DeviceTypes *DeviceTypesService AuthenticationMethods *AuthenticationMethodsService ServiceReferences *ServiceReferencesService Buckets *BucketsService DataTypes *DataTypesService BlobDataContracts *BlobDataContractsService DataBrokerSubscriptions *DataBrokerSubscriptionsService BlobSubscriptions *BlobSubscriptionsService FirmwareComponents *FirmwareComponentsService FirmwareComponentVersions *FirmwareComponentVersionsService ResourcesLimits *ResourceLimitsService SubscriberTypes *SubscriberTypesService DataAdapters *DataAdaptersService DataSubscribers *DataSubscribersService FirmwareDistributionRequests *FirmwareDistributionRequestsService ServiceAgents *ServiceAgentsService // contains filtered or unexported fields }
A Client manages communication with HSDP AI APIs
func (*Client) Do ¶
Do executes a http request. If v implements the io.Writer interface, the raw response body will be written to v, without attempting to first decode it.
func (*Client) GetBaseURL ¶
GetBaseURL returns the base URL as configured
func (*Client) GetEndpointURL ¶
GetEndpointURL returns the Discovery Endpoint URL as configured
func (*Client) NewRequest ¶
func (*Client) SetBaseURL ¶
SetBaseURL sets the base URL for API requests
type DataAdapter ¶
type DataAdaptersService ¶
type DataAdaptersService struct {
*Client
}
func (*DataAdaptersService) Get ¶
func (r *DataAdaptersService) Get(opt *GetDataAdapterOptions) (*[]DataAdapter, *Response, error)
func (*DataAdaptersService) GetByID ¶
func (r *DataAdaptersService) GetByID(id string) (*DataAdapter, *Response, error)
type DataBrokerSubscription ¶
type DataBrokerSubscription struct { ResourceType string `json:"resourceType" validate:"required"` ID string `json:"id,omitempty"` Name string `json:"name" validate:"required,max=20"` Description string `json:"description" validate:"omitempty,max=250"` ServiceAgentId string `json:"serviceAgentId" validate:"required"` DataSubscriberId Reference `json:"dataSubscriberId" validate:"required"` DataAdapterId Reference `json:"dataAdapterId" validate:"required"` AuthenticationMethodId Reference `json:"authenticationMethodId" validate:"required"` DataTypeID Reference `json:"dataTypeId" validate:"required"` Configuration json.RawMessage `json:"configuration,omitempty"` Meta *Meta `json:"meta,omitempty"` }
type DataBrokerSubscriptionsService ¶
type DataBrokerSubscriptionsService struct { *Client // contains filtered or unexported fields }
func (*DataBrokerSubscriptionsService) Create ¶
func (c *DataBrokerSubscriptionsService) Create(ac DataBrokerSubscription) (*DataBrokerSubscription, *Response, error)
Create creates a DataBrokerSubscription
func (*DataBrokerSubscriptionsService) Delete ¶
func (c *DataBrokerSubscriptionsService) Delete(ac DataBrokerSubscription) (bool, *Response, error)
Delete deletes the given ServiceAction
func (*DataBrokerSubscriptionsService) Find ¶
func (c *DataBrokerSubscriptionsService) Find(opt *GetDataBrokerSubscriptionOptions, options ...OptionFunc) (*[]DataBrokerSubscription, *Response, error)
Find looks up services based on GetServiceActionOptions
func (*DataBrokerSubscriptionsService) GetByID ¶
func (c *DataBrokerSubscriptionsService) GetByID(id string) (*DataBrokerSubscription, *Response, error)
GetByID finds a client by its ID
func (*DataBrokerSubscriptionsService) Update ¶
func (c *DataBrokerSubscriptionsService) Update(ac DataBrokerSubscription) (*DataBrokerSubscription, *Response, error)
Update updates a standard service
type DataSubscriber ¶
type DataSubscriber struct { ResourceType string `json:"resourceType"` ID string `json:"id"` Name string `json:"name"` SubscriberGuid Identifier `json:"subscriberGuid"` SubscriberTypeId Reference `json:"subscriberTypeId"` Configuration json.RawMessage `json:"configuration"` Meta *Meta `json:"meta"` }
type DataSubscribersService ¶
type DataSubscribersService struct {
*Client
}
func (*DataSubscribersService) Get ¶
func (r *DataSubscribersService) Get(opt *GetDataSubscriberOptions) (*[]DataSubscriber, *Response, error)
func (*DataSubscribersService) GetByID ¶
func (r *DataSubscribersService) GetByID(id string) (*DataSubscriber, *Response, error)
type DataType ¶
type DataType struct { ResourceType string `json:"resourceType" validate:"required"` ID string `json:"id,omitempty"` Name string `json:"name" validate:"required"` Description string `json:"description"` Tags []string `json:"tags,omitempty" validate:"omitempty"` PropositionId Reference `json:"propositionId" validate:"required"` Meta *Meta `json:"meta,omitempty"` }
type DataTypesService ¶
type DataTypesService struct { *Client // contains filtered or unexported fields }
func (*DataTypesService) Create ¶
func (c *DataTypesService) Create(ac DataType) (*DataType, *Response, error)
Create creates a DataType
func (*DataTypesService) Delete ¶
func (c *DataTypesService) Delete(ac DataType) (bool, *Response, error)
Delete deletes the given ServiceAction
func (*DataTypesService) Find ¶
func (c *DataTypesService) Find(opt *GetDataTypeOptions, options ...OptionFunc) (*[]DataType, *Response, error)
Find looks up services based on GetServiceActionOptions
type DeviceGroup ¶
type DeviceGroup struct { ResourceType string `json:"resourceType" validate:"required"` ID string `json:"id,omitempty"` Name string `json:"name" validate:"required"` Description string `json:"description"` ApplicationId Reference `json:"applicationId"` DefaultGroupGuid *Identifier `json:"defaultGroupGuid,omitempty"` }
type DeviceGroupsService ¶
type DeviceGroupsService struct { *Client // contains filtered or unexported fields }
func (*DeviceGroupsService) Create ¶
func (c *DeviceGroupsService) Create(ac DeviceGroup) (*DeviceGroup, *Response, error)
Create creates a DeviceGroup
func (*DeviceGroupsService) Delete ¶
func (c *DeviceGroupsService) Delete(ac DeviceGroup) (bool, *Response, error)
Delete deletes the given ServiceAction
func (*DeviceGroupsService) Find ¶
func (c *DeviceGroupsService) Find(opt *GetDeviceGroupOptions, options ...OptionFunc) (*[]DeviceGroup, *Response, error)
Find looks up services based on GetServiceActionOptions
func (*DeviceGroupsService) GetByID ¶
func (c *DeviceGroupsService) GetByID(id string) (*DeviceGroup, *Response, error)
GetByID finds a client by its ID
func (*DeviceGroupsService) Update ¶
func (c *DeviceGroupsService) Update(ac DeviceGroup) (*DeviceGroup, *Response, error)
Update updates a standard service
type DeviceType ¶
type DeviceType struct { ResourceType string `json:"resourceType" validate:"required"` ID string `json:"id,omitempty"` Name string `json:"name" validate:"required"` Description string `json:"description"` CTN string `json:"ctn" validate:"required"` // Commercial Type Number DeviceGroupId Reference `json:"deviceGroupId"` DefaultGroupGuid *Identifier `json:"defaultGroupGuid,omitempty"` CustomTypeAttributes json.RawMessage `json:"customTypeAttributes,omitempty"` Meta *Meta `json:"meta,omitempty"` }
type DeviceTypesService ¶
type DeviceTypesService struct { *Client // contains filtered or unexported fields }
func (*DeviceTypesService) Create ¶
func (c *DeviceTypesService) Create(ac DeviceType) (*DeviceType, *Response, error)
Create creates a DeviceType
func (*DeviceTypesService) Delete ¶
func (c *DeviceTypesService) Delete(ac DeviceType) (bool, *Response, error)
Delete deletes the given DeviceType
func (*DeviceTypesService) Find ¶
func (c *DeviceTypesService) Find(opt *GetDeviceTypeOptions, options ...OptionFunc) (*[]DeviceType, *Response, error)
Find looks up services based on GetDeviceTypeOptions
func (*DeviceTypesService) GetByID ¶
func (c *DeviceTypesService) GetByID(id string) (*DeviceType, *Response, error)
GetByID finds a client by its ID
func (*DeviceTypesService) Update ¶
func (c *DeviceTypesService) Update(ac DeviceType) (*DeviceType, *Response, error)
Update updates a standard service
type EncryptionInfo ¶
type Fingerprint ¶
type FirmwareComponent ¶
type FirmwareComponent struct { ResourceType string `json:"resourceType" validate:"required"` ID string `json:"id,omitempty"` Name string `json:"name" validate:"required,max=255"` Description string `json:"description" validate:"omitempty,max=250"` MainComponent bool `json:"mainComponent"` DeviceTypeId Reference `json:"deviceTypeId" validate:"required,dive"` Meta *Meta `json:"meta,omitempty"` }
type FirmwareComponentVersion ¶
type FirmwareComponentVersion struct { ResourceType string `json:"resourceType" validate:"required"` ID string `json:"id,omitempty"` Version string `json:"version" validate:"required,min=1,max=20"` Description string `json:"description" validate:"omitempty,max=250"` Size int `json:"size"` BlobURL string `json:"blobUrl" validate:"omitempty,max=1024"` ComponentRequired bool `json:"componentRequired"` FingerPrint *Fingerprint `json:"fingerPrint,omitempty" validate:"omitempty,dive"` EncryptionInfo *EncryptionInfo `json:"encryptionInfo,omitempty" validate:"omitempty,dive"` FirmwareComponentId Reference `json:"firmwareComponentId" validate:"required"` PreviousComponentVersionId *Reference `json:"previousComponentVersionId,omitempty" validate:"omitempty,dive"` EffectiveDate string `json:"effectiveDate" validate:"required"` DeprecatedDate string `json:"deprecatedDate,omitempty"` CustomResource json.RawMessage `json:"customResource,omitempty" validate:"omitempty,max=2048"` Meta *Meta `json:"meta,omitempty"` }
type FirmwareComponentVersionsService ¶
type FirmwareComponentVersionsService struct { *Client // contains filtered or unexported fields }
func (*FirmwareComponentVersionsService) Create ¶
func (c *FirmwareComponentVersionsService) Create(ac FirmwareComponentVersion) (*FirmwareComponentVersion, *Response, error)
Create creates a FirmwareComponentVersion
func (*FirmwareComponentVersionsService) Delete ¶
func (c *FirmwareComponentVersionsService) Delete(ac FirmwareComponentVersion) (bool, *Response, error)
Delete deletes the given FirmwareComponentVersion
func (*FirmwareComponentVersionsService) Find ¶
func (c *FirmwareComponentVersionsService) Find(opt *GetFirmwareComponentVersionOptions, options ...OptionFunc) (*[]FirmwareComponentVersion, *Response, error)
Find looks up services based on GetFirmwareComponentVersionOptions
func (*FirmwareComponentVersionsService) GetByID ¶
func (c *FirmwareComponentVersionsService) GetByID(id string) (*FirmwareComponentVersion, *Response, error)
GetByID finds a client by its ID
func (*FirmwareComponentVersionsService) Update ¶
func (c *FirmwareComponentVersionsService) Update(ac FirmwareComponentVersion) (*FirmwareComponentVersion, *Response, error)
Update updates a standard service
type FirmwareComponentsService ¶
type FirmwareComponentsService struct { *Client // contains filtered or unexported fields }
func (*FirmwareComponentsService) Create ¶
func (c *FirmwareComponentsService) Create(ac FirmwareComponent) (*FirmwareComponent, *Response, error)
Create creates a FirmwareComponent
func (*FirmwareComponentsService) Delete ¶
func (c *FirmwareComponentsService) Delete(ac FirmwareComponent) (bool, *Response, error)
Delete deletes the given FirmwareComponent
func (*FirmwareComponentsService) Find ¶
func (c *FirmwareComponentsService) Find(opt *GetFirmwareComponentOptions, options ...OptionFunc) (*[]FirmwareComponent, *Response, error)
Find looks up services based on GetFirmwareComponentOptions
func (*FirmwareComponentsService) GetByID ¶
func (c *FirmwareComponentsService) GetByID(id string) (*FirmwareComponent, *Response, error)
GetByID finds a client by its ID
func (*FirmwareComponentsService) Update ¶
func (c *FirmwareComponentsService) Update(ac FirmwareComponent) (*FirmwareComponent, *Response, error)
Update updates a standard service
type FirmwareDistributionRequest ¶ added in v0.50.2
type FirmwareDistributionRequest struct { ResourceType string `json:"resourceType" validate:"required"` ID string `json:"id,omitempty"` Status string `json:"status" validate:"required"` UserConsentRequired bool `json:"userConsentRequired"` DistributionTargets []Reference `json:"distributionTarget" validate:"required,min=1,max=10"` FirmwareVersion string `json:"firmwareVersion" validate:"required"` OrchestrationMode string `json:"orchestrationMode" validate:"required,oneof=none continuous snapshot"` FirmwareComponentVersions []Reference `json:"firmwareComponentVersions" validate:"required,min=1,max=5"` Description string `json:"description" validate:"omitempty,max=250"` }
type FirmwareDistributionRequestsService ¶ added in v0.50.2
type FirmwareDistributionRequestsService struct { *Client // contains filtered or unexported fields }
func (*FirmwareDistributionRequestsService) Create ¶ added in v0.50.2
func (c *FirmwareDistributionRequestsService) Create(ac FirmwareDistributionRequest) (*FirmwareDistributionRequest, *Response, error)
Create creates a FirmwareDistributionRequest
func (*FirmwareDistributionRequestsService) Delete ¶ added in v0.50.2
func (c *FirmwareDistributionRequestsService) Delete(ac FirmwareDistributionRequest) (bool, *Response, error)
Delete deletes the given FirmwareDistributionRequest
func (*FirmwareDistributionRequestsService) Find ¶ added in v0.50.2
func (c *FirmwareDistributionRequestsService) Find(opt *GetFirmwareDistributionRequestOptions, options ...OptionFunc) (*[]FirmwareDistributionRequest, *Response, error)
Find looks up services based on GetFirmwareDistributionRequestOptions
func (*FirmwareDistributionRequestsService) GetByID ¶ added in v0.50.2
func (c *FirmwareDistributionRequestsService) GetByID(id string) (*FirmwareDistributionRequest, *Response, error)
GetByID finds a client by its ID
func (*FirmwareDistributionRequestsService) Update ¶ added in v0.50.2
func (c *FirmwareDistributionRequestsService) Update(ac FirmwareDistributionRequest) (*FirmwareDistributionRequest, *Response, error)
Update updates a standard service
type GetApplicationsOptions ¶
type GetApplicationsOptions struct { ID *string `url:"_id,omitempty"` PropositionID *string `url:"propositionId,omitempty"` GlobalReferenceID *string `url:"globalReferenceGuid,omitempty"` Name *string `url:"name,omitempty"` DefaultGroupID *string `url:"defaultGroupGuid,omitempty"` }
GetApplicationsOptions specifies what search criteria can be used to look for entities
type GetAuthenticationMethodOptions ¶
type GetAuthenticationMethodOptions struct { ID *string `url:"_id,omitempty"` Name *string `url:"name,omitempty"` ApplicationID *string `url:"applicationId,omitempty"` }
GetAuthenticationMethodOptions struct describes search criteria for looking up authentication methods
type GetBlobDataContractOptions ¶
type GetBlobDataContractOptions struct { ID *string `url:"_id,omitempty"` Name *string `url:"name,omitempty"` }
GetBlobDataContractOptions struct describes search criteria for looking up BlobDataContract
type GetBlobSubscriptionOptions ¶
type GetBlobSubscriptionOptions struct { ID *string `url:"_id,omitempty"` Name *string `url:"name,omitempty"` }
GetBlobSubscriptionOptions struct describes search criteria for looking up BlobSubscription
type GetBucketOptions ¶
type GetBucketOptions struct { ID *string `url:"_id,omitempty"` Name *string `url:"name,omitempty"` PropositionID *string `url:"propositionId,omitempty"` ReplicationRegionID *string `url:"replicationRegionId,omitempty"` DefaultRegionID *string `url:"defaultRegionId,omitempty"` LastUpdated *string `url:"_lastUpdated,omitempty"` ReverseInclude *string `url:"_revinclude,omitempty"` Include *string `url:"_include,omitempty"` }
GetBucketOptions struct describes search criteria for looking up Bucket
type GetDataAdapterOptions ¶
type GetDataAdapterOptions struct { LastUpdate *string `url:"_lastUpdated,omitempty"` ReverseInclude *string `url:"_revinclude,omitempty"` Include *string `url:"_include,omitempty"` ID *string `url:"_id,omitempty"` Name *string `url:"name,omitempty"` SubscriberTypeID *string `url:"subscriberTypeId,omitempty"` SubscriberTypeFGUID *string `url:"subscriberGuid,omitempty"` }
type GetDataBrokerSubscriptionOptions ¶
type GetDataBrokerSubscriptionOptions struct { ID *string `url:"_id,omitempty"` Name *string `url:"name,omitempty"` PropositionID *string `url:"propositionId,omitempty"` }
GetDataBrokerSubscriptionOptions struct describes search criteria for looking up DataBrokerSubscription
type GetDataSubscriberOptions ¶
type GetDataSubscriberOptions struct { LastUpdate *string `url:"_lastUpdated,omitempty"` ReverseInclude *string `url:"_revinclude,omitempty"` Include *string `url:"_include,omitempty"` ID *string `url:"_id,omitempty"` Name *string `url:"name,omitempty"` SubscriberTypeID *string `url:"subscriberTypeId,omitempty"` SubscriberTypeFGUID *string `url:"subscriberGuid,omitempty"` }
type GetDataTypeOptions ¶
type GetDataTypeOptions struct { ID *string `url:"_id,omitempty"` Name *string `url:"name,omitempty"` PropositionID *string `url:"propositionId,omitempty"` }
GetDataTypeOptions struct describes search criteria for looking up DataType
type GetDeviceGroupOptions ¶
type GetDeviceGroupOptions struct { ID *string `url:"_id,omitempty"` Name *string `url:"name,omitempty"` ApplicationID *string `url:"applicationId,omitempty"` }
GetDeviceGroupOptions struct describes search criteria for looking up device group
type GetDeviceTypeOptions ¶
type GetDeviceTypeOptions struct { ID *string `url:"_id,omitempty"` Name *string `url:"name,omitempty"` ApplicationID *string `url:"applicationId,omitempty"` }
GetDeviceTypeOptions struct describes search criteria for looking up device types
type GetFirmwareComponentOptions ¶
type GetFirmwareComponentOptions struct { ID *string `url:"_id,omitempty"` Name *string `url:"name,omitempty"` ApplicationID *string `url:"applicationId,omitempty"` }
GetFirmwareComponentOptions struct describes search criteria for looking up a FirmwareComponent
type GetFirmwareComponentVersionOptions ¶
type GetFirmwareComponentVersionOptions struct { ID *string `url:"_id,omitempty"` Name *string `url:"name,omitempty"` ApplicationID *string `url:"applicationId,omitempty"` }
GetFirmwareComponentVersionOptions struct describes search criteria for looking up FirmwareComponentVersion
type GetFirmwareDistributionRequestOptions ¶ added in v0.50.2
type GetFirmwareDistributionRequestOptions struct { ID *string `url:"_id,omitempty"` Name *string `url:"name,omitempty"` ApplicationID *string `url:"applicationId,omitempty"` }
GetFirmwareDistributionRequestOptions struct describes search criteria for looking up FirmwareDistributionRequest
type GetOAuthClientScopeOptions ¶
type GetOAuthClientScopeOptions struct { ID *string `url:"_id,omitempty"` LastUpdate *string `url:"_lastUpdated,omitempty"` Organization *string `url:"organization,omitempty"` Proposition *string `url:"proposition,omitempty"` Action *string `url:"service,omitempty"` Service *string `url:"action,omitempty"` }
type GetOAuthClientsOptions ¶
type GetOAuthClientsOptions struct { ID *string `url:"_id,omitempty"` Name *string `url:"name,omitempty"` GlobalReferenceID *string `url:"globalReferenceId,omitempty"` ApplicationID *string `url:"applicationId,omitempty"` }
GetOAuthClientsOptions describes search criteria for looking up roles
type GetPropositionsOptions ¶
type GetPropositionsOptions struct { ID *string `url:"_id,omitempty"` Count *int `url:"_count,omitempty"` Page *int `url:"_page,omitempty"` OrganizationID *string `url:"organizationGuid,omitempty"` PropositionID *string `url:"propositionGuid,omitempty"` GlobalReferenceID *string `url:"globalReferenceGuid,omitempty"` Name *string `url:"name,omitempty"` AuthenticationMethodID *string `url:"authenticationMethodId,omitempty"` }
GetPropositionsOptions specifies what search criteria can be used to look for entities
type GetRegionOptions ¶
type GetRegionOptions struct { LastUpdate *string `url:"_lastUpdated,omitempty"` ReverseInclude *string `url:"_revinclude,omitempty"` Include *string `url:"_include,omitempty"` ID *string `url:"_id,omitempty"` Name *string `url:"name,omitempty"` Category *string `url:"category,omitempty"` HSDPEnabled *bool `url:"hsdpEnabled,omitempty"` }
type GetServiceActionOptions ¶
type GetServiceActionOptions struct { ID *string `url:"_id,omitempty"` Name *string `url:"name,omitempty"` StandardServiceID *string `url:"standardServiceId,omitempty"` OrganizationGuidValue *string `url:"organizationGuid:value,omitempty"` }
GetServiceActionOptions struct describes search criteria for looking up service actions
type GetServiceAgentOptions ¶ added in v0.61.7
type GetServiceAgentOptions struct { LastUpdate *string `url:"_lastUpdated,omitempty"` ReverseInclude *string `url:"_revinclude,omitempty"` Include *string `url:"_include,omitempty"` ID *string `url:"_id,omitempty"` Name *string `url:"name,omitempty"` DataSubscriberID *string `url:"dataSubscriberId,omitempty"` }
type GetServiceReferenceOptions ¶
type GetServiceReferenceOptions struct { ID *string `url:"_id,omitempty"` Name *string `url:"name,omitempty"` ApplicationID *string `url:"applicationId,omitempty"` }
GetServiceReferenceOptions struct describes search criteria for looking up service references
type GetStandardServiceOptions ¶
type GetStandardServiceOptions struct { ID *string `url:"_id,omitempty"` Name *string `url:"name,omitempty"` GlobalReferenceID *string `url:"globalReferenceId,omitempty"` ApplicationID *string `url:"applicationId,omitempty"` }
GetStandardServiceOptions struct { describes search criteria for looking up standard services
type GetStorageClassOptions ¶
type Identifier ¶
type OAuthClient ¶
type OAuthClient struct { ResourceType string `json:"resourceType" validate:"required"` ID string `json:"id,omitempty"` Name string `json:"name" validate:"required"` Description string `json:"description"` ApplicationId Reference `json:"applicationId" validate:"required"` GlobalReferenceID string `json:"globalReferenceId" validate:"required"` RedirectionURIs []string `json:"redirectionURIs"` ResponseTypes []string `json:"responseTypes"` UserClient bool `json:"userClient"` BootstrapClientGuid *Identifier `json:"bootstrapClientGuid,omitempty"` BootstrapClientID string `json:"bootstrapClientId,omitempty"` BootstrapClientSecret string `json:"bootstrapClientSecret,omitempty"` BootstrapClientRevoked bool `json:"bootstrapClientRevoked,omitempty"` ClientGuid *Identifier `json:"clientGuid,omitempty"` ClientID string `json:"clientId,omitempty"` ClientSecret string `json:"clientSecret,omitempty"` ClientRevoked bool `json:"clientRevoked"` Meta *Meta `json:"meta,omitempty"` }
type OAuthClientScope ¶
type OAuthClientScope struct { ResourceType string `json:"resourceType" validate:"required"` ID string `json:"id"` Organization string `json:"organization"` Proposition string `json:"proposition"` Service string `json:"service"` Resource string `json:"resource"` Action string `json:"action"` BootstrapEnabled bool `json:"bootstrapEnabled"` Meta *Meta `json:"meta"` }
func (*OAuthClientScope) Scope ¶
func (r *OAuthClientScope) Scope() string
type OAuthClientScopesService ¶
type OAuthClientScopesService struct {
*Client
}
func (*OAuthClientScopesService) GetOAuthClientScopeByID ¶
func (r *OAuthClientScopesService) GetOAuthClientScopeByID(id string) (*OAuthClientScope, *Response, error)
func (*OAuthClientScopesService) GetOAuthClientScopes ¶
func (r *OAuthClientScopesService) GetOAuthClientScopes(opt *GetOAuthClientScopeOptions) (*[]OAuthClientScope, *Response, error)
type OAuthClientsService ¶
type OAuthClientsService struct { *Client // contains filtered or unexported fields }
OAuthClientsService provides operations on IAM roles resources
func (*OAuthClientsService) CreateOAuthClient ¶
func (c *OAuthClientsService) CreateOAuthClient(ac OAuthClient) (*OAuthClient, *Response, error)
CreateOAuthClient creates a Client
func (*OAuthClientsService) DeleteOAuthClient ¶
func (c *OAuthClientsService) DeleteOAuthClient(ac OAuthClient) (bool, *Response, error)
DeleteOAuthClient deletes the given Client
func (*OAuthClientsService) GetOAuthClientByID ¶
func (c *OAuthClientsService) GetOAuthClientByID(id string) (*OAuthClient, *Response, error)
GetOAuthClientByID finds a client by its ID
func (*OAuthClientsService) GetOAuthClients ¶
func (c *OAuthClientsService) GetOAuthClients(opt *GetOAuthClientsOptions, options ...OptionFunc) (*[]OAuthClient, *Response, error)
GetOAuthClients looks up clients based on GetClientsOptions
func (*OAuthClientsService) Update ¶
func (c *OAuthClientsService) Update(ac OAuthClient) (*OAuthClient, *Response, error)
Update updates a client
func (*OAuthClientsService) UpdateScopes ¶
func (c *OAuthClientsService) UpdateScopes(ac OAuthClient, scopes []string, defaultScopes []string) (bool, *Response, error)
UpdateScopes updates a clients scope
func (*OAuthClientsService) UpdateScopesByFlag ¶ added in v0.63.0
func (c *OAuthClientsService) UpdateScopesByFlag(ac OAuthClient, scopes []string, defaultScopes []string, isBootstrapClient bool) (bool, *Response, error)
UpdateScopes updates a clients scope, with possibility to choose between regular client and bootstrap client
type OptionFunc ¶
OptionFunc is the function signature function for options
type Proposition ¶
type Proposition struct { ResourceType string `json:"resourceType" validate:"required"` ID string `json:"id,omitempty"` Name string `json:"name" validate:"required"` Description string `json:"description"` OrganizationGuid Identifier `json:"organizationGuid"` PropositionGuid *Identifier `json:"propositionGuid,omitempty" validate:"omitempty,dive"` GlobalReferenceID string `json:"globalReferenceId"` Status string `json:"status,omitempty" validate:"omitempty,oneof=DRAFT ACTIVE"` DefaultCustomerOrganizationGuid *Identifier `json:"defaultCustomerOrganizationGuid,omitempty" validate:"omitempty,dive"` ValidationEnabled bool `json:"validationEnabled"` ExternalProvisionValidationURL string `json:"externalProvisionValidationUrl,omitempty"` ExternalProvisionValidationApiVersion string `json:"externalProvisionValidationApiVersion,omitempty"` AuthenticationMethodID *Reference `json:"authenticationMethodId,omitempty"` NotificationEnabled bool `json:"notificationEnabled"` TopicGuid *Identifier `json:"topicGuid,omitempty" validate:"omitempty,dive"` Meta *Meta `json:"meta,omitempty"` }
Proposition represents an MDM Proposition entity
type PropositionsService ¶
type PropositionsService struct { *Client // contains filtered or unexported fields }
PropositionsService implements actions on IAM Proposition entities
func (*PropositionsService) CreateProposition ¶
func (p *PropositionsService) CreateProposition(prop Proposition) (*Proposition, *Response, error)
CreateProposition creates a Proposition
func (*PropositionsService) GetProposition ¶
func (p *PropositionsService) GetProposition(opt *GetPropositionsOptions, options ...OptionFunc) (*Proposition, *Response, error)
GetProposition find a Proposition based on the GetPropositions values
func (*PropositionsService) GetPropositionByID ¶
func (p *PropositionsService) GetPropositionByID(id string) (*Proposition, *Response, error)
GetPropositionByID retrieves a Proposition by its ID
func (*PropositionsService) GetPropositions ¶
func (p *PropositionsService) GetPropositions(opt *GetPropositionsOptions, options ...OptionFunc) (*[]Proposition, *Response, error)
GetPropositions search for a Proposition entity based on the GetPropositions values
func (*PropositionsService) UpdateProposition ¶
func (p *PropositionsService) UpdateProposition(prop Proposition) (*Proposition, *Response, error)
UpdateProposition creates a Proposition
type Region ¶
type Region struct { ResourceType string `json:"resourceType" validate:"required"` ID string `json:"id,omitempty"` Name string `json:"name" validate:"required"` Description string `json:"description"` Category string `json:"category"` HsdpEnabled bool `json:"hsdpEnabled"` Meta *Meta `json:"meta,omitempty"` }
type RegionsService ¶
type RegionsService struct {
*Client
}
func (*RegionsService) GetRegionByID ¶
func (r *RegionsService) GetRegionByID(id string) (*Region, *Response, error)
func (*RegionsService) GetRegions ¶
func (r *RegionsService) GetRegions(opt *GetRegionOptions) (*[]Region, *Response, error)
type ResourceLimitsService ¶
type ResourceLimitsService struct {
*Client
}
func (*ResourceLimitsService) GetDefault ¶
func (r *ResourceLimitsService) GetDefault() (*ResourcesLimits, *Response, error)
func (*ResourceLimitsService) GetOverride ¶
func (r *ResourceLimitsService) GetOverride() (*ResourcesLimits, *Response, error)
type ResourcesLimits ¶
type Response ¶
Response is a HSDP IAM API response. This wraps the standard http.Response returned from HSDP IAM and provides convenient access to things like errors
func (*Response) StatusCode ¶ added in v0.73.0
type ServiceAction ¶
type ServiceAction struct { ResourceType string `json:"resourceType" validate:"required"` ID string `json:"id,omitempty"` Name string `json:"name" validate:"required"` Description string `json:"description"` OrganizationGuid *Identifier `json:"organizationGuid,omitempty"` StandardServiceId Reference `json:"standardServiceId"` }
type ServiceActionsService ¶
type ServiceActionsService struct { *Client // contains filtered or unexported fields }
func (*ServiceActionsService) Create ¶
func (c *ServiceActionsService) Create(ac ServiceAction) (*ServiceAction, *Response, error)
Create creates a ServiceAction
func (*ServiceActionsService) Delete ¶
func (c *ServiceActionsService) Delete(ac ServiceAction) (bool, *Response, error)
Delete deletes the given ServiceAction
func (*ServiceActionsService) Find ¶
func (c *ServiceActionsService) Find(opt *GetServiceActionOptions, options ...OptionFunc) (*[]ServiceAction, *Response, error)
Find looks up services based on GetServiceActionOptions
func (*ServiceActionsService) GetByID ¶
func (c *ServiceActionsService) GetByID(id string) (*ServiceAction, *Response, error)
GetByID finds a client by its ID
func (*ServiceActionsService) Update ¶
func (c *ServiceActionsService) Update(ac ServiceAction) (*ServiceAction, *Response, error)
Update updates a standard service
type ServiceAgent ¶ added in v0.61.7
type ServiceAgent struct { ResourceType string `json:"resourceType"` ID string `json:"id"` Name string `json:"name"` Description string `json:"description"` Configuration string `json:"configuration"` DataSubscriberId Reference `json:"dataSubscriberId"` AuthenticationMethodIds []Reference `json:"authenticationMethodIds"` APIVersionSupported string `json:"apiVersionSupported"` Meta *Meta `json:"meta"` }
type ServiceAgentsService ¶ added in v0.61.7
type ServiceAgentsService struct {
*Client
}
func (*ServiceAgentsService) Get ¶ added in v0.61.7
func (r *ServiceAgentsService) Get(opt *GetServiceAgentOptions) (*[]ServiceAgent, *Response, error)
func (*ServiceAgentsService) GetByID ¶ added in v0.61.7
func (r *ServiceAgentsService) GetByID(id string) (*ServiceAgent, *Response, error)
type ServiceReference ¶
type ServiceReference struct { ResourceType string `json:"resourceType" validate:"required"` ID string `json:"id,omitempty"` Name string `json:"name" validate:"required"` Description string `json:"description"` ApplicationID Reference `json:"applicationId" validate:"required"` StandardServiceID Reference `json:"standardServiceId" validate:"required"` MatchingRule string `json:"matchingRule,omitempty"` ServiceActionIDs []Reference `json:"serviceActionIds" validate:"required,min=1,max=20"` BootstrapEnabled bool `json:"bootstrapEnabled"` Meta *Meta `json:"meta,omitempty"` }
type ServiceReferencesService ¶
type ServiceReferencesService struct { *Client // contains filtered or unexported fields }
func (*ServiceReferencesService) Create ¶
func (c *ServiceReferencesService) Create(ac ServiceReference) (*ServiceReference, *Response, error)
Create creates a ServiceReference
func (*ServiceReferencesService) Delete ¶
func (c *ServiceReferencesService) Delete(ac ServiceReference) (bool, *Response, error)
Delete deletes the given ServiceAction
func (*ServiceReferencesService) Find ¶
func (c *ServiceReferencesService) Find(opt *GetServiceReferenceOptions, options ...OptionFunc) (*[]ServiceReference, *Response, error)
Find looks up services based on GetServiceActionOptions
func (*ServiceReferencesService) GetByID ¶
func (c *ServiceReferencesService) GetByID(id string) (*ServiceReference, *Response, error)
GetByID finds a client by its ID
func (*ServiceReferencesService) Update ¶
func (c *ServiceReferencesService) Update(ac ServiceReference) (*ServiceReference, *Response, error)
Update updates a standard service
type ServiceURL ¶
type StandardService ¶
type StandardService struct { ResourceType string `json:"resourceType" validate:"required"` ID string `json:"id,omitempty"` Name string `json:"name" validate:"required"` Description string `json:"description"` Trusted bool `json:"trusted"` Tags []string `json:"tags" validate:"required,min=1,max=1"` ServiceUrls []ServiceURL `json:"serviceUrls" validate:"required,min=1,max=5"` OrganizationGuid *Identifier `json:"organizationGuid,omitempty"` Meta *Meta `json:"meta,omitempty"` }
type StandardServicesService ¶
type StandardServicesService struct { *Client // contains filtered or unexported fields }
StandardServicesService provides operations on MDM standard service resources
func (*StandardServicesService) CreateStandardService ¶
func (c *StandardServicesService) CreateStandardService(ac StandardService) (*StandardService, *Response, error)
CreateStandardService creates a Client
func (*StandardServicesService) DeleteStandardService ¶
func (c *StandardServicesService) DeleteStandardService(ac StandardService) (bool, *Response, error)
DeleteStandardService deletes the given Client
func (*StandardServicesService) GetStandardServiceByID ¶
func (c *StandardServicesService) GetStandardServiceByID(id string) (*StandardService, *Response, error)
GetStandardServiceByID finds a client by its ID
func (*StandardServicesService) GetStandardServices ¶
func (c *StandardServicesService) GetStandardServices(opt *GetStandardServiceOptions, options ...OptionFunc) (*[]StandardService, *Response, error)
GetStandardServices looks up services based on GetStandardServiceOptions
func (*StandardServicesService) Update ¶
func (c *StandardServicesService) Update(ac StandardService) (*StandardService, *Response, error)
Update updates a standard service
type StorageClass ¶
type StorageClassService ¶
type StorageClassService struct {
*Client
}
func (*StorageClassService) GetStorageClassByID ¶
func (r *StorageClassService) GetStorageClassByID(id string) (*StorageClass, *Response, error)
func (*StorageClassService) GetStorageClasses ¶
func (r *StorageClassService) GetStorageClasses(opt *GetStorageClassOptions) (*[]StorageClass, *Response, error)
type SubscriberType ¶
type SubscriberType struct { ResourceType string `json:"resourceType"` ID string `json:"id"` Name string `json:"name"` Description string `json:"description"` ConfigurationTemplate string `json:"configurationTemplate"` SubscriptionTemplate string `json:"subscriptionTemplate"` Meta *Meta `json:"meta,omitempty"` }
type SubscriberTypesService ¶
type SubscriberTypesService struct {
*Client
}
func (*SubscriberTypesService) Get ¶
func (r *SubscriberTypesService) Get(opt *GetSubscriberTypeOptions) (*[]SubscriberType, *Response, error)
func (*SubscriberTypesService) GetByID ¶
func (r *SubscriberTypesService) GetByID(id string) (*SubscriberType, *Response, error)
Source Files
¶
- application.go
- applications_service.go
- authentication_methods_service.go
- blob_data_contracts_service.go
- blob_subscriptions_service.go
- buckets_service.go
- client.go
- data_adapters_service.go
- data_broker_subscriptions_service.go
- data_subscribers_service.go
- data_types_services.go
- device_groups_service.go
- device_types_service.go
- errors.go
- firmware_component_versions_service.go
- firmware_components_service.go
- firmware_distribution_requests_service.go
- oauth_client_scopes_service.go
- oauth_clients_service.go
- propositions_service.go
- regions_service.go
- resource_limits_service.go
- service_actions_service.go
- service_agents_service.go
- service_references_service.go
- standard_services_service.go
- storage_class_service.go
- subscriber_types_service.go