README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-03-01/operationsinacluster
Documentation
The operationsinacluster
SDK allows for interaction with the Azure Resource Manager Service kubernetesconfiguration
(API Version 2022-03-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/kubernetesconfiguration/2022-03-01/operationsinacluster"
Client Initialization
client := operationsinacluster.NewOperationsInAClusterClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
if err != nil {
// handle the error
}
Example Usage: OperationsInAClusterClient.OperationStatusList
ctx := context.TODO()
id := operationsinacluster.NewProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterRpValue", "clusterResourceValue", "clusterValue")
// alternatively `client.OperationStatusList(ctx, id)` can be used to do batched pagination
items, err := client.OperationStatusListComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Documentation ¶
Index ¶
- func ValidateProviderID(input interface{}, key string) (warnings []string, errors []error)
- type ErrorAdditionalInfo
- type ErrorDetail
- type OperationStatusListCompleteResult
- type OperationStatusListOperationResponse
- type OperationStatusResult
- type OperationStatusResultOperationPredicate
- type OperationsInAClusterClient
- func (c OperationsInAClusterClient) OperationStatusList(ctx context.Context, id ProviderId) (resp OperationStatusListOperationResponse, err error)
- func (c OperationsInAClusterClient) OperationStatusListComplete(ctx context.Context, id ProviderId) (OperationStatusListCompleteResult, error)
- func (c OperationsInAClusterClient) OperationStatusListCompleteMatchingPredicate(ctx context.Context, id ProviderId, ...) (resp OperationStatusListCompleteResult, err error)
- type ProviderId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateProviderID ¶
ValidateProviderID checks that 'input' can be parsed as a Provider ID
Types ¶
type ErrorAdditionalInfo ¶
type ErrorAdditionalInfo struct { Info *interface{} `json:"info,omitempty"` Type *string `json:"type,omitempty"` }
type ErrorDetail ¶
type ErrorDetail struct { AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` Code *string `json:"code,omitempty"` Details *[]ErrorDetail `json:"details,omitempty"` Message *string `json:"message,omitempty"` Target *string `json:"target,omitempty"` }
type OperationStatusListCompleteResult ¶
type OperationStatusListCompleteResult struct {
Items []OperationStatusResult
}
type OperationStatusListOperationResponse ¶
type OperationStatusListOperationResponse struct { HttpResponse *http.Response Model *[]OperationStatusResult // contains filtered or unexported fields }
func (OperationStatusListOperationResponse) HasMore ¶
func (r OperationStatusListOperationResponse) HasMore() bool
func (OperationStatusListOperationResponse) LoadMore ¶
func (r OperationStatusListOperationResponse) LoadMore(ctx context.Context) (resp OperationStatusListOperationResponse, err error)
type OperationStatusResult ¶
type OperationStatusResultOperationPredicate ¶
func (OperationStatusResultOperationPredicate) Matches ¶
func (p OperationStatusResultOperationPredicate) Matches(input OperationStatusResult) bool
type OperationsInAClusterClient ¶
type OperationsInAClusterClient struct { Client autorest.Client // contains filtered or unexported fields }
func NewOperationsInAClusterClientWithBaseURI ¶
func NewOperationsInAClusterClientWithBaseURI(endpoint string) OperationsInAClusterClient
func (OperationsInAClusterClient) OperationStatusList ¶
func (c OperationsInAClusterClient) OperationStatusList(ctx context.Context, id ProviderId) (resp OperationStatusListOperationResponse, err error)
OperationStatusList ...
func (OperationsInAClusterClient) OperationStatusListComplete ¶
func (c OperationsInAClusterClient) OperationStatusListComplete(ctx context.Context, id ProviderId) (OperationStatusListCompleteResult, error)
OperationStatusListComplete retrieves all of the results into a single object
func (OperationsInAClusterClient) OperationStatusListCompleteMatchingPredicate ¶
func (c OperationsInAClusterClient) OperationStatusListCompleteMatchingPredicate(ctx context.Context, id ProviderId, predicate OperationStatusResultOperationPredicate) (resp OperationStatusListCompleteResult, err error)
OperationStatusListCompleteMatchingPredicate retrieves all of the results and then applied the predicate
type ProviderId ¶
type ProviderId struct { SubscriptionId string ResourceGroupName string ClusterRp string ClusterResourceName string ClusterName string }
ProviderId is a struct representing the Resource ID for a Provider
func NewProviderID ¶
func NewProviderID(subscriptionId string, resourceGroupName string, clusterRp string, clusterResourceName string, clusterName string) ProviderId
NewProviderID returns a new ProviderId struct
func ParseProviderID ¶
func ParseProviderID(input string) (*ProviderId, error)
ParseProviderID parses 'input' into a ProviderId
func ParseProviderIDInsensitively ¶
func ParseProviderIDInsensitively(input string) (*ProviderId, error)
ParseProviderIDInsensitively parses 'input' case-insensitively into a ProviderId note: this method should only be used for API response data and not user input
func (ProviderId) Segments ¶
func (id ProviderId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Provider ID
func (ProviderId) String ¶
func (id ProviderId) String() string
String returns a human-readable description of this Provider ID