Documentation ¶
Index ¶
- type AADProfileProperties
- type ActionType
- type CreatedByType
- type EndpointAccessResource
- type EndpointProperties
- type EndpointResource
- type EndpointsClient
- func (client *EndpointsClient) CreateOrUpdate(ctx context.Context, resourceURI string, endpointName string, ...) (EndpointsClientCreateOrUpdateResponse, error)
- func (client *EndpointsClient) Delete(ctx context.Context, resourceURI string, endpointName string, ...) (EndpointsClientDeleteResponse, error)
- func (client *EndpointsClient) Get(ctx context.Context, resourceURI string, endpointName string, ...) (EndpointsClientGetResponse, error)
- func (client *EndpointsClient) ListCredentials(ctx context.Context, resourceURI string, endpointName string, ...) (EndpointsClientListCredentialsResponse, error)
- func (client *EndpointsClient) ListManagedProxyDetails(ctx context.Context, resourceURI string, endpointName string, ...) (EndpointsClientListManagedProxyDetailsResponse, error)
- func (client *EndpointsClient) NewListPager(resourceURI string, options *EndpointsClientListOptions) *runtime.Pager[EndpointsClientListResponse]
- func (client *EndpointsClient) Update(ctx context.Context, resourceURI string, endpointName string, ...) (EndpointsClientUpdateResponse, error)
- type EndpointsClientCreateOrUpdateOptions
- type EndpointsClientCreateOrUpdateResponse
- type EndpointsClientDeleteOptions
- type EndpointsClientDeleteResponse
- type EndpointsClientGetOptions
- type EndpointsClientGetResponse
- type EndpointsClientListCredentialsOptions
- type EndpointsClientListCredentialsResponse
- type EndpointsClientListManagedProxyDetailsOptions
- type EndpointsClientListManagedProxyDetailsResponse
- type EndpointsClientListOptions
- type EndpointsClientListResponse
- type EndpointsClientUpdateOptions
- type EndpointsClientUpdateResponse
- type EndpointsList
- type ErrorAdditionalInfo
- type ErrorDetail
- type ErrorResponse
- type IngressGatewayResource
- type IngressProfileProperties
- type ManagedProxyRequest
- type ManagedProxyResource
- type Operation
- type OperationDisplay
- type OperationListResult
- type OperationsClient
- type OperationsClientListOptions
- type OperationsClientListResponse
- type Origin
- type ProxyResource
- type RelayNamespaceAccessProperties
- type Resource
- type SystemData
- type Type
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AADProfileProperties ¶ added in v0.5.0
type AADProfileProperties struct { // REQUIRED; The arc ingress gateway server app id. ServerID *string `json:"serverId,omitempty"` // REQUIRED; The target resource home tenant id. TenantID *string `json:"tenantId,omitempty"` }
AADProfileProperties - The AAD Profile
type ActionType ¶
type ActionType string
ActionType - Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
const (
ActionTypeInternal ActionType = "Internal"
)
func PossibleActionTypeValues ¶
func PossibleActionTypeValues() []ActionType
PossibleActionTypeValues returns the possible values for the ActionType const type.
type CreatedByType ¶
type CreatedByType string
CreatedByType - The type of identity that created the resource.
const ( CreatedByTypeApplication CreatedByType = "Application" CreatedByTypeKey CreatedByType = "Key" CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity" CreatedByTypeUser CreatedByType = "User" )
func PossibleCreatedByTypeValues ¶
func PossibleCreatedByTypeValues() []CreatedByType
PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type.
type EndpointAccessResource ¶
type EndpointAccessResource struct { // Azure relay hybrid connection access properties Relay *RelayNamespaceAccessProperties `json:"relay,omitempty"` }
EndpointAccessResource - The endpoint access for the target resource.
type EndpointProperties ¶
type EndpointProperties struct { // REQUIRED; The type of endpoint. Type *Type `json:"type,omitempty"` // The resource Id of the connectivity endpoint (optional). ResourceID *string `json:"resourceId,omitempty"` // READ-ONLY; The resource provisioning state. ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` }
EndpointProperties - Endpoint details
type EndpointResource ¶
type EndpointResource struct { // The endpoint properties. Properties *EndpointProperties `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; System data of endpoint resource SystemData *SystemData `json:"systemData,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"` }
EndpointResource - The endpoint for the target resource.
func (EndpointResource) MarshalJSON ¶
func (e EndpointResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type EndpointResource.
type EndpointsClient ¶
type EndpointsClient struct {
// contains filtered or unexported fields
}
EndpointsClient contains the methods for the Endpoints group. Don't use this type directly, use NewEndpointsClient() instead.
func NewEndpointsClient ¶
func NewEndpointsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*EndpointsClient, error)
NewEndpointsClient creates a new instance of EndpointsClient with the specified values. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*EndpointsClient) CreateOrUpdate ¶
func (client *EndpointsClient) CreateOrUpdate(ctx context.Context, resourceURI string, endpointName string, endpointResource EndpointResource, options *EndpointsClientCreateOrUpdateOptions) (EndpointsClientCreateOrUpdateResponse, error)
CreateOrUpdate - Create or update the endpoint to the target resource. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-05-01-preview resourceURI - The fully qualified Azure Resource manager identifier of the resource to be connected. endpointName - The endpoint name. endpointResource - Endpoint details options - EndpointsClientCreateOrUpdateOptions contains the optional parameters for the EndpointsClient.CreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/hybridconnectivity/resource-manager/Microsoft.HybridConnectivity/preview/2022-05-01-preview/examples/EndpointsPutCustom.json
package main import ( "context" "log" "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/hybridconnectivity/armhybridconnectivity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armhybridconnectivity.NewEndpointsClient(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.CreateOrUpdate(ctx, "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine", "custom", armhybridconnectivity.EndpointResource{ Properties: &armhybridconnectivity.EndpointProperties{ Type: to.Ptr(armhybridconnectivity.TypeCustom), ResourceID: to.Ptr("/subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.Relay/namespaces/custom-relay-namespace"), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*EndpointsClient) Delete ¶
func (client *EndpointsClient) Delete(ctx context.Context, resourceURI string, endpointName string, options *EndpointsClientDeleteOptions) (EndpointsClientDeleteResponse, error)
Delete - Deletes the endpoint access to the target resource. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-05-01-preview resourceURI - The fully qualified Azure Resource manager identifier of the resource to be connected. endpointName - The endpoint name. options - EndpointsClientDeleteOptions contains the optional parameters for the EndpointsClient.Delete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/hybridconnectivity/resource-manager/Microsoft.HybridConnectivity/preview/2022-05-01-preview/examples/EndpointsDeleteDefault.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybridconnectivity/armhybridconnectivity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armhybridconnectivity.NewEndpointsClient(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } _, err = client.Delete(ctx, "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine", "default", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } }
Output:
func (*EndpointsClient) Get ¶
func (client *EndpointsClient) Get(ctx context.Context, resourceURI string, endpointName string, options *EndpointsClientGetOptions) (EndpointsClientGetResponse, error)
Get - Gets the endpoint to the resource. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-05-01-preview resourceURI - The fully qualified Azure Resource manager identifier of the resource to be connected. endpointName - The endpoint name. options - EndpointsClientGetOptions contains the optional parameters for the EndpointsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/hybridconnectivity/resource-manager/Microsoft.HybridConnectivity/preview/2022-05-01-preview/examples/EndpointsGetCustom.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybridconnectivity/armhybridconnectivity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armhybridconnectivity.NewEndpointsClient(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Get(ctx, "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine", "custom", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*EndpointsClient) ListCredentials ¶
func (client *EndpointsClient) ListCredentials(ctx context.Context, resourceURI string, endpointName string, options *EndpointsClientListCredentialsOptions) (EndpointsClientListCredentialsResponse, error)
ListCredentials - Gets the endpoint access credentials to the resource. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-05-01-preview resourceURI - The fully qualified Azure Resource manager identifier of the resource to be connected. endpointName - The endpoint name. options - EndpointsClientListCredentialsOptions contains the optional parameters for the EndpointsClient.ListCredentials method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/hybridconnectivity/resource-manager/Microsoft.HybridConnectivity/preview/2022-05-01-preview/examples/EndpointsPostListCredentials.json
package main import ( "context" "log" "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/hybridconnectivity/armhybridconnectivity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armhybridconnectivity.NewEndpointsClient(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.ListCredentials(ctx, "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine", "default", &armhybridconnectivity.EndpointsClientListCredentialsOptions{Expiresin: to.Ptr[int64](10800)}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*EndpointsClient) ListManagedProxyDetails ¶ added in v0.5.0
func (client *EndpointsClient) ListManagedProxyDetails(ctx context.Context, resourceURI string, endpointName string, managedProxyRequest ManagedProxyRequest, options *EndpointsClientListManagedProxyDetailsOptions) (EndpointsClientListManagedProxyDetailsResponse, error)
ListManagedProxyDetails - Fetches the managed proxy details If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-05-01-preview resourceURI - The fully qualified Azure Resource manager identifier of the resource to be connected. endpointName - The endpoint name. managedProxyRequest - Object of type ManagedProxyRequest options - EndpointsClientListManagedProxyDetailsOptions contains the optional parameters for the EndpointsClient.ListManagedProxyDetails method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/hybridconnectivity/resource-manager/Microsoft.HybridConnectivity/preview/2022-05-01-preview/examples/EndpointsPostListManagedProxyDetails.json
package main import ( "context" "log" "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/hybridconnectivity/armhybridconnectivity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armhybridconnectivity.NewEndpointsClient(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.ListManagedProxyDetails(ctx, "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/arcGroup/providers/Microsoft.Compute/virtualMachines/vm00006", "default", armhybridconnectivity.ManagedProxyRequest{ Hostname: to.Ptr("r.proxy.arc.com"), Service: to.Ptr("127.0.0.1:65035"), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
func (*EndpointsClient) NewListPager ¶ added in v0.4.0
func (client *EndpointsClient) NewListPager(resourceURI string, options *EndpointsClientListOptions) *runtime.Pager[EndpointsClientListResponse]
NewListPager - List of endpoints to the target resource. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-05-01-preview resourceURI - The fully qualified Azure Resource manager identifier of the resource to be connected. options - EndpointsClientListOptions contains the optional parameters for the EndpointsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/hybridconnectivity/resource-manager/Microsoft.HybridConnectivity/preview/2022-05-01-preview/examples/EndpointsList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybridconnectivity/armhybridconnectivity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armhybridconnectivity.NewEndpointsClient(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine", nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
func (*EndpointsClient) Update ¶
func (client *EndpointsClient) Update(ctx context.Context, resourceURI string, endpointName string, endpointResource EndpointResource, options *EndpointsClientUpdateOptions) (EndpointsClientUpdateResponse, error)
Update - Update the endpoint to the target resource. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-05-01-preview resourceURI - The fully qualified Azure Resource manager identifier of the resource to be connected. endpointName - The endpoint name. endpointResource - Endpoint details options - EndpointsClientUpdateOptions contains the optional parameters for the EndpointsClient.Update method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/hybridconnectivity/resource-manager/Microsoft.HybridConnectivity/preview/2022-05-01-preview/examples/EndpointsPatchDefault.json
package main import ( "context" "log" "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/hybridconnectivity/armhybridconnectivity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armhybridconnectivity.NewEndpointsClient(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := client.Update(ctx, "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine", "default", armhybridconnectivity.EndpointResource{ Properties: &armhybridconnectivity.EndpointProperties{ Type: to.Ptr(armhybridconnectivity.TypeDefault), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // TODO: use response item _ = res }
Output:
type EndpointsClientCreateOrUpdateOptions ¶ added in v0.2.0
type EndpointsClientCreateOrUpdateOptions struct { }
EndpointsClientCreateOrUpdateOptions contains the optional parameters for the EndpointsClient.CreateOrUpdate method.
type EndpointsClientCreateOrUpdateResponse ¶ added in v0.2.0
type EndpointsClientCreateOrUpdateResponse struct {
EndpointResource
}
EndpointsClientCreateOrUpdateResponse contains the response from method EndpointsClient.CreateOrUpdate.
type EndpointsClientDeleteOptions ¶ added in v0.2.0
type EndpointsClientDeleteOptions struct { }
EndpointsClientDeleteOptions contains the optional parameters for the EndpointsClient.Delete method.
type EndpointsClientDeleteResponse ¶ added in v0.2.0
type EndpointsClientDeleteResponse struct { }
EndpointsClientDeleteResponse contains the response from method EndpointsClient.Delete.
type EndpointsClientGetOptions ¶ added in v0.2.0
type EndpointsClientGetOptions struct { }
EndpointsClientGetOptions contains the optional parameters for the EndpointsClient.Get method.
type EndpointsClientGetResponse ¶ added in v0.2.0
type EndpointsClientGetResponse struct {
EndpointResource
}
EndpointsClientGetResponse contains the response from method EndpointsClient.Get.
type EndpointsClientListCredentialsOptions ¶ added in v0.2.0
type EndpointsClientListCredentialsOptions struct { // The is how long the endpoint access token is valid (in seconds). Expiresin *int64 }
EndpointsClientListCredentialsOptions contains the optional parameters for the EndpointsClient.ListCredentials method.
type EndpointsClientListCredentialsResponse ¶ added in v0.2.0
type EndpointsClientListCredentialsResponse struct {
EndpointAccessResource
}
EndpointsClientListCredentialsResponse contains the response from method EndpointsClient.ListCredentials.
type EndpointsClientListManagedProxyDetailsOptions ¶ added in v0.5.0
type EndpointsClientListManagedProxyDetailsOptions struct { }
EndpointsClientListManagedProxyDetailsOptions contains the optional parameters for the EndpointsClient.ListManagedProxyDetails method.
type EndpointsClientListManagedProxyDetailsResponse ¶ added in v0.5.0
type EndpointsClientListManagedProxyDetailsResponse struct {
ManagedProxyResource
}
EndpointsClientListManagedProxyDetailsResponse contains the response from method EndpointsClient.ListManagedProxyDetails.
type EndpointsClientListOptions ¶ added in v0.2.0
type EndpointsClientListOptions struct { }
EndpointsClientListOptions contains the optional parameters for the EndpointsClient.List method.
type EndpointsClientListResponse ¶ added in v0.2.0
type EndpointsClientListResponse struct {
EndpointsList
}
EndpointsClientListResponse contains the response from method EndpointsClient.List.
type EndpointsClientUpdateOptions ¶ added in v0.2.0
type EndpointsClientUpdateOptions struct { }
EndpointsClientUpdateOptions contains the optional parameters for the EndpointsClient.Update method.
type EndpointsClientUpdateResponse ¶ added in v0.2.0
type EndpointsClientUpdateResponse struct {
EndpointResource
}
EndpointsClientUpdateResponse contains the response from method EndpointsClient.Update.
type EndpointsList ¶
type EndpointsList struct { // The link used to get the next page of endpoints list. NextLink *string `json:"nextLink,omitempty"` // The list of endpoint. Value []*EndpointResource `json:"value,omitempty"` }
EndpointsList - The list of endpoints.
type ErrorAdditionalInfo ¶
type ErrorAdditionalInfo struct { // READ-ONLY; The additional info. Info interface{} `json:"info,omitempty" azure:"ro"` // READ-ONLY; The additional info type. Type *string `json:"type,omitempty" azure:"ro"` }
ErrorAdditionalInfo - The resource management error additional info.
type ErrorDetail ¶
type ErrorDetail struct { // READ-ONLY; The error additional info. AdditionalInfo []*ErrorAdditionalInfo `json:"additionalInfo,omitempty" azure:"ro"` // READ-ONLY; The error code. Code *string `json:"code,omitempty" azure:"ro"` // READ-ONLY; The error details. Details []*ErrorDetail `json:"details,omitempty" azure:"ro"` // READ-ONLY; The error message. Message *string `json:"message,omitempty" azure:"ro"` // READ-ONLY; The error target. Target *string `json:"target,omitempty" azure:"ro"` }
ErrorDetail - The error detail.
type ErrorResponse ¶
type ErrorResponse struct { // The error object. Error *ErrorDetail `json:"error,omitempty"` }
ErrorResponse - Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).
type IngressGatewayResource ¶ added in v0.5.0
type IngressGatewayResource struct { // Ingress gateway profile Ingress *IngressProfileProperties `json:"ingress,omitempty"` // Azure relay hybrid connection access properties Relay *RelayNamespaceAccessProperties `json:"relay,omitempty"` }
IngressGatewayResource - The ingress gateway access credentials
type IngressProfileProperties ¶ added in v0.5.0
type IngressProfileProperties struct { // REQUIRED; The AAD Profile AADProfile *AADProfileProperties `json:"aadProfile,omitempty"` // REQUIRED; The ingress hostname. Hostname *string `json:"hostname,omitempty"` }
IngressProfileProperties - Ingress gateway profile
type ManagedProxyRequest ¶ added in v0.5.0
type ManagedProxyRequest struct { // REQUIRED; The name of the service. Service *string `json:"service,omitempty"` // The target host name. Hostname *string `json:"hostname,omitempty"` }
ManagedProxyRequest - Represent ManageProxy Request object.
type ManagedProxyResource ¶ added in v0.5.0
type ManagedProxyResource struct { // REQUIRED; The expiration time of short lived proxy name in unix epoch. ExpiresOn *int64 `json:"expiresOn,omitempty"` // REQUIRED; The short lived proxy name. Proxy *string `json:"proxy,omitempty"` }
ManagedProxyResource - Managed Proxy
type Operation ¶
type Operation struct { // Localized display information for this particular operation. Display *OperationDisplay `json:"display,omitempty"` // READ-ONLY; Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. ActionType *ActionType `json:"actionType,omitempty" azure:"ro"` // READ-ONLY; Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane // operations. IsDataAction *bool `json:"isDataAction,omitempty" azure:"ro"` // READ-ONLY; The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", // "Microsoft.Compute/virtualMachines/capture/action" Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default // value is "user,system" Origin *Origin `json:"origin,omitempty" azure:"ro"` }
Operation - Details of a REST API operation, returned from the Resource Provider Operations API
type OperationDisplay ¶
type OperationDisplay struct { // READ-ONLY; The short, localized friendly description of the operation; suitable for tool tips and detailed views. Description *string `json:"description,omitempty" azure:"ro"` // READ-ONLY; The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual // Machine", "Restart Virtual Machine". Operation *string `json:"operation,omitempty" azure:"ro"` // READ-ONLY; The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft // Compute". Provider *string `json:"provider,omitempty" azure:"ro"` // READ-ONLY; The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job // Schedule Collections". Resource *string `json:"resource,omitempty" azure:"ro"` }
OperationDisplay - Localized display information for this particular operation.
type OperationListResult ¶
type OperationListResult struct { // READ-ONLY; URL to get the next set of operation list results (if there are any). NextLink *string `json:"nextLink,omitempty" azure:"ro"` // READ-ONLY; List of operations supported by the resource provider Value []*Operation `json:"value,omitempty" azure:"ro"` }
OperationListResult - A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results.
type OperationsClient ¶
type OperationsClient struct {
// contains filtered or unexported fields
}
OperationsClient contains the methods for the Operations group. Don't use this type directly, use NewOperationsClient() instead.
func NewOperationsClient ¶
func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error)
NewOperationsClient creates a new instance of OperationsClient with the specified values. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*OperationsClient) NewListPager ¶ added in v0.4.0
func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]
NewListPager - Lists the available Hybrid Connectivity REST API operations. If the operation fails it returns an *azcore.ResponseError type. Generated from API version 2022-05-01-preview options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/hybridconnectivity/resource-manager/Microsoft.HybridConnectivity/preview/2022-05-01-preview/examples/OperationsList.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybridconnectivity/armhybridconnectivity" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armhybridconnectivity.NewOperationsClient(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager(nil) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } }
Output:
type OperationsClientListOptions ¶ added in v0.2.0
type OperationsClientListOptions struct { }
OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.
type OperationsClientListResponse ¶ added in v0.2.0
type OperationsClientListResponse struct {
OperationListResult
}
OperationsClientListResponse contains the response from method OperationsClient.List.
type Origin ¶
type Origin string
Origin - The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system"
func PossibleOriginValues ¶
func PossibleOriginValues() []Origin
PossibleOriginValues returns the possible values for the Origin const type.
type ProxyResource ¶
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 RelayNamespaceAccessProperties ¶
type RelayNamespaceAccessProperties struct { // REQUIRED; Azure Relay hybrid connection name for the resource. HybridConnectionName *string `json:"hybridConnectionName,omitempty"` // REQUIRED; The namespace name. NamespaceName *string `json:"namespaceName,omitempty"` // REQUIRED; The suffix domain name of relay namespace. NamespaceNameSuffix *string `json:"namespaceNameSuffix,omitempty"` // The expiration of access key in unix time. ExpiresOn *int64 `json:"expiresOn,omitempty"` // READ-ONLY; Access key for hybrid connection. AccessKey *string `json:"accessKey,omitempty" azure:"ro"` }
RelayNamespaceAccessProperties - Azure relay hybrid connection access properties
type Resource ¶
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 SystemData ¶
type SystemData struct { // The timestamp of resource creation (UTC). CreatedAt *time.Time `json:"createdAt,omitempty"` // The identity that created the resource. CreatedBy *string `json:"createdBy,omitempty"` // The type of identity that created the resource. CreatedByType *CreatedByType `json:"createdByType,omitempty"` // The timestamp of resource last modification (UTC) LastModifiedAt *time.Time `json:"lastModifiedAt,omitempty"` // The identity that last modified the resource. LastModifiedBy *string `json:"lastModifiedBy,omitempty"` // The type of identity that last modified the resource. LastModifiedByType *CreatedByType `json:"lastModifiedByType,omitempty"` }
SystemData - Metadata pertaining to creation and last modification of the resource.
func (SystemData) MarshalJSON ¶
func (s SystemData) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SystemData.
func (*SystemData) UnmarshalJSON ¶
func (s *SystemData) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SystemData.