README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/datalakeanalytics/2016-11-01/datalakestoreaccounts
Documentation
The datalakestoreaccounts
SDK allows for interaction with Azure Resource Manager datalakeanalytics
(API Version 2016-11-01
).
This readme covers example usages, but further information on using this SDK can be found in the project root.
Import Path
import "github.com/hashicorp/go-azure-sdk/resource-manager/datalakeanalytics/2016-11-01/datalakestoreaccounts"
Client Initialization
client := datalakestoreaccounts.NewDataLakeStoreAccountsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: DataLakeStoreAccountsClient.Add
ctx := context.TODO()
id := datalakestoreaccounts.NewDataLakeStoreAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "dataLakeStoreAccountName")
payload := datalakestoreaccounts.AddDataLakeStoreParameters{
// ...
}
read, err := client.Add(ctx, id, payload)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: DataLakeStoreAccountsClient.Delete
ctx := context.TODO()
id := datalakestoreaccounts.NewDataLakeStoreAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "dataLakeStoreAccountName")
read, err := client.Delete(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: DataLakeStoreAccountsClient.Get
ctx := context.TODO()
id := datalakestoreaccounts.NewDataLakeStoreAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "dataLakeStoreAccountName")
read, err := client.Get(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: DataLakeStoreAccountsClient.ListByAccount
ctx := context.TODO()
id := datalakestoreaccounts.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName")
// alternatively `client.ListByAccount(ctx, id, datalakestoreaccounts.DefaultListByAccountOperationOptions())` can be used to do batched pagination
items, err := client.ListByAccountComplete(ctx, id, datalakestoreaccounts.DefaultListByAccountOperationOptions())
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Documentation ¶
Index ¶
- func ValidateAccountID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateDataLakeStoreAccountID(input interface{}, key string) (warnings []string, errors []error)
- type AccountId
- type AddDataLakeStoreParameters
- type AddDataLakeStoreProperties
- type AddOperationResponse
- type DataLakeStoreAccountId
- func NewDataLakeStoreAccountID(subscriptionId string, resourceGroupName string, accountName string, ...) DataLakeStoreAccountId
- func ParseDataLakeStoreAccountID(input string) (*DataLakeStoreAccountId, error)
- func ParseDataLakeStoreAccountIDInsensitively(input string) (*DataLakeStoreAccountId, error)
- type DataLakeStoreAccountInformation
- type DataLakeStoreAccountInformationOperationPredicate
- type DataLakeStoreAccountInformationProperties
- type DataLakeStoreAccountsClient
- func (c DataLakeStoreAccountsClient) Add(ctx context.Context, id DataLakeStoreAccountId, ...) (result AddOperationResponse, err error)
- func (c DataLakeStoreAccountsClient) Delete(ctx context.Context, id DataLakeStoreAccountId) (result DeleteOperationResponse, err error)
- func (c DataLakeStoreAccountsClient) Get(ctx context.Context, id DataLakeStoreAccountId) (result GetOperationResponse, err error)
- func (c DataLakeStoreAccountsClient) ListByAccount(ctx context.Context, id AccountId, options ListByAccountOperationOptions) (result ListByAccountOperationResponse, err error)
- func (c DataLakeStoreAccountsClient) ListByAccountComplete(ctx context.Context, id AccountId, options ListByAccountOperationOptions) (ListByAccountCompleteResult, error)
- func (c DataLakeStoreAccountsClient) ListByAccountCompleteMatchingPredicate(ctx context.Context, id AccountId, options ListByAccountOperationOptions, ...) (result ListByAccountCompleteResult, err error)
- type DeleteOperationResponse
- type GetOperationResponse
- type ListByAccountCompleteResult
- type ListByAccountCustomPager
- type ListByAccountOperationOptions
- type ListByAccountOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateAccountID ¶
ValidateAccountID checks that 'input' can be parsed as a Account ID
func ValidateDataLakeStoreAccountID ¶
func ValidateDataLakeStoreAccountID(input interface{}, key string) (warnings []string, errors []error)
ValidateDataLakeStoreAccountID checks that 'input' can be parsed as a Data Lake Store Account ID
Types ¶
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 AddDataLakeStoreParameters ¶
type AddDataLakeStoreParameters struct {
Properties *AddDataLakeStoreProperties `json:"properties,omitempty"`
}
type AddDataLakeStoreProperties ¶
type AddDataLakeStoreProperties struct {
Suffix *string `json:"suffix,omitempty"`
}
type AddOperationResponse ¶
type DataLakeStoreAccountId ¶
type DataLakeStoreAccountId struct { SubscriptionId string ResourceGroupName string AccountName string DataLakeStoreAccountName string }
DataLakeStoreAccountId is a struct representing the Resource ID for a Data Lake Store Account
func NewDataLakeStoreAccountID ¶
func NewDataLakeStoreAccountID(subscriptionId string, resourceGroupName string, accountName string, dataLakeStoreAccountName string) DataLakeStoreAccountId
NewDataLakeStoreAccountID returns a new DataLakeStoreAccountId struct
func ParseDataLakeStoreAccountID ¶
func ParseDataLakeStoreAccountID(input string) (*DataLakeStoreAccountId, error)
ParseDataLakeStoreAccountID parses 'input' into a DataLakeStoreAccountId
func ParseDataLakeStoreAccountIDInsensitively ¶
func ParseDataLakeStoreAccountIDInsensitively(input string) (*DataLakeStoreAccountId, error)
ParseDataLakeStoreAccountIDInsensitively parses 'input' case-insensitively into a DataLakeStoreAccountId note: this method should only be used for API response data and not user input
func (*DataLakeStoreAccountId) FromParseResult ¶
func (id *DataLakeStoreAccountId) FromParseResult(input resourceids.ParseResult) error
func (DataLakeStoreAccountId) ID ¶
func (id DataLakeStoreAccountId) ID() string
ID returns the formatted Data Lake Store Account ID
func (DataLakeStoreAccountId) Segments ¶
func (id DataLakeStoreAccountId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Data Lake Store Account ID
func (DataLakeStoreAccountId) String ¶
func (id DataLakeStoreAccountId) String() string
String returns a human-readable description of this Data Lake Store Account ID
type DataLakeStoreAccountInformation ¶
type DataLakeStoreAccountInformation struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *DataLakeStoreAccountInformationProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type DataLakeStoreAccountInformationOperationPredicate ¶
type DataLakeStoreAccountInformationOperationPredicate struct { Id *string Name *string Type *string }
func (DataLakeStoreAccountInformationOperationPredicate) Matches ¶
func (p DataLakeStoreAccountInformationOperationPredicate) Matches(input DataLakeStoreAccountInformation) bool
type DataLakeStoreAccountInformationProperties ¶
type DataLakeStoreAccountInformationProperties struct {
Suffix *string `json:"suffix,omitempty"`
}
type DataLakeStoreAccountsClient ¶
type DataLakeStoreAccountsClient struct {
Client *resourcemanager.Client
}
func NewDataLakeStoreAccountsClientWithBaseURI ¶
func NewDataLakeStoreAccountsClientWithBaseURI(sdkApi sdkEnv.Api) (*DataLakeStoreAccountsClient, error)
func (DataLakeStoreAccountsClient) Add ¶
func (c DataLakeStoreAccountsClient) Add(ctx context.Context, id DataLakeStoreAccountId, input AddDataLakeStoreParameters) (result AddOperationResponse, err error)
Add ...
func (DataLakeStoreAccountsClient) Delete ¶
func (c DataLakeStoreAccountsClient) Delete(ctx context.Context, id DataLakeStoreAccountId) (result DeleteOperationResponse, err error)
Delete ...
func (DataLakeStoreAccountsClient) Get ¶
func (c DataLakeStoreAccountsClient) Get(ctx context.Context, id DataLakeStoreAccountId) (result GetOperationResponse, err error)
Get ...
func (DataLakeStoreAccountsClient) ListByAccount ¶
func (c DataLakeStoreAccountsClient) ListByAccount(ctx context.Context, id AccountId, options ListByAccountOperationOptions) (result ListByAccountOperationResponse, err error)
ListByAccount ...
func (DataLakeStoreAccountsClient) ListByAccountComplete ¶
func (c DataLakeStoreAccountsClient) ListByAccountComplete(ctx context.Context, id AccountId, options ListByAccountOperationOptions) (ListByAccountCompleteResult, error)
ListByAccountComplete retrieves all the results into a single object
func (DataLakeStoreAccountsClient) ListByAccountCompleteMatchingPredicate ¶
func (c DataLakeStoreAccountsClient) ListByAccountCompleteMatchingPredicate(ctx context.Context, id AccountId, options ListByAccountOperationOptions, predicate DataLakeStoreAccountInformationOperationPredicate) (result ListByAccountCompleteResult, err error)
ListByAccountCompleteMatchingPredicate retrieves all the results and then applies the predicate
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *DataLakeStoreAccountInformation }
type ListByAccountCompleteResult ¶
type ListByAccountCompleteResult struct { LatestHttpResponse *http.Response Items []DataLakeStoreAccountInformation }
type ListByAccountCustomPager ¶ added in v0.20240628.1153531
func (*ListByAccountCustomPager) NextPageLink ¶ added in v0.20240628.1153531
func (p *ListByAccountCustomPager) NextPageLink() *odata.Link
type ListByAccountOperationOptions ¶
type ListByAccountOperationOptions struct { Count *bool Filter *string Orderby *string Select *string Skip *int64 Top *int64 }
func DefaultListByAccountOperationOptions ¶
func DefaultListByAccountOperationOptions() ListByAccountOperationOptions
func (ListByAccountOperationOptions) ToHeaders ¶
func (o ListByAccountOperationOptions) ToHeaders() *client.Headers
func (ListByAccountOperationOptions) ToOData ¶
func (o ListByAccountOperationOptions) ToOData() *odata.Query
func (ListByAccountOperationOptions) ToQuery ¶
func (o ListByAccountOperationOptions) ToQuery() *client.QueryParams
type ListByAccountOperationResponse ¶
type ListByAccountOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]DataLakeStoreAccountInformation }
Source Files ¶
- client.go
- id_account.go
- id_datalakestoreaccount.go
- method_add.go
- method_delete.go
- method_get.go
- method_listbyaccount.go
- model_adddatalakestoreparameters.go
- model_adddatalakestoreproperties.go
- model_datalakestoreaccountinformation.go
- model_datalakestoreaccountinformationproperties.go
- predicates.go
- version.go