Documentation ¶
Overview ¶
Package managednetwork implements the Azure ARM Managednetwork service API version 2019-06-01-preview.
The Microsoft Azure Managed Network management API provides a RESTful set of web services that interact with Microsoft Azure Networks service to programmatically view, control, change, and monitor your entire Azure network centrally and with ease.
Index ¶
- Constants
- func UserAgent() string
- func Version() string
- type BaseClient
- type ConnectivityCollection
- type ErrorResponse
- type Group
- type GroupListResult
- type GroupListResultIterator
- type GroupListResultPage
- type GroupProperties
- type GroupsClient
- func (client GroupsClient) CreateOrUpdate(ctx context.Context, managedNetworkGroup Group, resourceGroupName string, ...) (result GroupsCreateOrUpdateFuture, err error)
- func (client GroupsClient) CreateOrUpdatePreparer(ctx context.Context, managedNetworkGroup Group, resourceGroupName string, ...) (*http.Request, error)
- func (client GroupsClient) CreateOrUpdateResponder(resp *http.Response) (result Group, err error)
- func (client GroupsClient) CreateOrUpdateSender(req *http.Request) (future GroupsCreateOrUpdateFuture, err error)
- func (client GroupsClient) Delete(ctx context.Context, resourceGroupName string, managedNetworkName string, ...) (result GroupsDeleteFuture, err error)
- func (client GroupsClient) DeletePreparer(ctx context.Context, resourceGroupName string, managedNetworkName string, ...) (*http.Request, error)
- func (client GroupsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client GroupsClient) DeleteSender(req *http.Request) (future GroupsDeleteFuture, err error)
- func (client GroupsClient) Get(ctx context.Context, resourceGroupName string, managedNetworkName string, ...) (result Group, err error)
- func (client GroupsClient) GetPreparer(ctx context.Context, resourceGroupName string, managedNetworkName string, ...) (*http.Request, error)
- func (client GroupsClient) GetResponder(resp *http.Response) (result Group, err error)
- func (client GroupsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client GroupsClient) ListByManagedNetwork(ctx context.Context, resourceGroupName string, managedNetworkName string, ...) (result GroupListResultPage, err error)
- func (client GroupsClient) ListByManagedNetworkComplete(ctx context.Context, resourceGroupName string, managedNetworkName string, ...) (result GroupListResultIterator, err error)
- func (client GroupsClient) ListByManagedNetworkPreparer(ctx context.Context, resourceGroupName string, managedNetworkName string, ...) (*http.Request, error)
- func (client GroupsClient) ListByManagedNetworkResponder(resp *http.Response) (result GroupListResult, err error)
- func (client GroupsClient) ListByManagedNetworkSender(req *http.Request) (*http.Response, error)
- type GroupsCreateOrUpdateFuture
- type GroupsDeleteFuture
- type HubAndSpokePeeringPolicyProperties
- type Kind
- type ListResult
- type ListResultIterator
- type ListResultPage
- type ManagedNetwork
- type ManagedNetworksClient
- func (client ManagedNetworksClient) CreateOrUpdate(ctx context.Context, managedNetwork ManagedNetwork, resourceGroupName string, ...) (result ManagedNetwork, err error)
- func (client ManagedNetworksClient) CreateOrUpdatePreparer(ctx context.Context, managedNetwork ManagedNetwork, resourceGroupName string, ...) (*http.Request, error)
- func (client ManagedNetworksClient) CreateOrUpdateResponder(resp *http.Response) (result ManagedNetwork, err error)
- func (client ManagedNetworksClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client ManagedNetworksClient) Delete(ctx context.Context, resourceGroupName string, managedNetworkName string) (result ManagedNetworksDeleteFutureType, err error)
- func (client ManagedNetworksClient) DeletePreparer(ctx context.Context, resourceGroupName string, managedNetworkName string) (*http.Request, error)
- func (client ManagedNetworksClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client ManagedNetworksClient) DeleteSender(req *http.Request) (future ManagedNetworksDeleteFutureType, err error)
- func (client ManagedNetworksClient) Get(ctx context.Context, resourceGroupName string, managedNetworkName string) (result ManagedNetwork, err error)
- func (client ManagedNetworksClient) GetPreparer(ctx context.Context, resourceGroupName string, managedNetworkName string) (*http.Request, error)
- func (client ManagedNetworksClient) GetResponder(resp *http.Response) (result ManagedNetwork, err error)
- func (client ManagedNetworksClient) GetSender(req *http.Request) (*http.Response, error)
- func (client ManagedNetworksClient) ListByResourceGroup(ctx context.Context, resourceGroupName string, top *int32, skiptoken string) (result ListResultPage, err error)
- func (client ManagedNetworksClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, top *int32, skiptoken string) (result ListResultIterator, err error)
- func (client ManagedNetworksClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string, top *int32, skiptoken string) (*http.Request, error)
- func (client ManagedNetworksClient) ListByResourceGroupResponder(resp *http.Response) (result ListResult, err error)
- func (client ManagedNetworksClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)
- func (client ManagedNetworksClient) ListBySubscription(ctx context.Context, top *int32, skiptoken string) (result ListResultPage, err error)
- func (client ManagedNetworksClient) ListBySubscriptionComplete(ctx context.Context, top *int32, skiptoken string) (result ListResultIterator, err error)
- func (client ManagedNetworksClient) ListBySubscriptionPreparer(ctx context.Context, top *int32, skiptoken string) (*http.Request, error)
- func (client ManagedNetworksClient) ListBySubscriptionResponder(resp *http.Response) (result ListResult, err error)
- func (client ManagedNetworksClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error)
- func (client ManagedNetworksClient) Update(ctx context.Context, parameters Update, resourceGroupName string, ...) (result ManagedNetworksUpdateFutureType, err error)
- func (client ManagedNetworksClient) UpdatePreparer(ctx context.Context, parameters Update, resourceGroupName string, ...) (*http.Request, error)
- func (client ManagedNetworksClient) UpdateResponder(resp *http.Response) (result ManagedNetwork, err error)
- func (client ManagedNetworksClient) UpdateSender(req *http.Request) (future ManagedNetworksUpdateFutureType, err error)
- type ManagedNetworksDeleteFutureType
- type ManagedNetworksUpdateFutureType
- type MeshPeeringPolicyProperties
- type Operation
- type OperationDisplay
- type OperationListResult
- type OperationListResultIterator
- func (iter *OperationListResultIterator) Next() error
- func (iter *OperationListResultIterator) NextWithContext(ctx context.Context) (err error)
- func (iter OperationListResultIterator) NotDone() bool
- func (iter OperationListResultIterator) Response() OperationListResult
- func (iter OperationListResultIterator) Value() Operation
- type OperationListResultPage
- func (page *OperationListResultPage) Next() error
- func (page *OperationListResultPage) NextWithContext(ctx context.Context) (err error)
- func (page OperationListResultPage) NotDone() bool
- func (page OperationListResultPage) Response() OperationListResult
- func (page OperationListResultPage) Values() []Operation
- type OperationsClient
- func (client OperationsClient) List(ctx context.Context) (result OperationListResultPage, err error)
- func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListResultIterator, err error)
- func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)
- func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error)
- func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)
- type PeeringPoliciesClient
- func (client PeeringPoliciesClient) CreateOrUpdate(ctx context.Context, managedNetworkPolicy PeeringPolicy, ...) (result PeeringPoliciesCreateOrUpdateFuture, err error)
- func (client PeeringPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, managedNetworkPolicy PeeringPolicy, ...) (*http.Request, error)
- func (client PeeringPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result PeeringPolicy, err error)
- func (client PeeringPoliciesClient) CreateOrUpdateSender(req *http.Request) (future PeeringPoliciesCreateOrUpdateFuture, err error)
- func (client PeeringPoliciesClient) Delete(ctx context.Context, resourceGroupName string, managedNetworkName string, ...) (result PeeringPoliciesDeleteFuture, err error)
- func (client PeeringPoliciesClient) DeletePreparer(ctx context.Context, resourceGroupName string, managedNetworkName string, ...) (*http.Request, error)
- func (client PeeringPoliciesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client PeeringPoliciesClient) DeleteSender(req *http.Request) (future PeeringPoliciesDeleteFuture, err error)
- func (client PeeringPoliciesClient) Get(ctx context.Context, resourceGroupName string, managedNetworkName string, ...) (result PeeringPolicy, err error)
- func (client PeeringPoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, managedNetworkName string, ...) (*http.Request, error)
- func (client PeeringPoliciesClient) GetResponder(resp *http.Response) (result PeeringPolicy, err error)
- func (client PeeringPoliciesClient) GetSender(req *http.Request) (*http.Response, error)
- func (client PeeringPoliciesClient) ListByManagedNetwork(ctx context.Context, resourceGroupName string, managedNetworkName string, ...) (result PeeringPolicyListResultPage, err error)
- func (client PeeringPoliciesClient) ListByManagedNetworkComplete(ctx context.Context, resourceGroupName string, managedNetworkName string, ...) (result PeeringPolicyListResultIterator, err error)
- func (client PeeringPoliciesClient) ListByManagedNetworkPreparer(ctx context.Context, resourceGroupName string, managedNetworkName string, ...) (*http.Request, error)
- func (client PeeringPoliciesClient) ListByManagedNetworkResponder(resp *http.Response) (result PeeringPolicyListResult, err error)
- func (client PeeringPoliciesClient) ListByManagedNetworkSender(req *http.Request) (*http.Response, error)
- type PeeringPoliciesCreateOrUpdateFuture
- type PeeringPoliciesDeleteFuture
- type PeeringPolicy
- type PeeringPolicyListResult
- type PeeringPolicyListResultIterator
- func (iter *PeeringPolicyListResultIterator) Next() error
- func (iter *PeeringPolicyListResultIterator) NextWithContext(ctx context.Context) (err error)
- func (iter PeeringPolicyListResultIterator) NotDone() bool
- func (iter PeeringPolicyListResultIterator) Response() PeeringPolicyListResult
- func (iter PeeringPolicyListResultIterator) Value() PeeringPolicy
- type PeeringPolicyListResultPage
- func (page *PeeringPolicyListResultPage) Next() error
- func (page *PeeringPolicyListResultPage) NextWithContext(ctx context.Context) (err error)
- func (page PeeringPolicyListResultPage) NotDone() bool
- func (page PeeringPolicyListResultPage) Response() PeeringPolicyListResult
- func (page PeeringPolicyListResultPage) Values() []PeeringPolicy
- type PeeringPolicyProperties
- type Properties
- type ProvisioningState
- type ProxyResource
- type Resource
- type ResourceID
- type ResourceProperties
- type Scope
- type ScopeAssignment
- type ScopeAssignmentListResult
- type ScopeAssignmentListResultIterator
- func (iter *ScopeAssignmentListResultIterator) Next() error
- func (iter *ScopeAssignmentListResultIterator) NextWithContext(ctx context.Context) (err error)
- func (iter ScopeAssignmentListResultIterator) NotDone() bool
- func (iter ScopeAssignmentListResultIterator) Response() ScopeAssignmentListResult
- func (iter ScopeAssignmentListResultIterator) Value() ScopeAssignment
- type ScopeAssignmentListResultPage
- func (page *ScopeAssignmentListResultPage) Next() error
- func (page *ScopeAssignmentListResultPage) NextWithContext(ctx context.Context) (err error)
- func (page ScopeAssignmentListResultPage) NotDone() bool
- func (page ScopeAssignmentListResultPage) Response() ScopeAssignmentListResult
- func (page ScopeAssignmentListResultPage) Values() []ScopeAssignment
- type ScopeAssignmentProperties
- type ScopeAssignmentsClient
- func (client ScopeAssignmentsClient) CreateOrUpdate(ctx context.Context, parameters ScopeAssignment, scope string, ...) (result ScopeAssignment, err error)
- func (client ScopeAssignmentsClient) CreateOrUpdatePreparer(ctx context.Context, parameters ScopeAssignment, scope string, ...) (*http.Request, error)
- func (client ScopeAssignmentsClient) CreateOrUpdateResponder(resp *http.Response) (result ScopeAssignment, err error)
- func (client ScopeAssignmentsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client ScopeAssignmentsClient) Delete(ctx context.Context, scope string, scopeAssignmentName string) (result autorest.Response, err error)
- func (client ScopeAssignmentsClient) DeletePreparer(ctx context.Context, scope string, scopeAssignmentName string) (*http.Request, error)
- func (client ScopeAssignmentsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client ScopeAssignmentsClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client ScopeAssignmentsClient) Get(ctx context.Context, scope string, scopeAssignmentName string) (result ScopeAssignment, err error)
- func (client ScopeAssignmentsClient) GetPreparer(ctx context.Context, scope string, scopeAssignmentName string) (*http.Request, error)
- func (client ScopeAssignmentsClient) GetResponder(resp *http.Response) (result ScopeAssignment, err error)
- func (client ScopeAssignmentsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client ScopeAssignmentsClient) List(ctx context.Context, scope string) (result ScopeAssignmentListResultPage, err error)
- func (client ScopeAssignmentsClient) ListComplete(ctx context.Context, scope string) (result ScopeAssignmentListResultIterator, err error)
- func (client ScopeAssignmentsClient) ListPreparer(ctx context.Context, scope string) (*http.Request, error)
- func (client ScopeAssignmentsClient) ListResponder(resp *http.Response) (result ScopeAssignmentListResult, err error)
- func (client ScopeAssignmentsClient) ListSender(req *http.Request) (*http.Response, error)
- type TrackedResource
- type Type
- type Update
Constants ¶
const (
// DefaultBaseURI is the default URI used for the service Managednetwork
DefaultBaseURI = "https://management.azure.com"
)
Variables ¶
This section is empty.
Functions ¶
func UserAgent ¶
func UserAgent() string
UserAgent returns the UserAgent string to use when sending http.Requests.
func Version ¶
func Version() string
Version returns the semantic version (see http://semver.org) of the client.
Types ¶
type BaseClient ¶
BaseClient is the base client for Managednetwork.
func New ¶
func New(subscriptionID string) BaseClient
New creates an instance of the BaseClient client.
func NewWithBaseURI ¶
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient
NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
type ConnectivityCollection ¶
type ConnectivityCollection struct { // Groups - READ-ONLY; The collection of connectivity related Managed Network Groups within the Managed Network Groups *[]Group `json:"groups,omitempty"` // Peerings - READ-ONLY; The collection of Managed Network Peering Policies within the Managed Network Peerings *[]PeeringPolicy `json:"peerings,omitempty"` }
ConnectivityCollection the collection of Connectivity related groups and policies within the Managed Network
func (ConnectivityCollection) MarshalJSON ¶
func (cc ConnectivityCollection) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ConnectivityCollection.
type ErrorResponse ¶
type ErrorResponse struct { // Code - READ-ONLY; The error code. Code *string `json:"code,omitempty"` // Message - READ-ONLY; The error message. Message *string `json:"message,omitempty"` }
ErrorResponse the error response that indicates why an operation has failed.
func (ErrorResponse) MarshalJSON ¶
func (er ErrorResponse) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ErrorResponse.
type Group ¶
type Group struct { autorest.Response `json:"-"` // GroupProperties - Gets or sets the properties of a network group *GroupProperties `json:"properties,omitempty"` // Kind - Responsibility role under which this Managed Network Group will be created. Possible values include: 'Connectivity' Kind Kind `json:"kind,omitempty"` // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. Type *string `json:"type,omitempty"` // Location - The geo-location where the resource lives Location *string `json:"location,omitempty"` }
Group the Managed Network Group resource
func (Group) MarshalJSON ¶
MarshalJSON is the custom marshaler for Group.
func (*Group) UnmarshalJSON ¶
UnmarshalJSON is the custom unmarshaler for Group struct.
type GroupListResult ¶
type GroupListResult struct { autorest.Response `json:"-"` // Value - Gets a page of ManagedNetworkGroup Value *[]Group `json:"value,omitempty"` // NextLink - Gets the URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` }
GroupListResult result of the request to list Managed Network Groups. It contains a list of groups and a URL link to get the next set of results.
func (GroupListResult) IsEmpty ¶
func (glr GroupListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type GroupListResultIterator ¶
type GroupListResultIterator struct {
// contains filtered or unexported fields
}
GroupListResultIterator provides access to a complete listing of Group values.
func NewGroupListResultIterator ¶
func NewGroupListResultIterator(page GroupListResultPage) GroupListResultIterator
Creates a new instance of the GroupListResultIterator type.
func (*GroupListResultIterator) Next ¶
func (iter *GroupListResultIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*GroupListResultIterator) NextWithContext ¶
func (iter *GroupListResultIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (GroupListResultIterator) NotDone ¶
func (iter GroupListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (GroupListResultIterator) Response ¶
func (iter GroupListResultIterator) Response() GroupListResult
Response returns the raw server response from the last page request.
func (GroupListResultIterator) Value ¶
func (iter GroupListResultIterator) Value() Group
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type GroupListResultPage ¶
type GroupListResultPage struct {
// contains filtered or unexported fields
}
GroupListResultPage contains a page of Group values.
func NewGroupListResultPage ¶
func NewGroupListResultPage(cur GroupListResult, getNextPage func(context.Context, GroupListResult) (GroupListResult, error)) GroupListResultPage
Creates a new instance of the GroupListResultPage type.
func (*GroupListResultPage) Next ¶
func (page *GroupListResultPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*GroupListResultPage) NextWithContext ¶
func (page *GroupListResultPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (GroupListResultPage) NotDone ¶
func (page GroupListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (GroupListResultPage) Response ¶
func (page GroupListResultPage) Response() GroupListResult
Response returns the raw server response from the last page request.
func (GroupListResultPage) Values ¶
func (page GroupListResultPage) Values() []Group
Values returns the slice of values for the current page or nil if there are no values.
type GroupProperties ¶
type GroupProperties struct { // ManagementGroups - The collection of management groups covered by the Managed Network ManagementGroups *[]ResourceID `json:"managementGroups,omitempty"` // Subscriptions - The collection of subscriptions covered by the Managed Network Subscriptions *[]ResourceID `json:"subscriptions,omitempty"` // VirtualNetworks - The collection of virtual nets covered by the Managed Network VirtualNetworks *[]ResourceID `json:"virtualNetworks,omitempty"` // Subnets - The collection of subnets covered by the Managed Network Subnets *[]ResourceID `json:"subnets,omitempty"` // ProvisioningState - READ-ONLY; Provisioning state of the ManagedNetwork resource. Possible values include: 'Updating', 'Deleting', 'Failed', 'Succeeded' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty"` }
GroupProperties properties of a Managed Network Group
func (GroupProperties) MarshalJSON ¶
func (gp GroupProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for GroupProperties.
type GroupsClient ¶
type GroupsClient struct {
BaseClient
}
GroupsClient is the the Microsoft Azure Managed Network management API provides a RESTful set of web services that interact with Microsoft Azure Networks service to programmatically view, control, change, and monitor your entire Azure network centrally and with ease.
func NewGroupsClient ¶
func NewGroupsClient(subscriptionID string) GroupsClient
NewGroupsClient creates an instance of the GroupsClient client.
func NewGroupsClientWithBaseURI ¶
func NewGroupsClientWithBaseURI(baseURI string, subscriptionID string) GroupsClient
NewGroupsClientWithBaseURI creates an instance of the GroupsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (GroupsClient) CreateOrUpdate ¶
func (client GroupsClient) CreateOrUpdate(ctx context.Context, managedNetworkGroup Group, resourceGroupName string, managedNetworkName string, managedNetworkGroupName string) (result GroupsCreateOrUpdateFuture, err error)
CreateOrUpdate the Put ManagedNetworkGroups operation creates or updates a Managed Network Group resource Parameters: managedNetworkGroup - parameters supplied to the create/update a Managed Network Group resource resourceGroupName - the name of the resource group. managedNetworkName - the name of the Managed Network. managedNetworkGroupName - the name of the Managed Network Group.
func (GroupsClient) CreateOrUpdatePreparer ¶
func (client GroupsClient) CreateOrUpdatePreparer(ctx context.Context, managedNetworkGroup Group, resourceGroupName string, managedNetworkName string, managedNetworkGroupName string) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (GroupsClient) CreateOrUpdateResponder ¶
func (client GroupsClient) CreateOrUpdateResponder(resp *http.Response) (result Group, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (GroupsClient) CreateOrUpdateSender ¶
func (client GroupsClient) CreateOrUpdateSender(req *http.Request) (future GroupsCreateOrUpdateFuture, err error)
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (GroupsClient) Delete ¶
func (client GroupsClient) Delete(ctx context.Context, resourceGroupName string, managedNetworkName string, managedNetworkGroupName string) (result GroupsDeleteFuture, err error)
Delete the Delete ManagedNetworkGroups operation deletes a Managed Network Group specified by the resource group, Managed Network name, and group name Parameters: resourceGroupName - the name of the resource group. managedNetworkName - the name of the Managed Network. managedNetworkGroupName - the name of the Managed Network Group.
func (GroupsClient) DeletePreparer ¶
func (client GroupsClient) DeletePreparer(ctx context.Context, resourceGroupName string, managedNetworkName string, managedNetworkGroupName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (GroupsClient) DeleteResponder ¶
func (client GroupsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (GroupsClient) DeleteSender ¶
func (client GroupsClient) DeleteSender(req *http.Request) (future GroupsDeleteFuture, err error)
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (GroupsClient) Get ¶
func (client GroupsClient) Get(ctx context.Context, resourceGroupName string, managedNetworkName string, managedNetworkGroupName string) (result Group, err error)
Get the Get ManagedNetworkGroups operation gets a Managed Network Group specified by the resource group, Managed Network name, and group name Parameters: resourceGroupName - the name of the resource group. managedNetworkName - the name of the Managed Network. managedNetworkGroupName - the name of the Managed Network Group.
func (GroupsClient) GetPreparer ¶
func (client GroupsClient) GetPreparer(ctx context.Context, resourceGroupName string, managedNetworkName string, managedNetworkGroupName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (GroupsClient) GetResponder ¶
func (client GroupsClient) GetResponder(resp *http.Response) (result Group, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (GroupsClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (GroupsClient) ListByManagedNetwork ¶
func (client GroupsClient) ListByManagedNetwork(ctx context.Context, resourceGroupName string, managedNetworkName string, top *int32, skiptoken string) (result GroupListResultPage, err error)
ListByManagedNetwork the ListByManagedNetwork ManagedNetworkGroup operation retrieves all the Managed Network Groups in a specified Managed Networks in a paginated format. Parameters: resourceGroupName - the name of the resource group. managedNetworkName - the name of the Managed Network. top - may be used to limit the number of results in a page for list queries. skiptoken - skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls.
func (GroupsClient) ListByManagedNetworkComplete ¶
func (client GroupsClient) ListByManagedNetworkComplete(ctx context.Context, resourceGroupName string, managedNetworkName string, top *int32, skiptoken string) (result GroupListResultIterator, err error)
ListByManagedNetworkComplete enumerates all values, automatically crossing page boundaries as required.
func (GroupsClient) ListByManagedNetworkPreparer ¶
func (client GroupsClient) ListByManagedNetworkPreparer(ctx context.Context, resourceGroupName string, managedNetworkName string, top *int32, skiptoken string) (*http.Request, error)
ListByManagedNetworkPreparer prepares the ListByManagedNetwork request.
func (GroupsClient) ListByManagedNetworkResponder ¶
func (client GroupsClient) ListByManagedNetworkResponder(resp *http.Response) (result GroupListResult, err error)
ListByManagedNetworkResponder handles the response to the ListByManagedNetwork request. The method always closes the http.Response Body.
func (GroupsClient) ListByManagedNetworkSender ¶
ListByManagedNetworkSender sends the ListByManagedNetwork request. The method will close the http.Response Body if it receives an error.
type GroupsCreateOrUpdateFuture ¶
type GroupsCreateOrUpdateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(GroupsClient) (Group, error) }
GroupsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*GroupsCreateOrUpdateFuture) UnmarshalJSON ¶
func (future *GroupsCreateOrUpdateFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
type GroupsDeleteFuture ¶
type GroupsDeleteFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(GroupsClient) (autorest.Response, error) }
GroupsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*GroupsDeleteFuture) UnmarshalJSON ¶
func (future *GroupsDeleteFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
type HubAndSpokePeeringPolicyProperties ¶
type HubAndSpokePeeringPolicyProperties struct { // Type - Gets or sets the connectivity type of a network structure policy. Possible values include: 'HubAndSpokeTopology', 'MeshTopology' Type Type `json:"type,omitempty"` // Hub - Gets or sets the hub virtual network ID Hub *ResourceID `json:"hub,omitempty"` // Spokes - Gets or sets the spokes group IDs Spokes *[]ResourceID `json:"spokes,omitempty"` // Mesh - Gets or sets the mesh group IDs Mesh *[]ResourceID `json:"mesh,omitempty"` // ProvisioningState - READ-ONLY; Provisioning state of the ManagedNetwork resource. Possible values include: 'Updating', 'Deleting', 'Failed', 'Succeeded' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty"` }
HubAndSpokePeeringPolicyProperties properties of a Hub and Spoke Peering Policy
func (HubAndSpokePeeringPolicyProperties) MarshalJSON ¶
func (hasppp HubAndSpokePeeringPolicyProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for HubAndSpokePeeringPolicyProperties.
type Kind ¶
type Kind string
Kind enumerates the values for kind.
const ( // Connectivity ... Connectivity Kind = "Connectivity" )
func PossibleKindValues ¶
func PossibleKindValues() []Kind
PossibleKindValues returns an array of possible values for the Kind const type.
type ListResult ¶
type ListResult struct { autorest.Response `json:"-"` // Value - Gets a page of ManagedNetworks Value *[]ManagedNetwork `json:"value,omitempty"` // NextLink - Gets the URL to get the next page of results. NextLink *string `json:"nextLink,omitempty"` }
ListResult result of the request to list Managed Network. It contains a list of Managed Networks and a URL link to get the next set of results.
func (ListResult) IsEmpty ¶
func (lr ListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type ListResultIterator ¶
type ListResultIterator struct {
// contains filtered or unexported fields
}
ListResultIterator provides access to a complete listing of ManagedNetwork values.
func NewListResultIterator ¶
func NewListResultIterator(page ListResultPage) ListResultIterator
Creates a new instance of the ListResultIterator type.
func (*ListResultIterator) Next ¶
func (iter *ListResultIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*ListResultIterator) NextWithContext ¶
func (iter *ListResultIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (ListResultIterator) NotDone ¶
func (iter ListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (ListResultIterator) Response ¶
func (iter ListResultIterator) Response() ListResult
Response returns the raw server response from the last page request.
func (ListResultIterator) Value ¶
func (iter ListResultIterator) Value() ManagedNetwork
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type ListResultPage ¶
type ListResultPage struct {
// contains filtered or unexported fields
}
ListResultPage contains a page of ManagedNetwork values.
func NewListResultPage ¶
func NewListResultPage(cur ListResult, getNextPage func(context.Context, ListResult) (ListResult, error)) ListResultPage
Creates a new instance of the ListResultPage type.
func (*ListResultPage) Next ¶
func (page *ListResultPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*ListResultPage) NextWithContext ¶
func (page *ListResultPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (ListResultPage) NotDone ¶
func (page ListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (ListResultPage) Response ¶
func (page ListResultPage) Response() ListResult
Response returns the raw server response from the last page request.
func (ListResultPage) Values ¶
func (page ListResultPage) Values() []ManagedNetwork
Values returns the slice of values for the current page or nil if there are no values.
type ManagedNetwork ¶
type ManagedNetwork struct { autorest.Response `json:"-"` // Properties - The MNC properties *Properties `json:"properties,omitempty"` // Tags - Resource tags Tags map[string]*string `json:"tags"` // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. Type *string `json:"type,omitempty"` // Location - The geo-location where the resource lives Location *string `json:"location,omitempty"` }
ManagedNetwork the Managed Network resource
func (ManagedNetwork) MarshalJSON ¶
func (mn ManagedNetwork) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ManagedNetwork.
func (*ManagedNetwork) UnmarshalJSON ¶
func (mn *ManagedNetwork) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ManagedNetwork struct.
type ManagedNetworksClient ¶
type ManagedNetworksClient struct {
BaseClient
}
ManagedNetworksClient is the the Microsoft Azure Managed Network management API provides a RESTful set of web services that interact with Microsoft Azure Networks service to programmatically view, control, change, and monitor your entire Azure network centrally and with ease.
func NewManagedNetworksClient ¶
func NewManagedNetworksClient(subscriptionID string) ManagedNetworksClient
NewManagedNetworksClient creates an instance of the ManagedNetworksClient client.
func NewManagedNetworksClientWithBaseURI ¶
func NewManagedNetworksClientWithBaseURI(baseURI string, subscriptionID string) ManagedNetworksClient
NewManagedNetworksClientWithBaseURI creates an instance of the ManagedNetworksClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (ManagedNetworksClient) CreateOrUpdate ¶
func (client ManagedNetworksClient) CreateOrUpdate(ctx context.Context, managedNetwork ManagedNetwork, resourceGroupName string, managedNetworkName string) (result ManagedNetwork, err error)
CreateOrUpdate the Put ManagedNetworks operation creates/updates a Managed Network Resource, specified by resource group and Managed Network name Parameters: managedNetwork - parameters supplied to the create/update a Managed Network Resource resourceGroupName - the name of the resource group. managedNetworkName - the name of the Managed Network.
func (ManagedNetworksClient) CreateOrUpdatePreparer ¶
func (client ManagedNetworksClient) CreateOrUpdatePreparer(ctx context.Context, managedNetwork ManagedNetwork, resourceGroupName string, managedNetworkName string) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (ManagedNetworksClient) CreateOrUpdateResponder ¶
func (client ManagedNetworksClient) CreateOrUpdateResponder(resp *http.Response) (result ManagedNetwork, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (ManagedNetworksClient) CreateOrUpdateSender ¶
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (ManagedNetworksClient) Delete ¶
func (client ManagedNetworksClient) Delete(ctx context.Context, resourceGroupName string, managedNetworkName string) (result ManagedNetworksDeleteFutureType, err error)
Delete the Delete ManagedNetworks operation deletes a Managed Network Resource, specified by the resource group and Managed Network name Parameters: resourceGroupName - the name of the resource group. managedNetworkName - the name of the Managed Network.
func (ManagedNetworksClient) DeletePreparer ¶
func (client ManagedNetworksClient) DeletePreparer(ctx context.Context, resourceGroupName string, managedNetworkName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (ManagedNetworksClient) DeleteResponder ¶
func (client ManagedNetworksClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (ManagedNetworksClient) DeleteSender ¶
func (client ManagedNetworksClient) DeleteSender(req *http.Request) (future ManagedNetworksDeleteFutureType, err error)
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (ManagedNetworksClient) Get ¶
func (client ManagedNetworksClient) Get(ctx context.Context, resourceGroupName string, managedNetworkName string) (result ManagedNetwork, err error)
Get the Get ManagedNetworks operation gets a Managed Network Resource, specified by the resource group and Managed Network name Parameters: resourceGroupName - the name of the resource group. managedNetworkName - the name of the Managed Network.
func (ManagedNetworksClient) GetPreparer ¶
func (client ManagedNetworksClient) GetPreparer(ctx context.Context, resourceGroupName string, managedNetworkName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (ManagedNetworksClient) GetResponder ¶
func (client ManagedNetworksClient) GetResponder(resp *http.Response) (result ManagedNetwork, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (ManagedNetworksClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (ManagedNetworksClient) ListByResourceGroup ¶
func (client ManagedNetworksClient) ListByResourceGroup(ctx context.Context, resourceGroupName string, top *int32, skiptoken string) (result ListResultPage, err error)
ListByResourceGroup the ListByResourceGroup ManagedNetwork operation retrieves all the Managed Network resources in a resource group in a paginated format. Parameters: resourceGroupName - the name of the resource group. top - may be used to limit the number of results in a page for list queries. skiptoken - skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls.
func (ManagedNetworksClient) ListByResourceGroupComplete ¶
func (client ManagedNetworksClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, top *int32, skiptoken string) (result ListResultIterator, err error)
ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.
func (ManagedNetworksClient) ListByResourceGroupPreparer ¶
func (client ManagedNetworksClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string, top *int32, skiptoken string) (*http.Request, error)
ListByResourceGroupPreparer prepares the ListByResourceGroup request.
func (ManagedNetworksClient) ListByResourceGroupResponder ¶
func (client ManagedNetworksClient) ListByResourceGroupResponder(resp *http.Response) (result ListResult, err error)
ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.
func (ManagedNetworksClient) ListByResourceGroupSender ¶
func (client ManagedNetworksClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)
ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.
func (ManagedNetworksClient) ListBySubscription ¶
func (client ManagedNetworksClient) ListBySubscription(ctx context.Context, top *int32, skiptoken string) (result ListResultPage, err error)
ListBySubscription the ListBySubscription ManagedNetwork operation retrieves all the Managed Network Resources in the current subscription in a paginated format. Parameters: top - may be used to limit the number of results in a page for list queries. skiptoken - skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls.
func (ManagedNetworksClient) ListBySubscriptionComplete ¶
func (client ManagedNetworksClient) ListBySubscriptionComplete(ctx context.Context, top *int32, skiptoken string) (result ListResultIterator, err error)
ListBySubscriptionComplete enumerates all values, automatically crossing page boundaries as required.
func (ManagedNetworksClient) ListBySubscriptionPreparer ¶
func (client ManagedNetworksClient) ListBySubscriptionPreparer(ctx context.Context, top *int32, skiptoken string) (*http.Request, error)
ListBySubscriptionPreparer prepares the ListBySubscription request.
func (ManagedNetworksClient) ListBySubscriptionResponder ¶
func (client ManagedNetworksClient) ListBySubscriptionResponder(resp *http.Response) (result ListResult, err error)
ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always closes the http.Response Body.
func (ManagedNetworksClient) ListBySubscriptionSender ¶
func (client ManagedNetworksClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error)
ListBySubscriptionSender sends the ListBySubscription request. The method will close the http.Response Body if it receives an error.
func (ManagedNetworksClient) Update ¶
func (client ManagedNetworksClient) Update(ctx context.Context, parameters Update, resourceGroupName string, managedNetworkName string) (result ManagedNetworksUpdateFutureType, err error)
Update updates the specified Managed Network resource tags. Parameters: parameters - parameters supplied to update application gateway tags and/or scope. resourceGroupName - the name of the resource group. managedNetworkName - the name of the Managed Network.
func (ManagedNetworksClient) UpdatePreparer ¶
func (client ManagedNetworksClient) UpdatePreparer(ctx context.Context, parameters Update, resourceGroupName string, managedNetworkName string) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (ManagedNetworksClient) UpdateResponder ¶
func (client ManagedNetworksClient) UpdateResponder(resp *http.Response) (result ManagedNetwork, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (ManagedNetworksClient) UpdateSender ¶
func (client ManagedNetworksClient) UpdateSender(req *http.Request) (future ManagedNetworksUpdateFutureType, err error)
UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.
type ManagedNetworksDeleteFutureType ¶
type ManagedNetworksDeleteFutureType struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(ManagedNetworksClient) (autorest.Response, error) }
ManagedNetworksDeleteFutureType an abstraction for monitoring and retrieving the results of a long-running operation.
func (*ManagedNetworksDeleteFutureType) UnmarshalJSON ¶
func (future *ManagedNetworksDeleteFutureType) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
type ManagedNetworksUpdateFutureType ¶
type ManagedNetworksUpdateFutureType struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(ManagedNetworksClient) (ManagedNetwork, error) }
ManagedNetworksUpdateFutureType an abstraction for monitoring and retrieving the results of a long-running operation.
func (*ManagedNetworksUpdateFutureType) UnmarshalJSON ¶
func (future *ManagedNetworksUpdateFutureType) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
type MeshPeeringPolicyProperties ¶
type MeshPeeringPolicyProperties struct { // Type - Gets or sets the connectivity type of a network structure policy. Possible values include: 'HubAndSpokeTopology', 'MeshTopology' Type Type `json:"type,omitempty"` // Hub - Gets or sets the hub virtual network ID Hub *ResourceID `json:"hub,omitempty"` // Spokes - Gets or sets the spokes group IDs Spokes *[]ResourceID `json:"spokes,omitempty"` // Mesh - Gets or sets the mesh group IDs Mesh *[]ResourceID `json:"mesh,omitempty"` // ProvisioningState - READ-ONLY; Provisioning state of the ManagedNetwork resource. Possible values include: 'Updating', 'Deleting', 'Failed', 'Succeeded' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty"` }
MeshPeeringPolicyProperties properties of a Mesh Peering Policy
func (MeshPeeringPolicyProperties) MarshalJSON ¶
func (mppp MeshPeeringPolicyProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for MeshPeeringPolicyProperties.
type Operation ¶
type Operation struct { // Name - Operation name: {provider}/{resource}/{operation} Name *string `json:"name,omitempty"` // Display - The object that represents the operation. Display *OperationDisplay `json:"display,omitempty"` }
Operation REST API operation
type OperationDisplay ¶
type OperationDisplay struct { // Provider - Service provider: Microsoft.ManagedNetwork Provider *string `json:"provider,omitempty"` // Resource - Resource on which the operation is performed: Profile, endpoint, etc. Resource *string `json:"resource,omitempty"` // Operation - Operation type: Read, write, delete, etc. Operation *string `json:"operation,omitempty"` }
OperationDisplay the object that represents the operation.
type OperationListResult ¶
type OperationListResult struct { autorest.Response `json:"-"` // Value - List of Resource Provider operations supported by the Managed Network resource provider. Value *[]Operation `json:"value,omitempty"` // NextLink - URL to get the next set of operation list results if there are any. NextLink *string `json:"nextLink,omitempty"` }
OperationListResult result of the request to list Managed Network operations. It contains a list of operations and a URL link to get the next set of results.
func (OperationListResult) IsEmpty ¶
func (olr OperationListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type OperationListResultIterator ¶
type OperationListResultIterator struct {
// contains filtered or unexported fields
}
OperationListResultIterator provides access to a complete listing of Operation values.
func NewOperationListResultIterator ¶
func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator
Creates a new instance of the OperationListResultIterator type.
func (*OperationListResultIterator) Next ¶
func (iter *OperationListResultIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*OperationListResultIterator) NextWithContext ¶
func (iter *OperationListResultIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (OperationListResultIterator) NotDone ¶
func (iter OperationListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (OperationListResultIterator) Response ¶
func (iter OperationListResultIterator) Response() OperationListResult
Response returns the raw server response from the last page request.
func (OperationListResultIterator) Value ¶
func (iter OperationListResultIterator) Value() Operation
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type OperationListResultPage ¶
type OperationListResultPage struct {
// contains filtered or unexported fields
}
OperationListResultPage contains a page of Operation values.
func NewOperationListResultPage ¶
func NewOperationListResultPage(cur OperationListResult, getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage
Creates a new instance of the OperationListResultPage type.
func (*OperationListResultPage) Next ¶
func (page *OperationListResultPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*OperationListResultPage) NextWithContext ¶
func (page *OperationListResultPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (OperationListResultPage) NotDone ¶
func (page OperationListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (OperationListResultPage) Response ¶
func (page OperationListResultPage) Response() OperationListResult
Response returns the raw server response from the last page request.
func (OperationListResultPage) Values ¶
func (page OperationListResultPage) Values() []Operation
Values returns the slice of values for the current page or nil if there are no values.
type OperationsClient ¶
type OperationsClient struct {
BaseClient
}
OperationsClient is the the Microsoft Azure Managed Network management API provides a RESTful set of web services that interact with Microsoft Azure Networks service to programmatically view, control, change, and monitor your entire Azure network centrally and with ease.
func NewOperationsClient ¶
func NewOperationsClient(subscriptionID string) OperationsClient
NewOperationsClient creates an instance of the OperationsClient client.
func NewOperationsClientWithBaseURI ¶
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient
NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (OperationsClient) List ¶
func (client OperationsClient) List(ctx context.Context) (result OperationListResultPage, err error)
List lists all of the available MNC operations.
func (OperationsClient) ListComplete ¶
func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListResultIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (OperationsClient) ListPreparer ¶
ListPreparer prepares the List request.
func (OperationsClient) ListResponder ¶
func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (OperationsClient) ListSender ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
type PeeringPoliciesClient ¶
type PeeringPoliciesClient struct {
BaseClient
}
PeeringPoliciesClient is the the Microsoft Azure Managed Network management API provides a RESTful set of web services that interact with Microsoft Azure Networks service to programmatically view, control, change, and monitor your entire Azure network centrally and with ease.
func NewPeeringPoliciesClient ¶
func NewPeeringPoliciesClient(subscriptionID string) PeeringPoliciesClient
NewPeeringPoliciesClient creates an instance of the PeeringPoliciesClient client.
func NewPeeringPoliciesClientWithBaseURI ¶
func NewPeeringPoliciesClientWithBaseURI(baseURI string, subscriptionID string) PeeringPoliciesClient
NewPeeringPoliciesClientWithBaseURI creates an instance of the PeeringPoliciesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (PeeringPoliciesClient) CreateOrUpdate ¶
func (client PeeringPoliciesClient) CreateOrUpdate(ctx context.Context, managedNetworkPolicy PeeringPolicy, resourceGroupName string, managedNetworkName string, managedNetworkPeeringPolicyName string) (result PeeringPoliciesCreateOrUpdateFuture, err error)
CreateOrUpdate the Put ManagedNetworkPeeringPolicies operation creates/updates a new Managed Network Peering Policy Parameters: managedNetworkPolicy - parameters supplied to create/update a Managed Network Peering Policy resourceGroupName - the name of the resource group. managedNetworkName - the name of the Managed Network. managedNetworkPeeringPolicyName - the name of the Managed Network Peering Policy.
func (PeeringPoliciesClient) CreateOrUpdatePreparer ¶
func (client PeeringPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, managedNetworkPolicy PeeringPolicy, resourceGroupName string, managedNetworkName string, managedNetworkPeeringPolicyName string) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (PeeringPoliciesClient) CreateOrUpdateResponder ¶
func (client PeeringPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result PeeringPolicy, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (PeeringPoliciesClient) CreateOrUpdateSender ¶
func (client PeeringPoliciesClient) CreateOrUpdateSender(req *http.Request) (future PeeringPoliciesCreateOrUpdateFuture, err error)
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (PeeringPoliciesClient) Delete ¶
func (client PeeringPoliciesClient) Delete(ctx context.Context, resourceGroupName string, managedNetworkName string, managedNetworkPeeringPolicyName string) (result PeeringPoliciesDeleteFuture, err error)
Delete the Delete ManagedNetworkPeeringPolicies operation deletes a Managed Network Peering Policy, specified by the resource group, Managed Network name, and peering policy name Parameters: resourceGroupName - the name of the resource group. managedNetworkName - the name of the Managed Network. managedNetworkPeeringPolicyName - the name of the Managed Network Peering Policy.
func (PeeringPoliciesClient) DeletePreparer ¶
func (client PeeringPoliciesClient) DeletePreparer(ctx context.Context, resourceGroupName string, managedNetworkName string, managedNetworkPeeringPolicyName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (PeeringPoliciesClient) DeleteResponder ¶
func (client PeeringPoliciesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (PeeringPoliciesClient) DeleteSender ¶
func (client PeeringPoliciesClient) DeleteSender(req *http.Request) (future PeeringPoliciesDeleteFuture, err error)
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (PeeringPoliciesClient) Get ¶
func (client PeeringPoliciesClient) Get(ctx context.Context, resourceGroupName string, managedNetworkName string, managedNetworkPeeringPolicyName string) (result PeeringPolicy, err error)
Get the Get ManagedNetworkPeeringPolicies operation gets a Managed Network Peering Policy resource, specified by the resource group, Managed Network name, and peering policy name Parameters: resourceGroupName - the name of the resource group. managedNetworkName - the name of the Managed Network. managedNetworkPeeringPolicyName - the name of the Managed Network Peering Policy.
func (PeeringPoliciesClient) GetPreparer ¶
func (client PeeringPoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, managedNetworkName string, managedNetworkPeeringPolicyName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (PeeringPoliciesClient) GetResponder ¶
func (client PeeringPoliciesClient) GetResponder(resp *http.Response) (result PeeringPolicy, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (PeeringPoliciesClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (PeeringPoliciesClient) ListByManagedNetwork ¶
func (client PeeringPoliciesClient) ListByManagedNetwork(ctx context.Context, resourceGroupName string, managedNetworkName string, top *int32, skiptoken string) (result PeeringPolicyListResultPage, err error)
ListByManagedNetwork the ListByManagedNetwork PeeringPolicies operation retrieves all the Managed Network Peering Policies in a specified Managed Network, in a paginated format. Parameters: resourceGroupName - the name of the resource group. managedNetworkName - the name of the Managed Network. top - may be used to limit the number of results in a page for list queries. skiptoken - skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls.
func (PeeringPoliciesClient) ListByManagedNetworkComplete ¶
func (client PeeringPoliciesClient) ListByManagedNetworkComplete(ctx context.Context, resourceGroupName string, managedNetworkName string, top *int32, skiptoken string) (result PeeringPolicyListResultIterator, err error)
ListByManagedNetworkComplete enumerates all values, automatically crossing page boundaries as required.
func (PeeringPoliciesClient) ListByManagedNetworkPreparer ¶
func (client PeeringPoliciesClient) ListByManagedNetworkPreparer(ctx context.Context, resourceGroupName string, managedNetworkName string, top *int32, skiptoken string) (*http.Request, error)
ListByManagedNetworkPreparer prepares the ListByManagedNetwork request.
func (PeeringPoliciesClient) ListByManagedNetworkResponder ¶
func (client PeeringPoliciesClient) ListByManagedNetworkResponder(resp *http.Response) (result PeeringPolicyListResult, err error)
ListByManagedNetworkResponder handles the response to the ListByManagedNetwork request. The method always closes the http.Response Body.
func (PeeringPoliciesClient) ListByManagedNetworkSender ¶
func (client PeeringPoliciesClient) ListByManagedNetworkSender(req *http.Request) (*http.Response, error)
ListByManagedNetworkSender sends the ListByManagedNetwork request. The method will close the http.Response Body if it receives an error.
type PeeringPoliciesCreateOrUpdateFuture ¶
type PeeringPoliciesCreateOrUpdateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(PeeringPoliciesClient) (PeeringPolicy, error) }
PeeringPoliciesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*PeeringPoliciesCreateOrUpdateFuture) UnmarshalJSON ¶
func (future *PeeringPoliciesCreateOrUpdateFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
type PeeringPoliciesDeleteFuture ¶
type PeeringPoliciesDeleteFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(PeeringPoliciesClient) (autorest.Response, error) }
PeeringPoliciesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*PeeringPoliciesDeleteFuture) UnmarshalJSON ¶
func (future *PeeringPoliciesDeleteFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
type PeeringPolicy ¶
type PeeringPolicy struct { autorest.Response `json:"-"` // Properties - Gets or sets the properties of a Managed Network Policy Properties *PeeringPolicyProperties `json:"properties,omitempty"` // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. Type *string `json:"type,omitempty"` // Location - The geo-location where the resource lives Location *string `json:"location,omitempty"` }
PeeringPolicy the Managed Network Peering Policy resource
func (PeeringPolicy) MarshalJSON ¶
func (pp PeeringPolicy) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for PeeringPolicy.
type PeeringPolicyListResult ¶
type PeeringPolicyListResult struct { autorest.Response `json:"-"` // Value - Gets a page of Peering Policies Value *[]PeeringPolicy `json:"value,omitempty"` // NextLink - Gets the URL to get the next page of results. NextLink *string `json:"nextLink,omitempty"` }
PeeringPolicyListResult result of the request to list Managed Network Peering Policies. It contains a list of policies and a URL link to get the next set of results.
func (PeeringPolicyListResult) IsEmpty ¶
func (pplr PeeringPolicyListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type PeeringPolicyListResultIterator ¶
type PeeringPolicyListResultIterator struct {
// contains filtered or unexported fields
}
PeeringPolicyListResultIterator provides access to a complete listing of PeeringPolicy values.
func NewPeeringPolicyListResultIterator ¶
func NewPeeringPolicyListResultIterator(page PeeringPolicyListResultPage) PeeringPolicyListResultIterator
Creates a new instance of the PeeringPolicyListResultIterator type.
func (*PeeringPolicyListResultIterator) Next ¶
func (iter *PeeringPolicyListResultIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*PeeringPolicyListResultIterator) NextWithContext ¶
func (iter *PeeringPolicyListResultIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (PeeringPolicyListResultIterator) NotDone ¶
func (iter PeeringPolicyListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (PeeringPolicyListResultIterator) Response ¶
func (iter PeeringPolicyListResultIterator) Response() PeeringPolicyListResult
Response returns the raw server response from the last page request.
func (PeeringPolicyListResultIterator) Value ¶
func (iter PeeringPolicyListResultIterator) Value() PeeringPolicy
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type PeeringPolicyListResultPage ¶
type PeeringPolicyListResultPage struct {
// contains filtered or unexported fields
}
PeeringPolicyListResultPage contains a page of PeeringPolicy values.
func NewPeeringPolicyListResultPage ¶
func NewPeeringPolicyListResultPage(cur PeeringPolicyListResult, getNextPage func(context.Context, PeeringPolicyListResult) (PeeringPolicyListResult, error)) PeeringPolicyListResultPage
Creates a new instance of the PeeringPolicyListResultPage type.
func (*PeeringPolicyListResultPage) Next ¶
func (page *PeeringPolicyListResultPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*PeeringPolicyListResultPage) NextWithContext ¶
func (page *PeeringPolicyListResultPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (PeeringPolicyListResultPage) NotDone ¶
func (page PeeringPolicyListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (PeeringPolicyListResultPage) Response ¶
func (page PeeringPolicyListResultPage) Response() PeeringPolicyListResult
Response returns the raw server response from the last page request.
func (PeeringPolicyListResultPage) Values ¶
func (page PeeringPolicyListResultPage) Values() []PeeringPolicy
Values returns the slice of values for the current page or nil if there are no values.
type PeeringPolicyProperties ¶
type PeeringPolicyProperties struct { // Type - Gets or sets the connectivity type of a network structure policy. Possible values include: 'HubAndSpokeTopology', 'MeshTopology' Type Type `json:"type,omitempty"` // Hub - Gets or sets the hub virtual network ID Hub *ResourceID `json:"hub,omitempty"` // Spokes - Gets or sets the spokes group IDs Spokes *[]ResourceID `json:"spokes,omitempty"` // Mesh - Gets or sets the mesh group IDs Mesh *[]ResourceID `json:"mesh,omitempty"` // ProvisioningState - READ-ONLY; Provisioning state of the ManagedNetwork resource. Possible values include: 'Updating', 'Deleting', 'Failed', 'Succeeded' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty"` }
PeeringPolicyProperties properties of a Managed Network Peering Policy
func (PeeringPolicyProperties) MarshalJSON ¶
func (ppp PeeringPolicyProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for PeeringPolicyProperties.
type Properties ¶
type Properties struct { // Scope - The collection of management groups, subscriptions, virtual networks, and subnets by the Managed Network. This is a read-only property that is reflective of all ScopeAssignments for this Managed Network Scope *Scope `json:"scope,omitempty"` // Connectivity - READ-ONLY; The collection of groups and policies concerned with connectivity Connectivity *ConnectivityCollection `json:"connectivity,omitempty"` // ProvisioningState - READ-ONLY; Provisioning state of the ManagedNetwork resource. Possible values include: 'Updating', 'Deleting', 'Failed', 'Succeeded' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty"` }
Properties properties of Managed Network
func (Properties) MarshalJSON ¶
func (p Properties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Properties.
type ProvisioningState ¶
type ProvisioningState string
ProvisioningState enumerates the values for provisioning state.
const ( // Deleting ... Deleting ProvisioningState = "Deleting" // Failed ... Failed ProvisioningState = "Failed" // Succeeded ... Succeeded ProvisioningState = "Succeeded" // Updating ... Updating ProvisioningState = "Updating" )
func PossibleProvisioningStateValues ¶
func PossibleProvisioningStateValues() []ProvisioningState
PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type.
type ProxyResource ¶
type ProxyResource struct { // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. Type *string `json:"type,omitempty"` // Location - The geo-location where the resource lives Location *string `json:"location,omitempty"` }
ProxyResource the resource model definition for a ARM proxy resource. It will have everything other than required location and tags
func (ProxyResource) MarshalJSON ¶
func (pr ProxyResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ProxyResource.
type Resource ¶
type Resource struct { // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. Type *string `json:"type,omitempty"` // Location - The geo-location where the resource lives Location *string `json:"location,omitempty"` }
Resource the general resource model definition
func (Resource) MarshalJSON ¶
MarshalJSON is the custom marshaler for Resource.
type ResourceID ¶
type ResourceID struct { // ID - Resource Id ID *string `json:"id,omitempty"` }
ResourceID generic pointer to a resource
type ResourceProperties ¶
type ResourceProperties struct { // ProvisioningState - READ-ONLY; Provisioning state of the ManagedNetwork resource. Possible values include: 'Updating', 'Deleting', 'Failed', 'Succeeded' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty"` }
ResourceProperties base for resource properties.
func (ResourceProperties) MarshalJSON ¶
func (rp ResourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ResourceProperties.
type Scope ¶
type Scope struct { // ManagementGroups - The collection of management groups covered by the Managed Network ManagementGroups *[]ResourceID `json:"managementGroups,omitempty"` // Subscriptions - The collection of subscriptions covered by the Managed Network Subscriptions *[]ResourceID `json:"subscriptions,omitempty"` // VirtualNetworks - The collection of virtual nets covered by the Managed Network VirtualNetworks *[]ResourceID `json:"virtualNetworks,omitempty"` // Subnets - The collection of subnets covered by the Managed Network Subnets *[]ResourceID `json:"subnets,omitempty"` }
Scope scope of a Managed Network
type ScopeAssignment ¶
type ScopeAssignment struct { autorest.Response `json:"-"` // ScopeAssignmentProperties - The Scope Assignment properties *ScopeAssignmentProperties `json:"properties,omitempty"` // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. Type *string `json:"type,omitempty"` // Location - The geo-location where the resource lives Location *string `json:"location,omitempty"` }
ScopeAssignment the Managed Network resource
func (ScopeAssignment) MarshalJSON ¶
func (sa ScopeAssignment) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ScopeAssignment.
func (*ScopeAssignment) UnmarshalJSON ¶
func (sa *ScopeAssignment) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ScopeAssignment struct.
type ScopeAssignmentListResult ¶
type ScopeAssignmentListResult struct { autorest.Response `json:"-"` // Value - Gets a page of ScopeAssignment Value *[]ScopeAssignment `json:"value,omitempty"` // NextLink - Gets the URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` }
ScopeAssignmentListResult result of the request to list ScopeAssignment. It contains a list of groups and a URL link to get the next set of results.
func (ScopeAssignmentListResult) IsEmpty ¶
func (salr ScopeAssignmentListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type ScopeAssignmentListResultIterator ¶
type ScopeAssignmentListResultIterator struct {
// contains filtered or unexported fields
}
ScopeAssignmentListResultIterator provides access to a complete listing of ScopeAssignment values.
func NewScopeAssignmentListResultIterator ¶
func NewScopeAssignmentListResultIterator(page ScopeAssignmentListResultPage) ScopeAssignmentListResultIterator
Creates a new instance of the ScopeAssignmentListResultIterator type.
func (*ScopeAssignmentListResultIterator) Next ¶
func (iter *ScopeAssignmentListResultIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*ScopeAssignmentListResultIterator) NextWithContext ¶
func (iter *ScopeAssignmentListResultIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (ScopeAssignmentListResultIterator) NotDone ¶
func (iter ScopeAssignmentListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (ScopeAssignmentListResultIterator) Response ¶
func (iter ScopeAssignmentListResultIterator) Response() ScopeAssignmentListResult
Response returns the raw server response from the last page request.
func (ScopeAssignmentListResultIterator) Value ¶
func (iter ScopeAssignmentListResultIterator) Value() ScopeAssignment
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type ScopeAssignmentListResultPage ¶
type ScopeAssignmentListResultPage struct {
// contains filtered or unexported fields
}
ScopeAssignmentListResultPage contains a page of ScopeAssignment values.
func NewScopeAssignmentListResultPage ¶
func NewScopeAssignmentListResultPage(cur ScopeAssignmentListResult, getNextPage func(context.Context, ScopeAssignmentListResult) (ScopeAssignmentListResult, error)) ScopeAssignmentListResultPage
Creates a new instance of the ScopeAssignmentListResultPage type.
func (*ScopeAssignmentListResultPage) Next ¶
func (page *ScopeAssignmentListResultPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*ScopeAssignmentListResultPage) NextWithContext ¶
func (page *ScopeAssignmentListResultPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (ScopeAssignmentListResultPage) NotDone ¶
func (page ScopeAssignmentListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (ScopeAssignmentListResultPage) Response ¶
func (page ScopeAssignmentListResultPage) Response() ScopeAssignmentListResult
Response returns the raw server response from the last page request.
func (ScopeAssignmentListResultPage) Values ¶
func (page ScopeAssignmentListResultPage) Values() []ScopeAssignment
Values returns the slice of values for the current page or nil if there are no values.
type ScopeAssignmentProperties ¶
type ScopeAssignmentProperties struct { // AssignedManagedNetwork - The managed network ID with scope will be assigned to. AssignedManagedNetwork *string `json:"assignedManagedNetwork,omitempty"` // ProvisioningState - READ-ONLY; Provisioning state of the ManagedNetwork resource. Possible values include: 'Updating', 'Deleting', 'Failed', 'Succeeded' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` // Etag - READ-ONLY; A unique read-only string that changes whenever the resource is updated. Etag *string `json:"etag,omitempty"` }
ScopeAssignmentProperties properties of Managed Network
func (ScopeAssignmentProperties) MarshalJSON ¶
func (sap ScopeAssignmentProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ScopeAssignmentProperties.
type ScopeAssignmentsClient ¶
type ScopeAssignmentsClient struct {
BaseClient
}
ScopeAssignmentsClient is the the Microsoft Azure Managed Network management API provides a RESTful set of web services that interact with Microsoft Azure Networks service to programmatically view, control, change, and monitor your entire Azure network centrally and with ease.
func NewScopeAssignmentsClient ¶
func NewScopeAssignmentsClient(subscriptionID string) ScopeAssignmentsClient
NewScopeAssignmentsClient creates an instance of the ScopeAssignmentsClient client.
func NewScopeAssignmentsClientWithBaseURI ¶
func NewScopeAssignmentsClientWithBaseURI(baseURI string, subscriptionID string) ScopeAssignmentsClient
NewScopeAssignmentsClientWithBaseURI creates an instance of the ScopeAssignmentsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (ScopeAssignmentsClient) CreateOrUpdate ¶
func (client ScopeAssignmentsClient) CreateOrUpdate(ctx context.Context, parameters ScopeAssignment, scope string, scopeAssignmentName string) (result ScopeAssignment, err error)
CreateOrUpdate creates a scope assignment. Parameters: parameters - parameters supplied to the specify which Managed Network this scope is being assigned scope - the base resource of the scope assignment to create. The scope can be any REST resource instance. For example, use 'subscriptions/{subscription-id}' for a subscription, 'subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for a resource group, and 'subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider}/{resource-type}/{resource-name}' for a resource. scopeAssignmentName - the name of the scope assignment to create.
func (ScopeAssignmentsClient) CreateOrUpdatePreparer ¶
func (client ScopeAssignmentsClient) CreateOrUpdatePreparer(ctx context.Context, parameters ScopeAssignment, scope string, scopeAssignmentName string) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (ScopeAssignmentsClient) CreateOrUpdateResponder ¶
func (client ScopeAssignmentsClient) CreateOrUpdateResponder(resp *http.Response) (result ScopeAssignment, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (ScopeAssignmentsClient) CreateOrUpdateSender ¶
func (client ScopeAssignmentsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (ScopeAssignmentsClient) Delete ¶
func (client ScopeAssignmentsClient) Delete(ctx context.Context, scope string, scopeAssignmentName string) (result autorest.Response, err error)
Delete deletes a scope assignment. Parameters: scope - the scope of the scope assignment to delete. scopeAssignmentName - the name of the scope assignment to delete.
func (ScopeAssignmentsClient) DeletePreparer ¶
func (client ScopeAssignmentsClient) DeletePreparer(ctx context.Context, scope string, scopeAssignmentName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (ScopeAssignmentsClient) DeleteResponder ¶
func (client ScopeAssignmentsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (ScopeAssignmentsClient) DeleteSender ¶
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (ScopeAssignmentsClient) Get ¶
func (client ScopeAssignmentsClient) Get(ctx context.Context, scope string, scopeAssignmentName string) (result ScopeAssignment, err error)
Get get the specified scope assignment. Parameters: scope - the base resource of the scope assignment. scopeAssignmentName - the name of the scope assignment to get.
func (ScopeAssignmentsClient) GetPreparer ¶
func (client ScopeAssignmentsClient) GetPreparer(ctx context.Context, scope string, scopeAssignmentName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (ScopeAssignmentsClient) GetResponder ¶
func (client ScopeAssignmentsClient) GetResponder(resp *http.Response) (result ScopeAssignment, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (ScopeAssignmentsClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (ScopeAssignmentsClient) List ¶
func (client ScopeAssignmentsClient) List(ctx context.Context, scope string) (result ScopeAssignmentListResultPage, err error)
List get the specified scope assignment. Parameters: scope - the base resource of the scope assignment.
func (ScopeAssignmentsClient) ListComplete ¶
func (client ScopeAssignmentsClient) ListComplete(ctx context.Context, scope string) (result ScopeAssignmentListResultIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (ScopeAssignmentsClient) ListPreparer ¶
func (client ScopeAssignmentsClient) ListPreparer(ctx context.Context, scope string) (*http.Request, error)
ListPreparer prepares the List request.
func (ScopeAssignmentsClient) ListResponder ¶
func (client ScopeAssignmentsClient) ListResponder(resp *http.Response) (result ScopeAssignmentListResult, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (ScopeAssignmentsClient) ListSender ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
type TrackedResource ¶
type TrackedResource struct { // Tags - Resource tags Tags map[string]*string `json:"tags"` // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. Type *string `json:"type,omitempty"` // Location - The geo-location where the resource lives Location *string `json:"location,omitempty"` }
TrackedResource the resource model definition for a ARM tracked top level resource
func (TrackedResource) MarshalJSON ¶
func (tr TrackedResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for TrackedResource.