Documentation ¶
Index ¶
- func PossibleValuesForPermissionType() []string
- func PossibleValuesForScope() []string
- func ValidateAccountID(input interface{}, key string) (warnings []string, errors []error)
- type AccessToken
- type AccessTokenClient
- func (c AccessTokenClient) GenerateAccessToken(ctx context.Context, id AccountId, input GenerateAccessTokenParameters) (result GenerateAccessTokenOperationResponse, err error)
- func (c AccessTokenClient) GenerateRestrictedViewerAccessToken(ctx context.Context, id AccountId, ...) (result GenerateRestrictedViewerAccessTokenOperationResponse, err error)
- type AccountId
- type GenerateAccessTokenOperationResponse
- type GenerateAccessTokenParameters
- type GenerateRestrictedViewerAccessTokenOperationResponse
- type GenerateRestrictedViewerAccessTokenParameters
- type PermissionType
- type Scope
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForPermissionType ¶
func PossibleValuesForPermissionType() []string
func PossibleValuesForScope ¶
func PossibleValuesForScope() []string
func ValidateAccountID ¶
ValidateAccountID checks that 'input' can be parsed as a Account ID
Types ¶
type AccessToken ¶
type AccessToken struct {
AccessToken *string `json:"accessToken,omitempty"`
}
type AccessTokenClient ¶
type AccessTokenClient struct {
Client *resourcemanager.Client
}
func NewAccessTokenClientWithBaseURI ¶
func NewAccessTokenClientWithBaseURI(sdkApi sdkEnv.Api) (*AccessTokenClient, error)
func (AccessTokenClient) GenerateAccessToken ¶
func (c AccessTokenClient) GenerateAccessToken(ctx context.Context, id AccountId, input GenerateAccessTokenParameters) (result GenerateAccessTokenOperationResponse, err error)
GenerateAccessToken ...
func (AccessTokenClient) GenerateRestrictedViewerAccessToken ¶
func (c AccessTokenClient) GenerateRestrictedViewerAccessToken(ctx context.Context, id AccountId, input GenerateRestrictedViewerAccessTokenParameters) (result GenerateRestrictedViewerAccessTokenOperationResponse, err error)
GenerateRestrictedViewerAccessToken ...
type AccountId ¶
AccountId is a struct representing the Resource ID for a Account
func NewAccountID ¶
NewAccountID returns a new AccountId struct
func ParseAccountID ¶
ParseAccountID parses 'input' into a AccountId
func ParseAccountIDInsensitively ¶
ParseAccountIDInsensitively parses 'input' case-insensitively into a AccountId note: this method should only be used for API response data and not user input
func (*AccountId) FromParseResult ¶
func (id *AccountId) FromParseResult(input resourceids.ParseResult) error
func (AccountId) Segments ¶
func (id AccountId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Account ID
type GenerateAccessTokenOperationResponse ¶
type GenerateAccessTokenOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *AccessToken }
type GenerateAccessTokenParameters ¶
type GenerateAccessTokenParameters struct { PermissionType PermissionType `json:"permissionType"` ProjectId *string `json:"projectId,omitempty"` Scope Scope `json:"scope"` VideoId *string `json:"videoId,omitempty"` }
type GenerateRestrictedViewerAccessTokenOperationResponse ¶
type GenerateRestrictedViewerAccessTokenOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *AccessToken }
type PermissionType ¶
type PermissionType string
const ( PermissionTypeContributor PermissionType = "Contributor" PermissionTypeReader PermissionType = "Reader" )
func (*PermissionType) UnmarshalJSON ¶
func (s *PermissionType) UnmarshalJSON(bytes []byte) error
Click to show internal directories.
Click to hide internal directories.