Documentation ¶
Index ¶
- type ARMProxyResource
- type AzureResourceBase
- type ErrorDefinition
- type ErrorResponse
- type PrivateEndpoint
- type PrivateEndpointConnection
- type PrivateEndpointConnectionListResult
- type PrivateEndpointConnectionProperties
- type PrivateEndpointConnectionProvisioningState
- type PrivateEndpointConnectionsClient
- func (client *PrivateEndpointConnectionsClient) BeginCreate(ctx context.Context, resourceGroupName string, policyName string, ...) (*armruntime.Poller[PrivateEndpointConnectionsClientCreateResponse], error)
- func (client *PrivateEndpointConnectionsClient) BeginDelete(ctx context.Context, resourceGroupName string, policyName string, ...) (*armruntime.Poller[PrivateEndpointConnectionsClientDeleteResponse], error)
- func (client *PrivateEndpointConnectionsClient) Get(ctx context.Context, resourceGroupName string, policyName string, ...) (PrivateEndpointConnectionsClientGetResponse, error)
- func (client *PrivateEndpointConnectionsClient) NewListByPolicyNamePager(resourceGroupName string, policyName string, ...) *runtime.Pager[PrivateEndpointConnectionsClientListByPolicyNameResponse]
- type PrivateEndpointConnectionsClientBeginCreateOptions
- type PrivateEndpointConnectionsClientBeginDeleteOptions
- type PrivateEndpointConnectionsClientCreateResponse
- type PrivateEndpointConnectionsClientDeleteResponse
- type PrivateEndpointConnectionsClientGetOptions
- type PrivateEndpointConnectionsClientGetResponse
- type PrivateEndpointConnectionsClientListByPolicyNameOptions
- type PrivateEndpointConnectionsClientListByPolicyNameResponse
- type PrivateEndpointServiceConnectionStatus
- type PrivateLinkForAzureAdClient
- func (client *PrivateLinkForAzureAdClient) BeginCreate(ctx context.Context, resourceGroupName string, policyName string, ...) (*armruntime.Poller[PrivateLinkForAzureAdClientCreateResponse], error)
- func (client *PrivateLinkForAzureAdClient) Delete(ctx context.Context, resourceGroupName string, policyName string, ...) (PrivateLinkForAzureAdClientDeleteResponse, error)
- func (client *PrivateLinkForAzureAdClient) Get(ctx context.Context, resourceGroupName string, policyName string, ...) (PrivateLinkForAzureAdClientGetResponse, error)
- func (client *PrivateLinkForAzureAdClient) NewListBySubscriptionPager(options *PrivateLinkForAzureAdClientListBySubscriptionOptions) *runtime.Pager[PrivateLinkForAzureAdClientListBySubscriptionResponse]
- func (client *PrivateLinkForAzureAdClient) NewListPager(resourceGroupName string, options *PrivateLinkForAzureAdClientListOptions) *runtime.Pager[PrivateLinkForAzureAdClientListResponse]
- func (client *PrivateLinkForAzureAdClient) Update(ctx context.Context, resourceGroupName string, policyName string, ...) (PrivateLinkForAzureAdClientUpdateResponse, error)
- type PrivateLinkForAzureAdClientBeginCreateOptions
- type PrivateLinkForAzureAdClientCreateResponse
- type PrivateLinkForAzureAdClientDeleteOptions
- type PrivateLinkForAzureAdClientDeleteResponse
- type PrivateLinkForAzureAdClientGetOptions
- type PrivateLinkForAzureAdClientGetResponse
- type PrivateLinkForAzureAdClientListBySubscriptionOptions
- type PrivateLinkForAzureAdClientListBySubscriptionResponse
- type PrivateLinkForAzureAdClientListOptions
- type PrivateLinkForAzureAdClientListResponse
- type PrivateLinkForAzureAdClientUpdateOptions
- type PrivateLinkForAzureAdClientUpdateResponse
- type PrivateLinkPolicy
- type PrivateLinkPolicyListResult
- type PrivateLinkPolicyUpdateParameter
- type PrivateLinkResource
- type PrivateLinkResourceListResult
- type PrivateLinkResourceProperties
- type PrivateLinkResourcesClient
- func (client *PrivateLinkResourcesClient) Get(ctx context.Context, resourceGroupName string, policyName string, ...) (PrivateLinkResourcesClientGetResponse, error)
- func (client *PrivateLinkResourcesClient) NewListByPrivateLinkPolicyPager(resourceGroupName string, policyName string, ...) *runtime.Pager[PrivateLinkResourcesClientListByPrivateLinkPolicyResponse]
- type PrivateLinkResourcesClientGetOptions
- type PrivateLinkResourcesClientGetResponse
- type PrivateLinkResourcesClientListByPrivateLinkPolicyOptions
- type PrivateLinkResourcesClientListByPrivateLinkPolicyResponse
- type PrivateLinkServiceConnectionState
- type ProxyResource
- type Resource
- type TagsResource
Examples ¶
- PrivateEndpointConnectionsClient.BeginCreate
- PrivateEndpointConnectionsClient.BeginDelete
- PrivateEndpointConnectionsClient.Get
- PrivateEndpointConnectionsClient.NewListByPolicyNamePager
- PrivateLinkForAzureAdClient.BeginCreate
- PrivateLinkForAzureAdClient.Delete
- PrivateLinkForAzureAdClient.Get
- PrivateLinkForAzureAdClient.NewListBySubscriptionPager
- PrivateLinkForAzureAdClient.NewListPager
- PrivateLinkForAzureAdClient.Update
- PrivateLinkResourcesClient.Get
- PrivateLinkResourcesClient.NewListByPrivateLinkPolicyPager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ARMProxyResource ¶ added in v0.3.0
type ARMProxyResource struct { // READ-ONLY; The unique resource identifier of the Azure AD PrivateLink Policy. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the Azure AD PrivateLink Policy. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The type of Azure resource. Type *string `json:"type,omitempty" azure:"ro"` }
ARMProxyResource - The resource model definition for a ARM proxy resource. It will have everything other than required location and tags
type AzureResourceBase ¶ added in v0.3.0
type AzureResourceBase struct { // Name of this resource. Name *string `json:"name,omitempty"` // READ-ONLY; String Id used to locate any resource on Azure. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Type of this resource. Type *string `json:"type,omitempty" azure:"ro"` }
AzureResourceBase - Common properties for all Azure resources.
type ErrorDefinition ¶
type ErrorDefinition struct { // READ-ONLY; Service specific error code which serves as the substatus for the HTTP error code. Code *string `json:"code,omitempty" azure:"ro"` // READ-ONLY; Internal error details. Details []*ErrorDefinition `json:"details,omitempty" azure:"ro"` // READ-ONLY; Description of the error. Message *string `json:"message,omitempty" azure:"ro"` }
ErrorDefinition - Error definition.
func (ErrorDefinition) MarshalJSON ¶
func (e ErrorDefinition) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ErrorDefinition.
type ErrorResponse ¶
type ErrorResponse struct { // The error details. Error *ErrorDefinition `json:"error,omitempty"` }
ErrorResponse - Error response.
type PrivateEndpoint ¶ added in v0.3.0
type PrivateEndpoint struct { // Full identifier of the private endpoint resource. ID *string `json:"id,omitempty"` }
PrivateEndpoint - Private endpoint object properties.
type PrivateEndpointConnection ¶ added in v0.3.0
type PrivateEndpointConnection struct { // Resource properties. Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"` // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
PrivateEndpointConnection - Private endpoint connection resource.
type PrivateEndpointConnectionListResult ¶ added in v0.3.0
type PrivateEndpointConnectionListResult struct { // URL to next page of results NextLink *string `json:"nextLink,omitempty"` // Array of private link resources Value []*PrivateEndpointConnection `json:"value,omitempty"` }
PrivateEndpointConnectionListResult - A list of private link resources
func (PrivateEndpointConnectionListResult) MarshalJSON ¶ added in v0.3.0
func (p PrivateEndpointConnectionListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnectionListResult.
type PrivateEndpointConnectionProperties ¶ added in v0.3.0
type PrivateEndpointConnectionProperties struct { // Properties of the private endpoint object. PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` // Updated tag information to set into the PrivateLinkConnection instance. PrivateLinkConnectionTags *TagsResource `json:"privateLinkConnectionTags,omitempty"` // Approval state of the private link connection. PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` // READ-ONLY; Provisioning state of the private endpoint connection. ProvisioningState *PrivateEndpointConnectionProvisioningState `json:"provisioningState,omitempty" azure:"ro"` }
PrivateEndpointConnectionProperties - Properties of the private endpoint connection resource.
type PrivateEndpointConnectionProvisioningState ¶ added in v0.3.0
type PrivateEndpointConnectionProvisioningState string
PrivateEndpointConnectionProvisioningState - The current provisioning state.
const ( PrivateEndpointConnectionProvisioningStateFailed PrivateEndpointConnectionProvisioningState = "Failed" PrivateEndpointConnectionProvisioningStateProvisioning PrivateEndpointConnectionProvisioningState = "Provisioning" PrivateEndpointConnectionProvisioningStateSucceeded PrivateEndpointConnectionProvisioningState = "Succeeded" )
func PossiblePrivateEndpointConnectionProvisioningStateValues ¶ added in v0.3.0
func PossiblePrivateEndpointConnectionProvisioningStateValues() []PrivateEndpointConnectionProvisioningState
PossiblePrivateEndpointConnectionProvisioningStateValues returns the possible values for the PrivateEndpointConnectionProvisioningState const type.
type PrivateEndpointConnectionsClient ¶ added in v0.3.0
type PrivateEndpointConnectionsClient struct {
// contains filtered or unexported fields
}
PrivateEndpointConnectionsClient contains the methods for the PrivateEndpointConnections group. Don't use this type directly, use NewPrivateEndpointConnectionsClient() instead.
func NewPrivateEndpointConnectionsClient ¶ added in v0.3.0
func NewPrivateEndpointConnectionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateEndpointConnectionsClient, error)
NewPrivateEndpointConnectionsClient creates a new instance of PrivateEndpointConnectionsClient with the specified values. subscriptionID - Azure subscription ID. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*PrivateEndpointConnectionsClient) BeginCreate ¶ added in v0.3.0
func (client *PrivateEndpointConnectionsClient) BeginCreate(ctx context.Context, resourceGroupName string, policyName string, privateEndpointConnectionName string, parameters PrivateEndpointConnection, options *PrivateEndpointConnectionsClientBeginCreateOptions) (*armruntime.Poller[PrivateEndpointConnectionsClientCreateResponse], error)
BeginCreate - Creates specified private endpoint connection associated with the given policy. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - Name of an Azure resource group. policyName - The name of the private link policy in Azure AD. privateEndpointConnectionName - The PrivateEndpointConnection name. parameters - The intended state of private endpoint connection. options - PrivateEndpointConnectionsClientBeginCreateOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginCreate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/stable/2020-03-01/examples/AzureADPrivateEndpointConnectionsCreate.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/aad/armaad" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armaad.NewPrivateEndpointConnectionsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } poller, err := client.BeginCreate(ctx, "<resource-group-name>", "<policy-name>", "<private-endpoint-connection-name>", armaad.PrivateEndpointConnection{ Properties: &armaad.PrivateEndpointConnectionProperties{ PrivateEndpoint: &armaad.PrivateEndpoint{ ID: to.Ptr("<id>"), }, PrivateLinkServiceConnectionState: &armaad.PrivateLinkServiceConnectionState{ Description: to.Ptr("<description>"), ActionsRequired: to.Ptr("<actions-required>"), Status: to.Ptr(armaad.PrivateEndpointServiceConnectionStatusApproved), }, }, }, &armaad.PrivateEndpointConnectionsClientBeginCreateOptions{ResumeToken: ""}) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatalf("failed to pull the result: %v", err) return } }
Output:
func (*PrivateEndpointConnectionsClient) BeginDelete ¶ added in v0.3.0
func (client *PrivateEndpointConnectionsClient) BeginDelete(ctx context.Context, resourceGroupName string, policyName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsClientBeginDeleteOptions) (*armruntime.Poller[PrivateEndpointConnectionsClientDeleteResponse], error)
BeginDelete - Deletes the specified private endpoint connection associated with the given policy. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - Name of an Azure resource group. policyName - The name of the private link policy in Azure AD. privateEndpointConnectionName - The PrivateEndpointConnection name. options - PrivateEndpointConnectionsClientBeginDeleteOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/stable/2020-03-01/examples/AzureADPrivateEndpointConnectionsDelete.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/aad/armaad" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armaad.NewPrivateEndpointConnectionsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } poller, err := client.BeginDelete(ctx, "<resource-group-name>", "<policy-name>", "<private-endpoint-connection-name>", &armaad.PrivateEndpointConnectionsClientBeginDeleteOptions{ResumeToken: ""}) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } _, err = poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatalf("failed to pull the result: %v", err) return } }
Output:
func (*PrivateEndpointConnectionsClient) Get ¶ added in v0.3.0
func (client *PrivateEndpointConnectionsClient) Get(ctx context.Context, resourceGroupName string, policyName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsClientGetOptions) (PrivateEndpointConnectionsClientGetResponse, error)
Get - Gets the specified private endpoint connection associated with the given policy. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - Name of an Azure resource group. policyName - The name of the private link policy in Azure AD. privateEndpointConnectionName - The PrivateEndpointConnection name. options - PrivateEndpointConnectionsClientGetOptions contains the optional parameters for the PrivateEndpointConnectionsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/stable/2020-03-01/examples/AzureADPrivateEndpointConnectionsGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/aad/armaad" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armaad.NewPrivateEndpointConnectionsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<resource-group-name>", "<policy-name>", "<private-endpoint-connection-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*PrivateEndpointConnectionsClient) NewListByPolicyNamePager ¶ added in v0.4.0
func (client *PrivateEndpointConnectionsClient) NewListByPolicyNamePager(resourceGroupName string, policyName string, options *PrivateEndpointConnectionsClientListByPolicyNameOptions) *runtime.Pager[PrivateEndpointConnectionsClientListByPolicyNameResponse]
NewListByPolicyNamePager - Lists all Private Endpoint Connections for the given policy. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - Name of an Azure resource group. policyName - The name of the private link policy in Azure AD. options - PrivateEndpointConnectionsClientListByPolicyNameOptions contains the optional parameters for the PrivateEndpointConnectionsClient.ListByPolicyName method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/stable/2020-03-01/examples/AzureADPrivateEndpointConnectionsList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/aad/armaad" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armaad.NewPrivateEndpointConnectionsClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.NewListByPolicyNamePager("<resource-group-name>", "<policy-name>", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type PrivateEndpointConnectionsClientBeginCreateOptions ¶ added in v0.3.0
type PrivateEndpointConnectionsClientBeginCreateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PrivateEndpointConnectionsClientBeginCreateOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginCreate method.
type PrivateEndpointConnectionsClientBeginDeleteOptions ¶ added in v0.3.0
type PrivateEndpointConnectionsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PrivateEndpointConnectionsClientBeginDeleteOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginDelete method.
type PrivateEndpointConnectionsClientCreateResponse ¶ added in v0.3.0
type PrivateEndpointConnectionsClientCreateResponse struct {
PrivateEndpointConnection
}
PrivateEndpointConnectionsClientCreateResponse contains the response from method PrivateEndpointConnectionsClient.Create.
type PrivateEndpointConnectionsClientDeleteResponse ¶ added in v0.3.0
type PrivateEndpointConnectionsClientDeleteResponse struct { }
PrivateEndpointConnectionsClientDeleteResponse contains the response from method PrivateEndpointConnectionsClient.Delete.
type PrivateEndpointConnectionsClientGetOptions ¶ added in v0.3.0
type PrivateEndpointConnectionsClientGetOptions struct { }
PrivateEndpointConnectionsClientGetOptions contains the optional parameters for the PrivateEndpointConnectionsClient.Get method.
type PrivateEndpointConnectionsClientGetResponse ¶ added in v0.3.0
type PrivateEndpointConnectionsClientGetResponse struct {
PrivateEndpointConnection
}
PrivateEndpointConnectionsClientGetResponse contains the response from method PrivateEndpointConnectionsClient.Get.
type PrivateEndpointConnectionsClientListByPolicyNameOptions ¶ added in v0.3.0
type PrivateEndpointConnectionsClientListByPolicyNameOptions struct { }
PrivateEndpointConnectionsClientListByPolicyNameOptions contains the optional parameters for the PrivateEndpointConnectionsClient.ListByPolicyName method.
type PrivateEndpointConnectionsClientListByPolicyNameResponse ¶ added in v0.3.0
type PrivateEndpointConnectionsClientListByPolicyNameResponse struct {
PrivateEndpointConnectionListResult
}
PrivateEndpointConnectionsClientListByPolicyNameResponse contains the response from method PrivateEndpointConnectionsClient.ListByPolicyName.
type PrivateEndpointServiceConnectionStatus ¶ added in v0.3.0
type PrivateEndpointServiceConnectionStatus string
PrivateEndpointServiceConnectionStatus - The private endpoint connection status.
const ( PrivateEndpointServiceConnectionStatusApproved PrivateEndpointServiceConnectionStatus = "Approved" PrivateEndpointServiceConnectionStatusDisconnected PrivateEndpointServiceConnectionStatus = "Disconnected" PrivateEndpointServiceConnectionStatusPending PrivateEndpointServiceConnectionStatus = "Pending" PrivateEndpointServiceConnectionStatusRejected PrivateEndpointServiceConnectionStatus = "Rejected" )
func PossiblePrivateEndpointServiceConnectionStatusValues ¶ added in v0.3.0
func PossiblePrivateEndpointServiceConnectionStatusValues() []PrivateEndpointServiceConnectionStatus
PossiblePrivateEndpointServiceConnectionStatusValues returns the possible values for the PrivateEndpointServiceConnectionStatus const type.
type PrivateLinkForAzureAdClient ¶ added in v0.3.0
type PrivateLinkForAzureAdClient struct {
// contains filtered or unexported fields
}
PrivateLinkForAzureAdClient contains the methods for the PrivateLinkForAzureAd group. Don't use this type directly, use NewPrivateLinkForAzureAdClient() instead.
func NewPrivateLinkForAzureAdClient ¶ added in v0.3.0
func NewPrivateLinkForAzureAdClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateLinkForAzureAdClient, error)
NewPrivateLinkForAzureAdClient creates a new instance of PrivateLinkForAzureAdClient with the specified values. subscriptionID - Azure subscription ID. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*PrivateLinkForAzureAdClient) BeginCreate ¶ added in v0.3.0
func (client *PrivateLinkForAzureAdClient) BeginCreate(ctx context.Context, resourceGroupName string, policyName string, privateLinkPolicy PrivateLinkPolicy, options *PrivateLinkForAzureAdClientBeginCreateOptions) (*armruntime.Poller[PrivateLinkForAzureAdClientCreateResponse], error)
BeginCreate - Creates a private link policy. If the operation fails it returns an *azcore.ResponseError type. 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. options - PrivateLinkForAzureAdClientBeginCreateOptions contains the optional parameters for the PrivateLinkForAzureAdClient.BeginCreate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/stable/2020-03-01/examples/AzureADPrivateLinkPolicyCreate.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/aad/armaad" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armaad.NewPrivateLinkForAzureAdClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } poller, err := client.BeginCreate(ctx, "<resource-group-name>", "<policy-name>", armaad.PrivateLinkPolicy{ Name: to.Ptr("<name>"), AllTenants: to.Ptr(false), OwnerTenantID: to.Ptr("<owner-tenant-id>"), ResourceGroup: to.Ptr("<resource-group>"), ResourceName: to.Ptr("<resource-name>"), SubscriptionID: to.Ptr("<subscription-id>"), Tenants: []*string{ to.Ptr("3616657d-1c80-41ae-9d83-2a2776f2c9be"), to.Ptr("727b6ef1-18ab-4627-ac95-3f9cd945ed87")}, }, &armaad.PrivateLinkForAzureAdClientBeginCreateOptions{ResumeToken: ""}) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } res, err := poller.PollUntilDone(ctx, 30*time.Second) if err != nil { log.Fatalf("failed to pull the result: %v", err) return } // TODO: use response item _ = res }
Output:
func (*PrivateLinkForAzureAdClient) Delete ¶ added in v0.3.0
func (client *PrivateLinkForAzureAdClient) Delete(ctx context.Context, resourceGroupName string, policyName string, options *PrivateLinkForAzureAdClientDeleteOptions) (PrivateLinkForAzureAdClientDeleteResponse, error)
Delete - Deletes a private link policy. When operation completes, status code 200 returned without content. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - Name of an Azure resource group. policyName - The name of the private link policy in Azure AD. options - PrivateLinkForAzureAdClientDeleteOptions contains the optional parameters for the PrivateLinkForAzureAdClient.Delete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/stable/2020-03-01/examples/AzureADPrivateLinkPolicyDelete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/aad/armaad" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armaad.NewPrivateLinkForAzureAdClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } _, err = client.Delete(ctx, "<resource-group-name>", "<policy-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } }
Output:
func (*PrivateLinkForAzureAdClient) Get ¶ added in v0.3.0
func (client *PrivateLinkForAzureAdClient) Get(ctx context.Context, resourceGroupName string, policyName string, options *PrivateLinkForAzureAdClientGetOptions) (PrivateLinkForAzureAdClientGetResponse, error)
Get - Gets a private link policy with a given name. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - Name of an Azure resource group. policyName - The name of the private link policy in Azure AD. options - PrivateLinkForAzureAdClientGetOptions contains the optional parameters for the PrivateLinkForAzureAdClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/stable/2020-03-01/examples/AzureADPrivateLinkPolicyGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/aad/armaad" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armaad.NewPrivateLinkForAzureAdClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<resource-group-name>", "<policy-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*PrivateLinkForAzureAdClient) NewListBySubscriptionPager ¶ added in v0.4.0
func (client *PrivateLinkForAzureAdClient) NewListBySubscriptionPager(options *PrivateLinkForAzureAdClientListBySubscriptionOptions) *runtime.Pager[PrivateLinkForAzureAdClientListBySubscriptionResponse]
NewListBySubscriptionPager - Lists all Private Link Policies For AzureAD in the given subscription. If the operation fails it returns an *azcore.ResponseError type. options - PrivateLinkForAzureAdClientListBySubscriptionOptions contains the optional parameters for the PrivateLinkForAzureAdClient.ListBySubscription method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/stable/2020-03-01/examples/AzureADPrivateLinkPolicyListBySubscription.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/aad/armaad" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armaad.NewPrivateLinkForAzureAdClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.NewListBySubscriptionPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*PrivateLinkForAzureAdClient) NewListPager ¶ added in v0.4.0
func (client *PrivateLinkForAzureAdClient) NewListPager(resourceGroupName string, options *PrivateLinkForAzureAdClientListOptions) *runtime.Pager[PrivateLinkForAzureAdClientListResponse]
NewListPager - Operation to return the list of Private Link Policies For AzureAD scoped to the resourceGroup. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - Name of an Azure resource group. options - PrivateLinkForAzureAdClientListOptions contains the optional parameters for the PrivateLinkForAzureAdClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/stable/2020-03-01/examples/AzureADPrivateLinkPolicyList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/aad/armaad" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armaad.NewPrivateLinkForAzureAdClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.NewListPager("<resource-group-name>", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*PrivateLinkForAzureAdClient) Update ¶ added in v0.3.0
func (client *PrivateLinkForAzureAdClient) Update(ctx context.Context, resourceGroupName string, policyName string, options *PrivateLinkForAzureAdClientUpdateOptions) (PrivateLinkForAzureAdClientUpdateResponse, error)
Update - Updates private link policy tags with specified values. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - Name of an Azure resource group. policyName - The name of the private link policy in Azure AD. options - PrivateLinkForAzureAdClientUpdateOptions contains the optional parameters for the PrivateLinkForAzureAdClient.Update method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/stable/2020-03-01/examples/AzureADPrivateLinkPolicyUpdate.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/aad/armaad" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armaad.NewPrivateLinkForAzureAdClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Update(ctx, "<resource-group-name>", "<policy-name>", &armaad.PrivateLinkForAzureAdClientUpdateOptions{PrivateLinkPolicy: &armaad.PrivateLinkPolicyUpdateParameter{ Tags: map[string]*string{}, }, }) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
type PrivateLinkForAzureAdClientBeginCreateOptions ¶ added in v0.3.0
type PrivateLinkForAzureAdClientBeginCreateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PrivateLinkForAzureAdClientBeginCreateOptions contains the optional parameters for the PrivateLinkForAzureAdClient.BeginCreate method.
type PrivateLinkForAzureAdClientCreateResponse ¶ added in v0.3.0
type PrivateLinkForAzureAdClientCreateResponse struct {
PrivateLinkPolicy
}
PrivateLinkForAzureAdClientCreateResponse contains the response from method PrivateLinkForAzureAdClient.Create.
type PrivateLinkForAzureAdClientDeleteOptions ¶ added in v0.3.0
type PrivateLinkForAzureAdClientDeleteOptions struct { }
PrivateLinkForAzureAdClientDeleteOptions contains the optional parameters for the PrivateLinkForAzureAdClient.Delete method.
type PrivateLinkForAzureAdClientDeleteResponse ¶ added in v0.3.0
type PrivateLinkForAzureAdClientDeleteResponse struct { }
PrivateLinkForAzureAdClientDeleteResponse contains the response from method PrivateLinkForAzureAdClient.Delete.
type PrivateLinkForAzureAdClientGetOptions ¶ added in v0.3.0
type PrivateLinkForAzureAdClientGetOptions struct { }
PrivateLinkForAzureAdClientGetOptions contains the optional parameters for the PrivateLinkForAzureAdClient.Get method.
type PrivateLinkForAzureAdClientGetResponse ¶ added in v0.3.0
type PrivateLinkForAzureAdClientGetResponse struct {
PrivateLinkPolicy
}
PrivateLinkForAzureAdClientGetResponse contains the response from method PrivateLinkForAzureAdClient.Get.
type PrivateLinkForAzureAdClientListBySubscriptionOptions ¶ added in v0.3.0
type PrivateLinkForAzureAdClientListBySubscriptionOptions struct { }
PrivateLinkForAzureAdClientListBySubscriptionOptions contains the optional parameters for the PrivateLinkForAzureAdClient.ListBySubscription method.
type PrivateLinkForAzureAdClientListBySubscriptionResponse ¶ added in v0.3.0
type PrivateLinkForAzureAdClientListBySubscriptionResponse struct {
PrivateLinkPolicyListResult
}
PrivateLinkForAzureAdClientListBySubscriptionResponse contains the response from method PrivateLinkForAzureAdClient.ListBySubscription.
type PrivateLinkForAzureAdClientListOptions ¶ added in v0.3.0
type PrivateLinkForAzureAdClientListOptions struct { }
PrivateLinkForAzureAdClientListOptions contains the optional parameters for the PrivateLinkForAzureAdClient.List method.
type PrivateLinkForAzureAdClientListResponse ¶ added in v0.3.0
type PrivateLinkForAzureAdClientListResponse struct {
PrivateLinkPolicyListResult
}
PrivateLinkForAzureAdClientListResponse contains the response from method PrivateLinkForAzureAdClient.List.
type PrivateLinkForAzureAdClientUpdateOptions ¶ added in v0.3.0
type PrivateLinkForAzureAdClientUpdateOptions struct { // Private Link Policy resource with the tags to be updated. PrivateLinkPolicy *PrivateLinkPolicyUpdateParameter }
PrivateLinkForAzureAdClientUpdateOptions contains the optional parameters for the PrivateLinkForAzureAdClient.Update method.
type PrivateLinkForAzureAdClientUpdateResponse ¶ added in v0.3.0
type PrivateLinkForAzureAdClientUpdateResponse struct {
PrivateLinkPolicy
}
PrivateLinkForAzureAdClientUpdateResponse contains the response from method PrivateLinkForAzureAdClient.Update.
type PrivateLinkPolicy ¶ added in v0.3.0
type PrivateLinkPolicy struct { // Flag indicating whether all tenants are allowed AllTenants *bool `json:"allTenants,omitempty"` // Name of this resource. Name *string `json:"name,omitempty"` // Guid of the owner tenant OwnerTenantID *string `json:"ownerTenantId,omitempty"` // Name of the resource group ResourceGroup *string `json:"resourceGroup,omitempty"` // Name of the private link policy resource ResourceName *string `json:"resourceName,omitempty"` // Subscription Identifier SubscriptionID *string `json:"subscriptionId,omitempty"` // Resource tags. Tags map[string]*string `json:"tags,omitempty"` // The list of tenantIds. Tenants []*string `json:"tenants,omitempty"` // READ-ONLY; String Id used to locate any resource on Azure. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Type of this resource. Type *string `json:"type,omitempty" azure:"ro"` }
PrivateLinkPolicy - PrivateLink Policy configuration object.
func (PrivateLinkPolicy) MarshalJSON ¶ added in v0.3.0
func (p PrivateLinkPolicy) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateLinkPolicy.
type PrivateLinkPolicyListResult ¶ added in v0.3.0
type PrivateLinkPolicyListResult struct { // The link used to get the next page of operations. NextLink *string `json:"nextLink,omitempty"` // Array of private link policies Value []*PrivateLinkPolicy `json:"value,omitempty"` }
PrivateLinkPolicyListResult - A list of private link policies
func (PrivateLinkPolicyListResult) MarshalJSON ¶ added in v0.3.0
func (p PrivateLinkPolicyListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateLinkPolicyListResult.
type PrivateLinkPolicyUpdateParameter ¶ added in v0.3.0
type PrivateLinkPolicyUpdateParameter struct { // Resource tags to be updated. Tags map[string]*string `json:"tags,omitempty"` }
PrivateLinkPolicyUpdateParameter - private Link policy parameters to be updated.
func (PrivateLinkPolicyUpdateParameter) MarshalJSON ¶ added in v0.3.0
func (p PrivateLinkPolicyUpdateParameter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateLinkPolicyUpdateParameter.
type PrivateLinkResource ¶ added in v0.3.0
type PrivateLinkResource struct { // Resource properties. Properties *PrivateLinkResourceProperties `json:"properties,omitempty"` // READ-ONLY; The unique resource identifier of the Azure AD PrivateLink Policy. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the Azure AD PrivateLink Policy. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The type of Azure resource. Type *string `json:"type,omitempty" azure:"ro"` }
PrivateLinkResource - A private link resource
type PrivateLinkResourceListResult ¶ added in v0.3.0
type PrivateLinkResourceListResult struct { // The link used to get the next page of operations. NextLink *string `json:"nextLink,omitempty"` // Array of private link resources Value []*PrivateLinkResource `json:"value,omitempty"` }
PrivateLinkResourceListResult - A list of private link resources
func (PrivateLinkResourceListResult) MarshalJSON ¶ added in v0.3.0
func (p PrivateLinkResourceListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourceListResult.
type PrivateLinkResourceProperties ¶ added in v0.3.0
type PrivateLinkResourceProperties struct { // READ-ONLY; The private link resource group id. GroupID *string `json:"groupId,omitempty" azure:"ro"` // READ-ONLY; The private link resource required member names. RequiredMembers []*string `json:"requiredMembers,omitempty" azure:"ro"` }
PrivateLinkResourceProperties - Properties of a private link resource.
func (PrivateLinkResourceProperties) MarshalJSON ¶ added in v0.3.0
func (p PrivateLinkResourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourceProperties.
type PrivateLinkResourcesClient ¶ added in v0.3.0
type PrivateLinkResourcesClient struct {
// contains filtered or unexported fields
}
PrivateLinkResourcesClient contains the methods for the PrivateLinkResources group. Don't use this type directly, use NewPrivateLinkResourcesClient() instead.
func NewPrivateLinkResourcesClient ¶ added in v0.3.0
func NewPrivateLinkResourcesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateLinkResourcesClient, error)
NewPrivateLinkResourcesClient creates a new instance of PrivateLinkResourcesClient with the specified values. subscriptionID - Azure subscription ID. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*PrivateLinkResourcesClient) Get ¶ added in v0.3.0
func (client *PrivateLinkResourcesClient) Get(ctx context.Context, resourceGroupName string, policyName string, groupName string, options *PrivateLinkResourcesClientGetOptions) (PrivateLinkResourcesClientGetResponse, error)
Get - Gets the private link resources that need to be created for a policy of AzureAD. If the operation fails it returns an *azcore.ResponseError type. 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. options - PrivateLinkResourcesClientGetOptions contains the optional parameters for the PrivateLinkResourcesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/stable/2020-03-01/examples/AzureADPrivateLinkResourceGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/aad/armaad" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armaad.NewPrivateLinkResourcesClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } res, err := client.Get(ctx, "<resource-group-name>", "<policy-name>", "<group-name>", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) return } // TODO: use response item _ = res }
Output:
func (*PrivateLinkResourcesClient) NewListByPrivateLinkPolicyPager ¶ added in v0.4.0
func (client *PrivateLinkResourcesClient) NewListByPrivateLinkPolicyPager(resourceGroupName string, policyName string, options *PrivateLinkResourcesClientListByPrivateLinkPolicyOptions) *runtime.Pager[PrivateLinkResourcesClientListByPrivateLinkPolicyResponse]
NewListByPrivateLinkPolicyPager - Gets the private link resources that need to be created for a policy of AzureAD. If the operation fails it returns an *azcore.ResponseError type. resourceGroupName - Name of an Azure resource group. policyName - The name of the private link policy in Azure AD. options - PrivateLinkResourcesClientListByPrivateLinkPolicyOptions contains the optional parameters for the PrivateLinkResourcesClient.ListByPrivateLinkPolicy method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azureactivedirectory/resource-manager/Microsoft.Aadiam/stable/2020-03-01/examples/AzureADPrivateLinkResourceListGet.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/aad/armaad" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) return } ctx := context.Background() client, err := armaad.NewPrivateLinkResourcesClient("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) return } pager := client.NewListByPrivateLinkPolicyPager("<resource-group-name>", "<policy-name>", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) return } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type PrivateLinkResourcesClientGetOptions ¶ added in v0.3.0
type PrivateLinkResourcesClientGetOptions struct { }
PrivateLinkResourcesClientGetOptions contains the optional parameters for the PrivateLinkResourcesClient.Get method.
type PrivateLinkResourcesClientGetResponse ¶ added in v0.3.0
type PrivateLinkResourcesClientGetResponse struct {
PrivateLinkResource
}
PrivateLinkResourcesClientGetResponse contains the response from method PrivateLinkResourcesClient.Get.
type PrivateLinkResourcesClientListByPrivateLinkPolicyOptions ¶ added in v0.3.0
type PrivateLinkResourcesClientListByPrivateLinkPolicyOptions struct { }
PrivateLinkResourcesClientListByPrivateLinkPolicyOptions contains the optional parameters for the PrivateLinkResourcesClient.ListByPrivateLinkPolicy method.
type PrivateLinkResourcesClientListByPrivateLinkPolicyResponse ¶ added in v0.3.0
type PrivateLinkResourcesClientListByPrivateLinkPolicyResponse struct {
PrivateLinkResourceListResult
}
PrivateLinkResourcesClientListByPrivateLinkPolicyResponse contains the response from method PrivateLinkResourcesClient.ListByPrivateLinkPolicy.
type PrivateLinkServiceConnectionState ¶ added in v0.3.0
type PrivateLinkServiceConnectionState struct { // A message indicating if changes on the service provider require any updates on the consumer. ActionsRequired *string `json:"actionsRequired,omitempty"` // The reason for approval or rejection. Description *string `json:"description,omitempty"` // Indicates whether the connection has been approved, rejected or removed by the given policy owner. Status *PrivateEndpointServiceConnectionStatus `json:"status,omitempty"` }
PrivateLinkServiceConnectionState - An object that represents the approval state of the private link connection.
type ProxyResource ¶ added in v0.3.0
type ProxyResource struct { // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
ProxyResource - The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location
type Resource ¶ added in v0.3.0
type Resource struct { // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` }
Resource - Common fields that are returned in the response for all Azure Resource Manager resources
type TagsResource ¶ added in v0.3.0
TagsResource - A container holding only the Tags for a resource, allowing the user to update the tags on a PrivateLinkConnection instance.
func (TagsResource) MarshalJSON ¶ added in v0.3.0
func (t TagsResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TagsResource.