Documentation ¶
Index ¶
- func PossibleValuesForGeoBackupPolicyState() []string
- func ValidateDatabaseID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOrUpdateOperationResponse
- type DatabaseId
- type GeoBackupPoliciesClient
- func (c GeoBackupPoliciesClient) CreateOrUpdate(ctx context.Context, id DatabaseId, input GeoBackupPolicy) (result CreateOrUpdateOperationResponse, err error)
- func (c GeoBackupPoliciesClient) Get(ctx context.Context, id DatabaseId) (result GetOperationResponse, err error)
- func (c GeoBackupPoliciesClient) List(ctx context.Context, id DatabaseId) (result ListOperationResponse, err error)
- func (c GeoBackupPoliciesClient) ListComplete(ctx context.Context, id DatabaseId) (ListCompleteResult, error)
- func (c GeoBackupPoliciesClient) ListCompleteMatchingPredicate(ctx context.Context, id DatabaseId, ...) (result ListCompleteResult, err error)
- type GeoBackupPolicy
- type GeoBackupPolicyOperationPredicate
- type GeoBackupPolicyProperties
- type GeoBackupPolicyState
- type GetOperationResponse
- type ListCompleteResult
- type ListOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForGeoBackupPolicyState ¶
func PossibleValuesForGeoBackupPolicyState() []string
func ValidateDatabaseID ¶
ValidateDatabaseID checks that 'input' can be parsed as a Database ID
Types ¶
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *GeoBackupPolicy }
type DatabaseId ¶
type DatabaseId struct { SubscriptionId string ResourceGroupName string ServerName string DatabaseName string }
DatabaseId is a struct representing the Resource ID for a Database
func NewDatabaseID ¶
func NewDatabaseID(subscriptionId string, resourceGroupName string, serverName string, databaseName string) DatabaseId
NewDatabaseID returns a new DatabaseId struct
func ParseDatabaseID ¶
func ParseDatabaseID(input string) (*DatabaseId, error)
ParseDatabaseID parses 'input' into a DatabaseId
func ParseDatabaseIDInsensitively ¶
func ParseDatabaseIDInsensitively(input string) (*DatabaseId, error)
ParseDatabaseIDInsensitively parses 'input' case-insensitively into a DatabaseId note: this method should only be used for API response data and not user input
func (DatabaseId) Segments ¶
func (id DatabaseId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Database ID
func (DatabaseId) String ¶
func (id DatabaseId) String() string
String returns a human-readable description of this Database ID
type GeoBackupPoliciesClient ¶
type GeoBackupPoliciesClient struct {
Client *resourcemanager.Client
}
func NewGeoBackupPoliciesClientWithBaseURI ¶
func NewGeoBackupPoliciesClientWithBaseURI(sdkApi sdkEnv.Api) (*GeoBackupPoliciesClient, error)
func (GeoBackupPoliciesClient) CreateOrUpdate ¶
func (c GeoBackupPoliciesClient) CreateOrUpdate(ctx context.Context, id DatabaseId, input GeoBackupPolicy) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (GeoBackupPoliciesClient) Get ¶
func (c GeoBackupPoliciesClient) Get(ctx context.Context, id DatabaseId) (result GetOperationResponse, err error)
Get ...
func (GeoBackupPoliciesClient) List ¶
func (c GeoBackupPoliciesClient) List(ctx context.Context, id DatabaseId) (result ListOperationResponse, err error)
List ...
func (GeoBackupPoliciesClient) ListComplete ¶
func (c GeoBackupPoliciesClient) ListComplete(ctx context.Context, id DatabaseId) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (GeoBackupPoliciesClient) ListCompleteMatchingPredicate ¶
func (c GeoBackupPoliciesClient) ListCompleteMatchingPredicate(ctx context.Context, id DatabaseId, predicate GeoBackupPolicyOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
type GeoBackupPolicy ¶
type GeoBackupPolicyOperationPredicate ¶
type GeoBackupPolicyOperationPredicate struct { Id *string Kind *string Location *string Name *string Type *string }
func (GeoBackupPolicyOperationPredicate) Matches ¶
func (p GeoBackupPolicyOperationPredicate) Matches(input GeoBackupPolicy) bool
type GeoBackupPolicyProperties ¶
type GeoBackupPolicyProperties struct { State GeoBackupPolicyState `json:"state"` StorageType *string `json:"storageType,omitempty"` }
type GeoBackupPolicyState ¶
type GeoBackupPolicyState string
const ( GeoBackupPolicyStateDisabled GeoBackupPolicyState = "Disabled" GeoBackupPolicyStateEnabled GeoBackupPolicyState = "Enabled" )
func (*GeoBackupPolicyState) UnmarshalJSON ¶
func (s *GeoBackupPolicyState) UnmarshalJSON(bytes []byte) error
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *GeoBackupPolicy }
type ListCompleteResult ¶
type ListCompleteResult struct {
Items []GeoBackupPolicy
}
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]GeoBackupPolicy }