Documentation ¶
Index ¶
- func PossibleValuesForPackageState() []string
- func ValidateApplicationID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateVersionID(input interface{}, key string) (warnings []string, errors []error)
- type ActivateApplicationPackageParameters
- type ActivateOperationResponse
- type ApplicationId
- type ApplicationPackage
- type ApplicationPackageClient
- func (c ApplicationPackageClient) Activate(ctx context.Context, id VersionId, input ActivateApplicationPackageParameters) (result ActivateOperationResponse, err error)
- func (c ApplicationPackageClient) Create(ctx context.Context, id VersionId, input ApplicationPackage) (result CreateOperationResponse, err error)
- func (c ApplicationPackageClient) Delete(ctx context.Context, id VersionId) (result DeleteOperationResponse, err error)
- func (c ApplicationPackageClient) Get(ctx context.Context, id VersionId) (result GetOperationResponse, err error)
- func (c ApplicationPackageClient) List(ctx context.Context, id ApplicationId, options ListOperationOptions) (result ListOperationResponse, err error)
- func (c ApplicationPackageClient) ListComplete(ctx context.Context, id ApplicationId, options ListOperationOptions) (ListCompleteResult, error)
- func (c ApplicationPackageClient) ListCompleteMatchingPredicate(ctx context.Context, id ApplicationId, options ListOperationOptions, ...) (result ListCompleteResult, err error)
- type ApplicationPackageOperationPredicate
- type ApplicationPackageProperties
- func (o *ApplicationPackageProperties) GetLastActivationTimeAsTime() (*time.Time, error)
- func (o *ApplicationPackageProperties) GetStorageURLExpiryAsTime() (*time.Time, error)
- func (o *ApplicationPackageProperties) SetLastActivationTimeAsTime(input time.Time)
- func (o *ApplicationPackageProperties) SetStorageURLExpiryAsTime(input time.Time)
- type CreateOperationResponse
- type DeleteOperationResponse
- type GetOperationResponse
- type ListCompleteResult
- type ListCustomPager
- type ListOperationOptions
- type ListOperationResponse
- type PackageState
- type VersionId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForPackageState ¶
func PossibleValuesForPackageState() []string
func ValidateApplicationID ¶
ValidateApplicationID checks that 'input' can be parsed as a Application ID
func ValidateVersionID ¶
ValidateVersionID checks that 'input' can be parsed as a Version ID
Types ¶
type ActivateApplicationPackageParameters ¶
type ActivateApplicationPackageParameters struct {
Format string `json:"format"`
}
type ActivateOperationResponse ¶
type ActivateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ApplicationPackage }
type ApplicationId ¶
type ApplicationId struct { SubscriptionId string ResourceGroupName string BatchAccountName string ApplicationName string }
ApplicationId is a struct representing the Resource ID for a Application
func NewApplicationID ¶
func NewApplicationID(subscriptionId string, resourceGroupName string, batchAccountName string, applicationName string) ApplicationId
NewApplicationID returns a new ApplicationId struct
func ParseApplicationID ¶
func ParseApplicationID(input string) (*ApplicationId, error)
ParseApplicationID parses 'input' into a ApplicationId
func ParseApplicationIDInsensitively ¶
func ParseApplicationIDInsensitively(input string) (*ApplicationId, error)
ParseApplicationIDInsensitively parses 'input' case-insensitively into a ApplicationId note: this method should only be used for API response data and not user input
func (*ApplicationId) FromParseResult ¶
func (id *ApplicationId) FromParseResult(input resourceids.ParseResult) error
func (ApplicationId) ID ¶
func (id ApplicationId) ID() string
ID returns the formatted Application ID
func (ApplicationId) Segments ¶
func (id ApplicationId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Application ID
func (ApplicationId) String ¶
func (id ApplicationId) String() string
String returns a human-readable description of this Application ID
type ApplicationPackage ¶
type ApplicationPackage struct { Etag *string `json:"etag,omitempty"` Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *ApplicationPackageProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type ApplicationPackageClient ¶
type ApplicationPackageClient struct {
Client *resourcemanager.Client
}
func NewApplicationPackageClientWithBaseURI ¶
func NewApplicationPackageClientWithBaseURI(sdkApi sdkEnv.Api) (*ApplicationPackageClient, error)
func (ApplicationPackageClient) Activate ¶
func (c ApplicationPackageClient) Activate(ctx context.Context, id VersionId, input ActivateApplicationPackageParameters) (result ActivateOperationResponse, err error)
Activate ...
func (ApplicationPackageClient) Create ¶
func (c ApplicationPackageClient) Create(ctx context.Context, id VersionId, input ApplicationPackage) (result CreateOperationResponse, err error)
Create ...
func (ApplicationPackageClient) Delete ¶
func (c ApplicationPackageClient) Delete(ctx context.Context, id VersionId) (result DeleteOperationResponse, err error)
Delete ...
func (ApplicationPackageClient) Get ¶
func (c ApplicationPackageClient) Get(ctx context.Context, id VersionId) (result GetOperationResponse, err error)
Get ...
func (ApplicationPackageClient) List ¶
func (c ApplicationPackageClient) List(ctx context.Context, id ApplicationId, options ListOperationOptions) (result ListOperationResponse, err error)
List ...
func (ApplicationPackageClient) ListComplete ¶
func (c ApplicationPackageClient) ListComplete(ctx context.Context, id ApplicationId, options ListOperationOptions) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (ApplicationPackageClient) ListCompleteMatchingPredicate ¶
func (c ApplicationPackageClient) ListCompleteMatchingPredicate(ctx context.Context, id ApplicationId, options ListOperationOptions, predicate ApplicationPackageOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
type ApplicationPackageOperationPredicate ¶
type ApplicationPackageOperationPredicate struct { Etag *string Id *string Name *string Type *string }
func (ApplicationPackageOperationPredicate) Matches ¶
func (p ApplicationPackageOperationPredicate) Matches(input ApplicationPackage) bool
type ApplicationPackageProperties ¶
type ApplicationPackageProperties struct { Format *string `json:"format,omitempty"` LastActivationTime *string `json:"lastActivationTime,omitempty"` State *PackageState `json:"state,omitempty"` StorageURL *string `json:"storageUrl,omitempty"` StorageURLExpiry *string `json:"storageUrlExpiry,omitempty"` }
func (*ApplicationPackageProperties) GetLastActivationTimeAsTime ¶
func (o *ApplicationPackageProperties) GetLastActivationTimeAsTime() (*time.Time, error)
func (*ApplicationPackageProperties) GetStorageURLExpiryAsTime ¶ added in v0.20241009.1142232
func (o *ApplicationPackageProperties) GetStorageURLExpiryAsTime() (*time.Time, error)
func (*ApplicationPackageProperties) SetLastActivationTimeAsTime ¶
func (o *ApplicationPackageProperties) SetLastActivationTimeAsTime(input time.Time)
func (*ApplicationPackageProperties) SetStorageURLExpiryAsTime ¶ added in v0.20241009.1142232
func (o *ApplicationPackageProperties) SetStorageURLExpiryAsTime(input time.Time)
type CreateOperationResponse ¶
type CreateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ApplicationPackage }
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ApplicationPackage }
type ListCompleteResult ¶
type ListCompleteResult struct { LatestHttpResponse *http.Response Items []ApplicationPackage }
type ListCustomPager ¶ added in v0.20240628.1153531
func (*ListCustomPager) NextPageLink ¶ added in v0.20240628.1153531
func (p *ListCustomPager) NextPageLink() *odata.Link
type ListOperationOptions ¶
type ListOperationOptions struct {
Maxresults *int64
}
func DefaultListOperationOptions ¶
func DefaultListOperationOptions() ListOperationOptions
func (ListOperationOptions) ToHeaders ¶
func (o ListOperationOptions) ToHeaders() *client.Headers
func (ListOperationOptions) ToOData ¶
func (o ListOperationOptions) ToOData() *odata.Query
func (ListOperationOptions) ToQuery ¶
func (o ListOperationOptions) ToQuery() *client.QueryParams
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]ApplicationPackage }
type PackageState ¶
type PackageState string
const ( PackageStateActive PackageState = "Active" PackageStatePending PackageState = "Pending" )
func (*PackageState) UnmarshalJSON ¶
func (s *PackageState) UnmarshalJSON(bytes []byte) error
type VersionId ¶
type VersionId struct { SubscriptionId string ResourceGroupName string BatchAccountName string ApplicationName string VersionName string }
VersionId is a struct representing the Resource ID for a Version
func NewVersionID ¶
func NewVersionID(subscriptionId string, resourceGroupName string, batchAccountName string, applicationName string, versionName string) VersionId
NewVersionID returns a new VersionId struct
func ParseVersionID ¶
ParseVersionID parses 'input' into a VersionId
func ParseVersionIDInsensitively ¶
ParseVersionIDInsensitively parses 'input' case-insensitively into a VersionId note: this method should only be used for API response data and not user input
func (*VersionId) FromParseResult ¶
func (id *VersionId) FromParseResult(input resourceids.ParseResult) error
func (VersionId) Segments ¶
func (id VersionId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Version ID