Documentation ¶
Index ¶
- func PossibleValuesForEnableStatus() []string
- func ValidateServiceFabricID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateUserID(input interface{}, key string) (warnings []string, errors []error)
- type ApplicableSchedule
- type ApplicableScheduleProperties
- type CreateOrUpdateOperationResponse
- type DayDetails
- type DeleteOperationResponse
- type EnableStatus
- type GetOperationOptions
- type GetOperationResponse
- type HourDetails
- type ListApplicableSchedulesOperationResponse
- type ListCompleteResult
- type ListCustomPager
- type ListOperationOptions
- type ListOperationResponse
- type NotificationSettings
- type Schedule
- type ScheduleProperties
- type ServiceFabric
- type ServiceFabricId
- type ServiceFabricOperationPredicate
- type ServiceFabricProperties
- type ServiceFabricsClient
- func (c ServiceFabricsClient) CreateOrUpdate(ctx context.Context, id ServiceFabricId, input ServiceFabric) (result CreateOrUpdateOperationResponse, err error)
- func (c ServiceFabricsClient) CreateOrUpdateThenPoll(ctx context.Context, id ServiceFabricId, input ServiceFabric) error
- func (c ServiceFabricsClient) Delete(ctx context.Context, id ServiceFabricId) (result DeleteOperationResponse, err error)
- func (c ServiceFabricsClient) DeleteThenPoll(ctx context.Context, id ServiceFabricId) error
- func (c ServiceFabricsClient) Get(ctx context.Context, id ServiceFabricId, options GetOperationOptions) (result GetOperationResponse, err error)
- func (c ServiceFabricsClient) List(ctx context.Context, id UserId, options ListOperationOptions) (result ListOperationResponse, err error)
- func (c ServiceFabricsClient) ListApplicableSchedules(ctx context.Context, id ServiceFabricId) (result ListApplicableSchedulesOperationResponse, err error)
- func (c ServiceFabricsClient) ListComplete(ctx context.Context, id UserId, options ListOperationOptions) (ListCompleteResult, error)
- func (c ServiceFabricsClient) ListCompleteMatchingPredicate(ctx context.Context, id UserId, options ListOperationOptions, ...) (result ListCompleteResult, err error)
- func (c ServiceFabricsClient) Start(ctx context.Context, id ServiceFabricId) (result StartOperationResponse, err error)
- func (c ServiceFabricsClient) StartThenPoll(ctx context.Context, id ServiceFabricId) error
- func (c ServiceFabricsClient) Stop(ctx context.Context, id ServiceFabricId) (result StopOperationResponse, err error)
- func (c ServiceFabricsClient) StopThenPoll(ctx context.Context, id ServiceFabricId) error
- func (c ServiceFabricsClient) Update(ctx context.Context, id ServiceFabricId, input UpdateResource) (result UpdateOperationResponse, err error)
- type StartOperationResponse
- type StopOperationResponse
- type UpdateOperationResponse
- type UpdateResource
- type UserId
- type WeekDetails
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForEnableStatus ¶
func PossibleValuesForEnableStatus() []string
func ValidateServiceFabricID ¶
ValidateServiceFabricID checks that 'input' can be parsed as a Service Fabric ID
func ValidateUserID ¶
ValidateUserID checks that 'input' can be parsed as a User ID
Types ¶
type ApplicableSchedule ¶
type DayDetails ¶
type DayDetails struct {
Time *string `json:"time,omitempty"`
}
type DeleteOperationResponse ¶
type EnableStatus ¶
type EnableStatus string
const ( EnableStatusDisabled EnableStatus = "Disabled" EnableStatusEnabled EnableStatus = "Enabled" )
func (*EnableStatus) UnmarshalJSON ¶
func (s *EnableStatus) UnmarshalJSON(bytes []byte) error
type GetOperationOptions ¶
type GetOperationOptions struct {
Expand *string
}
func DefaultGetOperationOptions ¶
func DefaultGetOperationOptions() GetOperationOptions
func (GetOperationOptions) ToHeaders ¶
func (o GetOperationOptions) ToHeaders() *client.Headers
func (GetOperationOptions) ToOData ¶
func (o GetOperationOptions) ToOData() *odata.Query
func (GetOperationOptions) ToQuery ¶
func (o GetOperationOptions) ToQuery() *client.QueryParams
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ServiceFabric }
type HourDetails ¶
type HourDetails struct {
Minute *int64 `json:"minute,omitempty"`
}
type ListApplicableSchedulesOperationResponse ¶
type ListApplicableSchedulesOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ApplicableSchedule }
type ListCompleteResult ¶
type ListCompleteResult struct { LatestHttpResponse *http.Response Items []ServiceFabric }
type ListCustomPager ¶ added in v0.20240628.1153531
func (*ListCustomPager) NextPageLink ¶ added in v0.20240628.1153531
func (p *ListCustomPager) NextPageLink() *odata.Link
type ListOperationOptions ¶
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 *[]ServiceFabric }
type NotificationSettings ¶
type NotificationSettings struct { EmailRecipient *string `json:"emailRecipient,omitempty"` NotificationLocale *string `json:"notificationLocale,omitempty"` Status *EnableStatus `json:"status,omitempty"` TimeInMinutes *int64 `json:"timeInMinutes,omitempty"` WebhookURL *string `json:"webhookUrl,omitempty"` }
type ScheduleProperties ¶
type ScheduleProperties struct { CreatedDate *string `json:"createdDate,omitempty"` DailyRecurrence *DayDetails `json:"dailyRecurrence,omitempty"` HourlyRecurrence *HourDetails `json:"hourlyRecurrence,omitempty"` NotificationSettings *NotificationSettings `json:"notificationSettings,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` Status *EnableStatus `json:"status,omitempty"` TargetResourceId *string `json:"targetResourceId,omitempty"` TaskType *string `json:"taskType,omitempty"` TimeZoneId *string `json:"timeZoneId,omitempty"` UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"` WeeklyRecurrence *WeekDetails `json:"weeklyRecurrence,omitempty"` }
func (*ScheduleProperties) GetCreatedDateAsTime ¶
func (o *ScheduleProperties) GetCreatedDateAsTime() (*time.Time, error)
func (*ScheduleProperties) SetCreatedDateAsTime ¶
func (o *ScheduleProperties) SetCreatedDateAsTime(input time.Time)
type ServiceFabric ¶
type ServiceFabricId ¶
type ServiceFabricId struct { SubscriptionId string ResourceGroupName string LabName string UserName string ServiceFabricName string }
ServiceFabricId is a struct representing the Resource ID for a Service Fabric
func NewServiceFabricID ¶
func NewServiceFabricID(subscriptionId string, resourceGroupName string, labName string, userName string, serviceFabricName string) ServiceFabricId
NewServiceFabricID returns a new ServiceFabricId struct
func ParseServiceFabricID ¶
func ParseServiceFabricID(input string) (*ServiceFabricId, error)
ParseServiceFabricID parses 'input' into a ServiceFabricId
func ParseServiceFabricIDInsensitively ¶
func ParseServiceFabricIDInsensitively(input string) (*ServiceFabricId, error)
ParseServiceFabricIDInsensitively parses 'input' case-insensitively into a ServiceFabricId note: this method should only be used for API response data and not user input
func (*ServiceFabricId) FromParseResult ¶
func (id *ServiceFabricId) FromParseResult(input resourceids.ParseResult) error
func (ServiceFabricId) ID ¶
func (id ServiceFabricId) ID() string
ID returns the formatted Service Fabric ID
func (ServiceFabricId) Segments ¶
func (id ServiceFabricId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Service Fabric ID
func (ServiceFabricId) String ¶
func (id ServiceFabricId) String() string
String returns a human-readable description of this Service Fabric ID
type ServiceFabricOperationPredicate ¶
type ServiceFabricOperationPredicate struct { Id *string Location *string Name *string Type *string }
func (ServiceFabricOperationPredicate) Matches ¶
func (p ServiceFabricOperationPredicate) Matches(input ServiceFabric) bool
type ServiceFabricProperties ¶
type ServiceFabricProperties struct { ApplicableSchedule *ApplicableSchedule `json:"applicableSchedule,omitempty"` EnvironmentId *string `json:"environmentId,omitempty"` ExternalServiceFabricId *string `json:"externalServiceFabricId,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"` }
type ServiceFabricsClient ¶
type ServiceFabricsClient struct {
Client *resourcemanager.Client
}
func NewServiceFabricsClientWithBaseURI ¶
func NewServiceFabricsClientWithBaseURI(sdkApi sdkEnv.Api) (*ServiceFabricsClient, error)
func (ServiceFabricsClient) CreateOrUpdate ¶
func (c ServiceFabricsClient) CreateOrUpdate(ctx context.Context, id ServiceFabricId, input ServiceFabric) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (ServiceFabricsClient) CreateOrUpdateThenPoll ¶
func (c ServiceFabricsClient) CreateOrUpdateThenPoll(ctx context.Context, id ServiceFabricId, input ServiceFabric) error
CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed
func (ServiceFabricsClient) Delete ¶
func (c ServiceFabricsClient) Delete(ctx context.Context, id ServiceFabricId) (result DeleteOperationResponse, err error)
Delete ...
func (ServiceFabricsClient) DeleteThenPoll ¶
func (c ServiceFabricsClient) DeleteThenPoll(ctx context.Context, id ServiceFabricId) error
DeleteThenPoll performs Delete then polls until it's completed
func (ServiceFabricsClient) Get ¶
func (c ServiceFabricsClient) Get(ctx context.Context, id ServiceFabricId, options GetOperationOptions) (result GetOperationResponse, err error)
Get ...
func (ServiceFabricsClient) List ¶
func (c ServiceFabricsClient) List(ctx context.Context, id UserId, options ListOperationOptions) (result ListOperationResponse, err error)
List ...
func (ServiceFabricsClient) ListApplicableSchedules ¶
func (c ServiceFabricsClient) ListApplicableSchedules(ctx context.Context, id ServiceFabricId) (result ListApplicableSchedulesOperationResponse, err error)
ListApplicableSchedules ...
func (ServiceFabricsClient) ListComplete ¶
func (c ServiceFabricsClient) ListComplete(ctx context.Context, id UserId, options ListOperationOptions) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (ServiceFabricsClient) ListCompleteMatchingPredicate ¶
func (c ServiceFabricsClient) ListCompleteMatchingPredicate(ctx context.Context, id UserId, options ListOperationOptions, predicate ServiceFabricOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (ServiceFabricsClient) Start ¶
func (c ServiceFabricsClient) Start(ctx context.Context, id ServiceFabricId) (result StartOperationResponse, err error)
Start ...
func (ServiceFabricsClient) StartThenPoll ¶
func (c ServiceFabricsClient) StartThenPoll(ctx context.Context, id ServiceFabricId) error
StartThenPoll performs Start then polls until it's completed
func (ServiceFabricsClient) Stop ¶
func (c ServiceFabricsClient) Stop(ctx context.Context, id ServiceFabricId) (result StopOperationResponse, err error)
Stop ...
func (ServiceFabricsClient) StopThenPoll ¶
func (c ServiceFabricsClient) StopThenPoll(ctx context.Context, id ServiceFabricId) error
StopThenPoll performs Stop then polls until it's completed
func (ServiceFabricsClient) Update ¶
func (c ServiceFabricsClient) Update(ctx context.Context, id ServiceFabricId, input UpdateResource) (result UpdateOperationResponse, err error)
Update ...
type StartOperationResponse ¶
type StopOperationResponse ¶
type UpdateOperationResponse ¶
type UpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ServiceFabric }
type UpdateResource ¶
type UserId ¶
type UserId struct { SubscriptionId string ResourceGroupName string LabName string UserName string }
UserId is a struct representing the Resource ID for a User
func NewUserID ¶
func NewUserID(subscriptionId string, resourceGroupName string, labName string, userName string) UserId
NewUserID returns a new UserId struct
func ParseUserID ¶
ParseUserID parses 'input' into a UserId
func ParseUserIDInsensitively ¶
ParseUserIDInsensitively parses 'input' case-insensitively into a UserId note: this method should only be used for API response data and not user input
func (*UserId) FromParseResult ¶
func (id *UserId) FromParseResult(input resourceids.ParseResult) error
func (UserId) Segments ¶
func (id UserId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this User ID
type WeekDetails ¶
Source Files ¶
- client.go
- constants.go
- id_servicefabric.go
- id_user.go
- method_createorupdate.go
- method_delete.go
- method_get.go
- method_list.go
- method_listapplicableschedules.go
- method_start.go
- method_stop.go
- method_update.go
- model_applicableschedule.go
- model_applicablescheduleproperties.go
- model_daydetails.go
- model_hourdetails.go
- model_notificationsettings.go
- model_schedule.go
- model_scheduleproperties.go
- model_servicefabric.go
- model_servicefabricproperties.go
- model_updateresource.go
- model_weekdetails.go
- predicates.go
- version.go