const ( // DefaultBaseURI is the default URI used for the service Aad DefaultBaseURI = "https://management.azure.com" )
func UserAgent() string
UserAgent returns the UserAgent string to use when sending http.Requests.
func Version() string
Version returns the semantic version (see http://semver.org) of the client.
ARMProxyResource the resource model definition for a ARM proxy resource. It will have everything other than required location and tags
type ARMProxyResource struct { // ID - READ-ONLY; The unique resource identifier of the Azure AD PrivateLink Policy. ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the Azure AD PrivateLink Policy. Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of Azure resource. Type *string `json:"type,omitempty"` }
func (apr ARMProxyResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ARMProxyResource.
AzureADMetricsClient is the client for the AzureADMetrics methods of the Aad service.
type AzureADMetricsClient struct { BaseClient }
func NewAzureADMetricsClient(subscriptionID string) AzureADMetricsClient
NewAzureADMetricsClient creates an instance of the AzureADMetricsClient client.
func NewAzureADMetricsClientWithBaseURI(baseURI string, subscriptionID string) AzureADMetricsClient
NewAzureADMetricsClientWithBaseURI creates an instance of the AzureADMetricsClient 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 (client AzureADMetricsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, azureADMetricsName string, azureADMetricsConfig AzureADMetricsConfig) (result AzureADMetricsCreateOrUpdateFuture, err error)
CreateOrUpdate creates a azureADMetrics instance. Parameters: resourceGroupName - name of an Azure resource group. azureADMetricsName - name of the azureADMetrics instance. azureADMetricsConfig - azureADMetrics definition supplied to the operation.
func (client AzureADMetricsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, azureADMetricsName string, azureADMetricsConfig AzureADMetricsConfig) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (client AzureADMetricsClient) CreateOrUpdateResponder(resp *http.Response) (result AzureADMetricsConfig, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (client AzureADMetricsClient) CreateOrUpdateSender(req *http.Request) (future AzureADMetricsCreateOrUpdateFuture, err error)
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (client AzureADMetricsClient) Delete(ctx context.Context, resourceGroupName string, azureADMetricsName string) (result autorest.Response, err error)
Delete deletes a AzureADMetrics resource. When operation completes, status code 200 returned without content. Parameters: resourceGroupName - name of an Azure resource group. azureADMetricsName - name of the azureADMetrics instance.
func (client AzureADMetricsClient) DeletePreparer(ctx context.Context, resourceGroupName string, azureADMetricsName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (client AzureADMetricsClient) 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 (client AzureADMetricsClient) DeleteSender(req *http.Request) (*http.Response, error)
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (client AzureADMetricsClient) Get(ctx context.Context, resourceGroupName string, azureADMetricsName string) (result AzureADMetricsConfig, err error)
Get gets a azureADMetrics instance with a given name. Parameters: resourceGroupName - name of an Azure resource group. azureADMetricsName - name of the azureADMetrics instance.
func (client AzureADMetricsClient) GetPreparer(ctx context.Context, resourceGroupName string, azureADMetricsName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client AzureADMetricsClient) GetResponder(resp *http.Response) (result AzureADMetricsConfig, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client AzureADMetricsClient) GetSender(req *http.Request) (*http.Response, error)
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (client AzureADMetricsClient) List(ctx context.Context, resourceGroupName string) (result AzureADMetricsListResultPage, err error)
List operation to return the list of AzureADMetrics resources scoped to the resourceGroup. Parameters: resourceGroupName - name of an Azure resource group.
func (client AzureADMetricsClient) ListBySubscription(ctx context.Context) (result AzureADMetricsListResultPage, err error)
ListBySubscription lists all AzureADMetrics resources in the given subscription.
func (client AzureADMetricsClient) ListBySubscriptionComplete(ctx context.Context) (result AzureADMetricsListResultIterator, err error)
ListBySubscriptionComplete enumerates all values, automatically crossing page boundaries as required.
func (client AzureADMetricsClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error)
ListBySubscriptionPreparer prepares the ListBySubscription request.
func (client AzureADMetricsClient) ListBySubscriptionResponder(resp *http.Response) (result AzureADMetricsListResult, err error)
ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always closes the http.Response Body.
func (client AzureADMetricsClient) 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 (client AzureADMetricsClient) ListComplete(ctx context.Context, resourceGroupName string) (result AzureADMetricsListResultIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (client AzureADMetricsClient) ListPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
ListPreparer prepares the List request.
func (client AzureADMetricsClient) ListResponder(resp *http.Response) (result AzureADMetricsListResult, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (client AzureADMetricsClient) ListSender(req *http.Request) (*http.Response, error)
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
func (client AzureADMetricsClient) Update(ctx context.Context, resourceGroupName string, azureADMetricsName string, azureADMetricsConfig *AzureADMetricsUpdateParameter) (result AzureADMetricsConfig, err error)
Update updates azureADMetrics tags with specified values. Parameters: resourceGroupName - name of an Azure resource group. azureADMetricsName - name of the azureADMetrics instance. azureADMetricsConfig - azureADMetrics resource with the tags to be updated.
func (client AzureADMetricsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, azureADMetricsName string, azureADMetricsConfig *AzureADMetricsUpdateParameter) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (client AzureADMetricsClient) UpdateResponder(resp *http.Response) (result AzureADMetricsConfig, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (client AzureADMetricsClient) UpdateSender(req *http.Request) (*http.Response, error)
UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.
AzureADMetricsConfig azureADMetrics resource.
type AzureADMetricsConfig struct { autorest.Response `json:"-"` Properties *AzureADMetricsPropertiesFormat `json:"properties,omitempty"` // Tags - Resource tags. Tags map[string]*string `json:"tags"` // Location - The geo-location where the resource lives Location *string `json:"location,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. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` }
func (amc AzureADMetricsConfig) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AzureADMetricsConfig.
AzureADMetricsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type AzureADMetricsCreateOrUpdateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(AzureADMetricsClient) (AzureADMetricsConfig, error) }
func (future *AzureADMetricsCreateOrUpdateFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
AzureADMetricsListResult a list of AzureADMetrics resources
type AzureADMetricsListResult struct { autorest.Response `json:"-"` // Value - READ-ONLY; Array of AzureADMetrics resources. Value *[]AzureADMetricsConfig `json:"value,omitempty"` // NextLink - READ-ONLY; The link used to get the next page of operations. NextLink *string `json:"nextLink,omitempty"` }
func (amlr AzureADMetricsListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
func (amlr AzureADMetricsListResult) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AzureADMetricsListResult.
AzureADMetricsListResultIterator provides access to a complete listing of AzureADMetricsConfig values.
type AzureADMetricsListResultIterator struct {
// contains filtered or unexported fields
}
func NewAzureADMetricsListResultIterator(page AzureADMetricsListResultPage) AzureADMetricsListResultIterator
Creates a new instance of the AzureADMetricsListResultIterator type.
func (iter *AzureADMetricsListResultIterator) 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 (iter *AzureADMetricsListResultIterator) 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 (iter AzureADMetricsListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter AzureADMetricsListResultIterator) Response() AzureADMetricsListResult
Response returns the raw server response from the last page request.
func (iter AzureADMetricsListResultIterator) Value() AzureADMetricsConfig
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
AzureADMetricsListResultPage contains a page of AzureADMetricsConfig values.
type AzureADMetricsListResultPage struct {
// contains filtered or unexported fields
}
func NewAzureADMetricsListResultPage(cur AzureADMetricsListResult, getNextPage func(context.Context, AzureADMetricsListResult) (AzureADMetricsListResult, error)) AzureADMetricsListResultPage
Creates a new instance of the AzureADMetricsListResultPage type.
func (page *AzureADMetricsListResultPage) 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 (page *AzureADMetricsListResultPage) 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 (page AzureADMetricsListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page AzureADMetricsListResultPage) Response() AzureADMetricsListResult
Response returns the raw server response from the last page request.
func (page AzureADMetricsListResultPage) Values() []AzureADMetricsConfig
Values returns the slice of values for the current page or nil if there are no values.
AzureADMetricsPropertiesFormat ...
type AzureADMetricsPropertiesFormat struct { // ProvisioningState - READ-ONLY; The provisioning state of the resource. Possible values include: 'ProvisioningStateSucceeded', 'ProvisioningStateCreated', 'ProvisioningStateFailed' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` }
func (aampf AzureADMetricsPropertiesFormat) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AzureADMetricsPropertiesFormat.
AzureADMetricsUpdateParameter azureADMetrics parameters to be updated.
type AzureADMetricsUpdateParameter struct { // Tags - Resource tags to be updated. Tags map[string]*string `json:"tags"` }
func (amup AzureADMetricsUpdateParameter) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AzureADMetricsUpdateParameter.
AzureEntityResource the resource model definition for an Azure Resource Manager resource with an etag.
type AzureEntityResource struct { // Etag - READ-ONLY; Resource Etag. Etag *string `json:"etag,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. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` }
func (aer AzureEntityResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AzureEntityResource.
AzureResourceBase common properties for all Azure resources.
type AzureResourceBase struct { // ID - READ-ONLY; String Id used to locate any resource on Azure. ID *string `json:"id,omitempty"` // Name - Name of this resource. Name *string `json:"name,omitempty"` // Type - READ-ONLY; Type of this resource. Type *string `json:"type,omitempty"` }
func (arb AzureResourceBase) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AzureResourceBase.
BaseClient is the base client for Aad.
type BaseClient struct { autorest.Client BaseURI string SubscriptionID string }
func New(subscriptionID string) BaseClient
New creates an instance of the BaseClient client.
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).
ErrorDefinition error definition.
type ErrorDefinition struct { // Code - READ-ONLY; Service specific error code which serves as the substatus for the HTTP error code. Code *string `json:"code,omitempty"` // Message - READ-ONLY; Description of the error. Message *string `json:"message,omitempty"` // Details - READ-ONLY; Internal error details. Details *[]ErrorDefinition `json:"details,omitempty"` }
func (ed ErrorDefinition) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ErrorDefinition.
ErrorResponse error response.
type ErrorResponse struct { // Error - The error details. Error *ErrorDefinition `json:"error,omitempty"` }
PrivateLinkForAzureAdClient is the client for the PrivateLinkForAzureAd methods of the Aad service.
type PrivateLinkForAzureAdClient struct { BaseClient }
func NewPrivateLinkForAzureAdClient(subscriptionID string) PrivateLinkForAzureAdClient
NewPrivateLinkForAzureAdClient creates an instance of the PrivateLinkForAzureAdClient client.
func NewPrivateLinkForAzureAdClientWithBaseURI(baseURI string, subscriptionID string) PrivateLinkForAzureAdClient
NewPrivateLinkForAzureAdClientWithBaseURI creates an instance of the PrivateLinkForAzureAdClient 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 (client PrivateLinkForAzureAdClient) Create(ctx context.Context, resourceGroupName string, policyName string, privateLinkPolicy PrivateLinkPolicy) (result PrivateLinkForAzureAdCreateFuture, err error)
Create creates a private link policy. Parameters: resourceGroupName - name of an Azure resource group. policyName - the name of the private link policy in Azure AD. privateLinkPolicy - private link Policy supplied to the operation.
func (client PrivateLinkForAzureAdClient) CreatePreparer(ctx context.Context, resourceGroupName string, policyName string, privateLinkPolicy PrivateLinkPolicy) (*http.Request, error)
CreatePreparer prepares the Create request.
func (client PrivateLinkForAzureAdClient) CreateResponder(resp *http.Response) (result PrivateLinkPolicy, err error)
CreateResponder handles the response to the Create request. The method always closes the http.Response Body.
func (client PrivateLinkForAzureAdClient) CreateSender(req *http.Request) (future PrivateLinkForAzureAdCreateFuture, err error)
CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.
func (client PrivateLinkForAzureAdClient) Delete(ctx context.Context, resourceGroupName string, policyName string) (result autorest.Response, err error)
Delete deletes a private link policy. When operation completes, status code 200 returned without content. Parameters: resourceGroupName - name of an Azure resource group. policyName - the name of the private link policy in Azure AD.
func (client PrivateLinkForAzureAdClient) DeletePreparer(ctx context.Context, resourceGroupName string, policyName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (client PrivateLinkForAzureAdClient) 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 (client PrivateLinkForAzureAdClient) DeleteSender(req *http.Request) (*http.Response, error)
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (client PrivateLinkForAzureAdClient) Get(ctx context.Context, resourceGroupName string, policyName string) (result PrivateLinkPolicy, err error)
Get gets a private link policy with a given name. Parameters: resourceGroupName - name of an Azure resource group. policyName - the name of the private link policy in Azure AD.
func (client PrivateLinkForAzureAdClient) GetPreparer(ctx context.Context, resourceGroupName string, policyName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client PrivateLinkForAzureAdClient) GetResponder(resp *http.Response) (result PrivateLinkPolicy, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client PrivateLinkForAzureAdClient) GetSender(req *http.Request) (*http.Response, error)
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (client PrivateLinkForAzureAdClient) List(ctx context.Context, resourceGroupName string) (result PrivateLinkPolicyListResultPage, err error)
List operation to return the list of Private Link Policies For AzureAD scoped to the resourceGroup. Parameters: resourceGroupName - name of an Azure resource group.
func (client PrivateLinkForAzureAdClient) ListBySubscription(ctx context.Context) (result PrivateLinkPolicyListResultPage, err error)
ListBySubscription lists all Private Link Policies For AzureAD in the given subscription.
func (client PrivateLinkForAzureAdClient) ListBySubscriptionComplete(ctx context.Context) (result PrivateLinkPolicyListResultIterator, err error)
ListBySubscriptionComplete enumerates all values, automatically crossing page boundaries as required.
func (client PrivateLinkForAzureAdClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error)
ListBySubscriptionPreparer prepares the ListBySubscription request.
func (client PrivateLinkForAzureAdClient) ListBySubscriptionResponder(resp *http.Response) (result PrivateLinkPolicyListResult, err error)
ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always closes the http.Response Body.
func (client PrivateLinkForAzureAdClient) 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 (client PrivateLinkForAzureAdClient) ListComplete(ctx context.Context, resourceGroupName string) (result PrivateLinkPolicyListResultIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (client PrivateLinkForAzureAdClient) ListPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
ListPreparer prepares the List request.
func (client PrivateLinkForAzureAdClient) ListResponder(resp *http.Response) (result PrivateLinkPolicyListResult, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (client PrivateLinkForAzureAdClient) ListSender(req *http.Request) (*http.Response, error)
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
func (client PrivateLinkForAzureAdClient) Update(ctx context.Context, resourceGroupName string, policyName string, privateLinkPolicy *PrivateLinkPolicyUpdateParameter) (result PrivateLinkPolicy, err error)
Update updates private link policy tags with specified values. Parameters: resourceGroupName - name of an Azure resource group. policyName - the name of the private link policy in Azure AD. privateLinkPolicy - private Link Policy resource with the tags to be updated.
func (client PrivateLinkForAzureAdClient) UpdatePreparer(ctx context.Context, resourceGroupName string, policyName string, privateLinkPolicy *PrivateLinkPolicyUpdateParameter) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (client PrivateLinkForAzureAdClient) UpdateResponder(resp *http.Response) (result PrivateLinkPolicy, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (client PrivateLinkForAzureAdClient) UpdateSender(req *http.Request) (*http.Response, error)
UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.
PrivateLinkForAzureAdCreateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type PrivateLinkForAzureAdCreateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(PrivateLinkForAzureAdClient) (PrivateLinkPolicy, error) }
func (future *PrivateLinkForAzureAdCreateFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
PrivateLinkPolicy privateLink Policy configuration object.
type PrivateLinkPolicy struct { autorest.Response `json:"-"` // OwnerTenantID - Guid of the owner tenant OwnerTenantID *string `json:"ownerTenantId,omitempty"` // AllTenants - Flag indicating whether all tenants are allowed AllTenants *bool `json:"allTenants,omitempty"` // Tenants - The list of tenantIds. Tenants *[]string `json:"tenants,omitempty"` // ResourceName - Name of the private link policy resource ResourceName *string `json:"resourceName,omitempty"` // SubscriptionID - Subscription Identifier SubscriptionID *string `json:"subscriptionId,omitempty"` // ResourceGroup - Name of the resource group ResourceGroup *string `json:"resourceGroup,omitempty"` // Tags - Resource tags. Tags map[string]*string `json:"tags"` // ID - READ-ONLY; String Id used to locate any resource on Azure. ID *string `json:"id,omitempty"` // Name - Name of this resource. Name *string `json:"name,omitempty"` // Type - READ-ONLY; Type of this resource. Type *string `json:"type,omitempty"` }
func (plp PrivateLinkPolicy) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for PrivateLinkPolicy.
PrivateLinkPolicyListResult a list of private link policies
type PrivateLinkPolicyListResult struct { autorest.Response `json:"-"` // Value - Array of private link policies Value *[]PrivateLinkPolicy `json:"value,omitempty"` // NextLink - The link used to get the next page of operations. NextLink *string `json:"nextLink,omitempty"` }
func (plplr PrivateLinkPolicyListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
PrivateLinkPolicyListResultIterator provides access to a complete listing of PrivateLinkPolicy values.
type PrivateLinkPolicyListResultIterator struct {
// contains filtered or unexported fields
}
func NewPrivateLinkPolicyListResultIterator(page PrivateLinkPolicyListResultPage) PrivateLinkPolicyListResultIterator
Creates a new instance of the PrivateLinkPolicyListResultIterator type.
func (iter *PrivateLinkPolicyListResultIterator) 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 (iter *PrivateLinkPolicyListResultIterator) 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 (iter PrivateLinkPolicyListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter PrivateLinkPolicyListResultIterator) Response() PrivateLinkPolicyListResult
Response returns the raw server response from the last page request.
func (iter PrivateLinkPolicyListResultIterator) Value() PrivateLinkPolicy
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
PrivateLinkPolicyListResultPage contains a page of PrivateLinkPolicy values.
type PrivateLinkPolicyListResultPage struct {
// contains filtered or unexported fields
}
func NewPrivateLinkPolicyListResultPage(cur PrivateLinkPolicyListResult, getNextPage func(context.Context, PrivateLinkPolicyListResult) (PrivateLinkPolicyListResult, error)) PrivateLinkPolicyListResultPage
Creates a new instance of the PrivateLinkPolicyListResultPage type.
func (page *PrivateLinkPolicyListResultPage) 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 (page *PrivateLinkPolicyListResultPage) 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 (page PrivateLinkPolicyListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page PrivateLinkPolicyListResultPage) Response() PrivateLinkPolicyListResult
Response returns the raw server response from the last page request.
func (page PrivateLinkPolicyListResultPage) Values() []PrivateLinkPolicy
Values returns the slice of values for the current page or nil if there are no values.
PrivateLinkPolicyUpdateParameter private Link policy parameters to be updated.
type PrivateLinkPolicyUpdateParameter struct { // Tags - Resource tags to be updated. Tags map[string]*string `json:"tags"` }
func (plpup PrivateLinkPolicyUpdateParameter) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for PrivateLinkPolicyUpdateParameter.
PrivateLinkResource a private link resource
type PrivateLinkResource struct { autorest.Response `json:"-"` // PrivateLinkResourceProperties - Resource properties. *PrivateLinkResourceProperties `json:"properties,omitempty"` // ID - READ-ONLY; The unique resource identifier of the Azure AD PrivateLink Policy. ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the Azure AD PrivateLink Policy. Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of Azure resource. Type *string `json:"type,omitempty"` }
func (plr PrivateLinkResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for PrivateLinkResource.
func (plr *PrivateLinkResource) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for PrivateLinkResource struct.
PrivateLinkResourceListResult a list of private link resources
type PrivateLinkResourceListResult struct { autorest.Response `json:"-"` // Value - Array of private link resources Value *[]PrivateLinkResource `json:"value,omitempty"` // NextLink - The link used to get the next page of operations. NextLink *string `json:"nextLink,omitempty"` }
func (plrlr PrivateLinkResourceListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
PrivateLinkResourceListResultIterator provides access to a complete listing of PrivateLinkResource values.
type PrivateLinkResourceListResultIterator struct {
// contains filtered or unexported fields
}
func NewPrivateLinkResourceListResultIterator(page PrivateLinkResourceListResultPage) PrivateLinkResourceListResultIterator
Creates a new instance of the PrivateLinkResourceListResultIterator type.
func (iter *PrivateLinkResourceListResultIterator) 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 (iter *PrivateLinkResourceListResultIterator) 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 (iter PrivateLinkResourceListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter PrivateLinkResourceListResultIterator) Response() PrivateLinkResourceListResult
Response returns the raw server response from the last page request.
func (iter PrivateLinkResourceListResultIterator) Value() PrivateLinkResource
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
PrivateLinkResourceListResultPage contains a page of PrivateLinkResource values.
type PrivateLinkResourceListResultPage struct {
// contains filtered or unexported fields
}
func NewPrivateLinkResourceListResultPage(cur PrivateLinkResourceListResult, getNextPage func(context.Context, PrivateLinkResourceListResult) (PrivateLinkResourceListResult, error)) PrivateLinkResourceListResultPage
Creates a new instance of the PrivateLinkResourceListResultPage type.
func (page *PrivateLinkResourceListResultPage) 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 (page *PrivateLinkResourceListResultPage) 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 (page PrivateLinkResourceListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page PrivateLinkResourceListResultPage) Response() PrivateLinkResourceListResult
Response returns the raw server response from the last page request.
func (page PrivateLinkResourceListResultPage) Values() []PrivateLinkResource
Values returns the slice of values for the current page or nil if there are no values.
PrivateLinkResourceProperties properties of a private link resource.
type PrivateLinkResourceProperties struct { // GroupID - READ-ONLY; The private link resource group id. GroupID *string `json:"groupId,omitempty"` // RequiredMembers - READ-ONLY; The private link resource required member names. RequiredMembers *[]string `json:"requiredMembers,omitempty"` }
func (plrp PrivateLinkResourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for PrivateLinkResourceProperties.
PrivateLinkResourcesClient is the client for the PrivateLinkResources methods of the Aad service.
type PrivateLinkResourcesClient struct { BaseClient }
func NewPrivateLinkResourcesClient(subscriptionID string) PrivateLinkResourcesClient
NewPrivateLinkResourcesClient creates an instance of the PrivateLinkResourcesClient client.
func NewPrivateLinkResourcesClientWithBaseURI(baseURI string, subscriptionID string) PrivateLinkResourcesClient
NewPrivateLinkResourcesClientWithBaseURI creates an instance of the PrivateLinkResourcesClient 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 (client PrivateLinkResourcesClient) Get(ctx context.Context, resourceGroupName string, policyName string, groupName string) (result PrivateLinkResource, err error)
Get gets the private link resources that need to be created for a policy of AzureAD. Parameters: resourceGroupName - name of an Azure resource group. policyName - the name of the private link policy in Azure AD. groupName - the name of the private link resource.
func (client PrivateLinkResourcesClient) GetPreparer(ctx context.Context, resourceGroupName string, policyName string, groupName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client PrivateLinkResourcesClient) GetResponder(resp *http.Response) (result PrivateLinkResource, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client PrivateLinkResourcesClient) GetSender(req *http.Request) (*http.Response, error)
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (client PrivateLinkResourcesClient) ListByPrivateLinkPolicy(ctx context.Context, resourceGroupName string, policyName string) (result PrivateLinkResourceListResultPage, err error)
ListByPrivateLinkPolicy gets the private link resources that need to be created for a policy of AzureAD. Parameters: resourceGroupName - name of an Azure resource group. policyName - the name of the private link policy in Azure AD.
func (client PrivateLinkResourcesClient) ListByPrivateLinkPolicyComplete(ctx context.Context, resourceGroupName string, policyName string) (result PrivateLinkResourceListResultIterator, err error)
ListByPrivateLinkPolicyComplete enumerates all values, automatically crossing page boundaries as required.
func (client PrivateLinkResourcesClient) ListByPrivateLinkPolicyPreparer(ctx context.Context, resourceGroupName string, policyName string) (*http.Request, error)
ListByPrivateLinkPolicyPreparer prepares the ListByPrivateLinkPolicy request.
func (client PrivateLinkResourcesClient) ListByPrivateLinkPolicyResponder(resp *http.Response) (result PrivateLinkResourceListResult, err error)
ListByPrivateLinkPolicyResponder handles the response to the ListByPrivateLinkPolicy request. The method always closes the http.Response Body.
func (client PrivateLinkResourcesClient) ListByPrivateLinkPolicySender(req *http.Request) (*http.Response, error)
ListByPrivateLinkPolicySender sends the ListByPrivateLinkPolicy request. The method will close the http.Response Body if it receives an error.
ProvisioningState enumerates the values for provisioning state.
type ProvisioningState string
const ( // ProvisioningStateCreated ... ProvisioningStateCreated ProvisioningState = "Created" // ProvisioningStateFailed ... ProvisioningStateFailed ProvisioningState = "Failed" // ProvisioningStateSucceeded ... ProvisioningStateSucceeded ProvisioningState = "Succeeded" )
func PossibleProvisioningStateValues() []ProvisioningState
PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type.
ProxyResource the resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location
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. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` }
func (pr ProxyResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ProxyResource.
Resource common fields that are returned in the response for all Azure Resource Manager resources
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. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` }
func (r Resource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Resource.
TrackedResource the resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'
type TrackedResource struct { // Tags - Resource tags. Tags map[string]*string `json:"tags"` // Location - The geo-location where the resource lives Location *string `json:"location,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. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` }
func (tr TrackedResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for TrackedResource.