Documentation
¶
Index ¶
- Constants
- func DecodeError(statusCode int, body []byte) error
- func IsAuthFailure(err error) bool
- func IsNotFound(err error) bool
- func NewHTTPClient() *http.Client
- type APIError
- type BlobContainer
- type BlobService
- type Client
- type IPConfiguration
- type IPConfigurationProps
- type ListBlobContainersResponse
- type ListBlobServicesResponse
- type ListResourceGroupsResponse
- type ListStorageAccountsResponse
- type ListSubscriptionsResponse
- type ListVirtualMachinesResponse
- type NetworkInterface
- type NetworkInterfaceProps
- type Option
- type Pager
- type PublicIPAddress
- type PublicIPAddressProps
- type Request
- type ResourceGroup
- type ResourceID
- type ResourceRef
- type RetryPolicy
- type StorageAccount
- type Subscription
- type VMNetworkInterfaceRef
- type VMNetworkProfile
- type VirtualMachine
- type VirtualMachineProps
Constants ¶
View Source
const ComputeAPIVersion = "2022-08-01"
View Source
const NetworkAPIVersion = "2022-07-01"
View Source
const ResourcesAPIVersion = "2021-04-01"
View Source
const StorageAPIVersion = "2022-05-01"
View Source
const SubscriptionsAPIVersion = "2021-01-01"
Variables ¶
This section is empty.
Functions ¶
func DecodeError ¶
func IsAuthFailure ¶
func IsNotFound ¶
func NewHTTPClient ¶
Types ¶
type BlobContainer ¶
type BlobService ¶
type IPConfiguration ¶
type IPConfiguration struct {
Name string `json:"name"`
Properties IPConfigurationProps `json:"properties"`
}
type IPConfigurationProps ¶
type IPConfigurationProps struct {
PrivateIPAddress string `json:"privateIPAddress"`
PublicIPAddress *ResourceRef `json:"publicIPAddress,omitempty"`
}
type ListBlobContainersResponse ¶
type ListBlobContainersResponse struct {
Value []BlobContainer `json:"value"`
NextLink string `json:"nextLink"`
}
type ListBlobServicesResponse ¶
type ListBlobServicesResponse struct {
Value []BlobService `json:"value"`
}
type ListResourceGroupsResponse ¶
type ListResourceGroupsResponse struct {
Value []ResourceGroup `json:"value"`
NextLink string `json:"nextLink"`
}
type ListStorageAccountsResponse ¶
type ListStorageAccountsResponse struct {
Value []StorageAccount `json:"value"`
NextLink string `json:"nextLink"`
}
type ListSubscriptionsResponse ¶
type ListSubscriptionsResponse struct {
Value []Subscription `json:"value"`
NextLink string `json:"nextLink"`
}
type ListVirtualMachinesResponse ¶
type ListVirtualMachinesResponse struct {
Value []VirtualMachine `json:"value"`
NextLink string `json:"nextLink"`
}
type NetworkInterface ¶
type NetworkInterface struct {
ID string `json:"id"`
Name string `json:"name"`
Properties NetworkInterfaceProps `json:"properties"`
}
type NetworkInterfaceProps ¶
type NetworkInterfaceProps struct {
IPConfigurations []IPConfiguration `json:"ipConfigurations"`
}
type Option ¶
type Option func(*Client)
func WithBaseURL ¶
func WithHTTPClient ¶
func WithRetryPolicy ¶
func WithRetryPolicy(p RetryPolicy) Option
type Pager ¶
type Pager[T any] struct { // contains filtered or unexported fields }
Pager walks Azure ARM list responses that use nextLink.
type PublicIPAddress ¶
type PublicIPAddress struct {
ID string `json:"id"`
Name string `json:"name"`
Properties PublicIPAddressProps `json:"properties"`
}
type PublicIPAddressProps ¶
type PublicIPAddressProps struct {
IPAddress string `json:"ipAddress"`
}
type ResourceGroup ¶
type ResourceID ¶
type ResourceID struct {
SubscriptionID string
ResourceGroup string
Provider string
ResourceType string
ResourceName string
}
func ParseResourceID ¶
func ParseResourceID(id string) (ResourceID, error)
type ResourceRef ¶
type ResourceRef struct {
ID string `json:"id"`
}
type RetryPolicy ¶
type RetryPolicy = httpclient.RetryPolicy
func DefaultRetryPolicy ¶
func DefaultRetryPolicy() RetryPolicy
type StorageAccount ¶
type Subscription ¶
type VMNetworkInterfaceRef ¶
type VMNetworkInterfaceRef struct {
ID string `json:"id"`
}
type VMNetworkProfile ¶
type VMNetworkProfile struct {
NetworkInterfaces []VMNetworkInterfaceRef `json:"networkInterfaces"`
}
type VirtualMachine ¶
type VirtualMachine struct {
ID string `json:"id"`
Name string `json:"name"`
Location string `json:"location"`
Status string `json:"status"`
Properties VirtualMachineProps `json:"properties"`
}
type VirtualMachineProps ¶
type VirtualMachineProps struct {
ProvisioningState string `json:"provisioningState"`
NetworkProfile *VMNetworkProfile `json:"networkProfile,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.