Documentation ¶
Index ¶
- Constants
- type LicenseAPI
- type LicenseService
- func (s *LicenseService) GetLicense() (output *models.LicenseView, resp *http.Response, err error)
- func (s *LicenseService) GetLicenseAgreement() (output *models.LicenseAgreementInfo, resp *http.Response, err error)
- func (s *LicenseService) GetLicenseAgreementWithContext(ctx context.Context) (output *models.LicenseAgreementInfo, resp *http.Response, err error)
- func (s *LicenseService) GetLicenseWithContext(ctx context.Context) (output *models.LicenseView, resp *http.Response, err error)
- func (s *LicenseService) UpdateLicense(input *UpdateLicenseInput) (output *models.LicenseView, resp *http.Response, err error)
- func (s *LicenseService) UpdateLicenseAgreement(input *UpdateLicenseAgreementInput) (output *models.LicenseAgreementInfo, resp *http.Response, err error)
- func (s *LicenseService) UpdateLicenseAgreementWithContext(ctx context.Context, input *UpdateLicenseAgreementInput) (output *models.LicenseAgreementInfo, resp *http.Response, err error)
- func (s *LicenseService) UpdateLicenseWithContext(ctx context.Context, input *UpdateLicenseInput) (output *models.LicenseView, resp *http.Response, err error)
- type UpdateLicenseAgreementInput
- type UpdateLicenseInput
Constants ¶
const (
// ServiceName - The name of service.
ServiceName = "License"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LicenseAPI ¶
type LicenseAPI interface { GetLicenseAgreement() (output *models.LicenseAgreementInfo, resp *http.Response, err error) GetLicenseAgreementWithContext(ctx context.Context) (output *models.LicenseAgreementInfo, resp *http.Response, err error) UpdateLicenseAgreement(input *UpdateLicenseAgreementInput) (output *models.LicenseAgreementInfo, resp *http.Response, err error) UpdateLicenseAgreementWithContext(ctx context.Context, input *UpdateLicenseAgreementInput) (output *models.LicenseAgreementInfo, resp *http.Response, err error) GetLicense() (output *models.LicenseView, resp *http.Response, err error) GetLicenseWithContext(ctx context.Context) (output *models.LicenseView, resp *http.Response, err error) UpdateLicense(input *UpdateLicenseInput) (output *models.LicenseView, resp *http.Response, err error) UpdateLicenseWithContext(ctx context.Context, input *UpdateLicenseInput) (output *models.LicenseView, resp *http.Response, err error) }
type LicenseService ¶
func New ¶
func New(cfg *config.Config) *LicenseService
New creates a new instance of the LicenseService client.
func (*LicenseService) GetLicense ¶
func (s *LicenseService) GetLicense() (output *models.LicenseView, resp *http.Response, err error)
GetLicense - Get a license summary. RequestType: GET Input:
func (*LicenseService) GetLicenseAgreement ¶
func (s *LicenseService) GetLicenseAgreement() (output *models.LicenseAgreementInfo, resp *http.Response, err error)
GetLicenseAgreement - Get license agreement link. RequestType: GET Input:
func (*LicenseService) GetLicenseAgreementWithContext ¶
func (s *LicenseService) GetLicenseAgreementWithContext(ctx context.Context) (output *models.LicenseAgreementInfo, resp *http.Response, err error)
GetLicenseAgreementWithContext - Get license agreement link. RequestType: GET Input: ctx context.Context,
func (*LicenseService) GetLicenseWithContext ¶
func (s *LicenseService) GetLicenseWithContext(ctx context.Context) (output *models.LicenseView, resp *http.Response, err error)
GetLicenseWithContext - Get a license summary. RequestType: GET Input: ctx context.Context,
func (*LicenseService) UpdateLicense ¶
func (s *LicenseService) UpdateLicense(input *UpdateLicenseInput) (output *models.LicenseView, resp *http.Response, err error)
UpdateLicense - Import a license. RequestType: PUT Input: input *UpdateLicenseInput
func (*LicenseService) UpdateLicenseAgreement ¶
func (s *LicenseService) UpdateLicenseAgreement(input *UpdateLicenseAgreementInput) (output *models.LicenseAgreementInfo, resp *http.Response, err error)
UpdateLicenseAgreement - Accept license agreement. RequestType: PUT Input: input *UpdateLicenseAgreementInput
func (*LicenseService) UpdateLicenseAgreementWithContext ¶
func (s *LicenseService) UpdateLicenseAgreementWithContext(ctx context.Context, input *UpdateLicenseAgreementInput) (output *models.LicenseAgreementInfo, resp *http.Response, err error)
UpdateLicenseAgreementWithContext - Accept license agreement. RequestType: PUT Input: ctx context.Context, input *UpdateLicenseAgreementInput
func (*LicenseService) UpdateLicenseWithContext ¶
func (s *LicenseService) UpdateLicenseWithContext(ctx context.Context, input *UpdateLicenseInput) (output *models.LicenseView, resp *http.Response, err error)
UpdateLicenseWithContext - Import a license. RequestType: PUT Input: ctx context.Context, input *UpdateLicenseInput
type UpdateLicenseAgreementInput ¶
type UpdateLicenseAgreementInput struct {
Body models.LicenseAgreementInfo
}
type UpdateLicenseInput ¶
type UpdateLicenseInput struct {
Body models.LicenseFile
}