Documentation
¶
Index ¶
- type ActionType
- type Association
- type AssociationListResult
- type AssociationProperties
- type AssociationSubnet
- type AssociationSubnetUpdate
- type AssociationType
- type AssociationUpdate
- type AssociationUpdateProperties
- type AssociationsInterfaceClient
- func (client *AssociationsInterfaceClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, trafficControllerName string, ...) (*runtime.Poller[AssociationsInterfaceClientCreateOrUpdateResponse], error)
- func (client *AssociationsInterfaceClient) BeginDelete(ctx context.Context, resourceGroupName string, trafficControllerName string, ...) (*runtime.Poller[AssociationsInterfaceClientDeleteResponse], error)
- func (client *AssociationsInterfaceClient) Get(ctx context.Context, resourceGroupName string, trafficControllerName string, ...) (AssociationsInterfaceClientGetResponse, error)
- func (client *AssociationsInterfaceClient) NewListByTrafficControllerPager(resourceGroupName string, trafficControllerName string, ...) *runtime.Pager[AssociationsInterfaceClientListByTrafficControllerResponse]
- func (client *AssociationsInterfaceClient) Update(ctx context.Context, resourceGroupName string, trafficControllerName string, ...) (AssociationsInterfaceClientUpdateResponse, error)
- type AssociationsInterfaceClientBeginCreateOrUpdateOptions
- type AssociationsInterfaceClientBeginDeleteOptions
- type AssociationsInterfaceClientCreateOrUpdateResponse
- type AssociationsInterfaceClientDeleteResponse
- type AssociationsInterfaceClientGetOptions
- type AssociationsInterfaceClientGetResponse
- type AssociationsInterfaceClientListByTrafficControllerOptions
- type AssociationsInterfaceClientListByTrafficControllerResponse
- type AssociationsInterfaceClientUpdateOptions
- type AssociationsInterfaceClientUpdateResponse
- type ClientFactory
- func (c *ClientFactory) NewAssociationsInterfaceClient() *AssociationsInterfaceClient
- func (c *ClientFactory) NewFrontendsInterfaceClient() *FrontendsInterfaceClient
- func (c *ClientFactory) NewOperationsClient() *OperationsClient
- func (c *ClientFactory) NewSecurityPoliciesInterfaceClient() *SecurityPoliciesInterfaceClient
- func (c *ClientFactory) NewTrafficControllerInterfaceClient() *TrafficControllerInterfaceClient
- type CreatedByType
- type Frontend
- type FrontendListResult
- type FrontendProperties
- type FrontendUpdate
- type FrontendsInterfaceClient
- func (client *FrontendsInterfaceClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, trafficControllerName string, ...) (*runtime.Poller[FrontendsInterfaceClientCreateOrUpdateResponse], error)
- func (client *FrontendsInterfaceClient) BeginDelete(ctx context.Context, resourceGroupName string, trafficControllerName string, ...) (*runtime.Poller[FrontendsInterfaceClientDeleteResponse], error)
- func (client *FrontendsInterfaceClient) Get(ctx context.Context, resourceGroupName string, trafficControllerName string, ...) (FrontendsInterfaceClientGetResponse, error)
- func (client *FrontendsInterfaceClient) NewListByTrafficControllerPager(resourceGroupName string, trafficControllerName string, ...) *runtime.Pager[FrontendsInterfaceClientListByTrafficControllerResponse]
- func (client *FrontendsInterfaceClient) Update(ctx context.Context, resourceGroupName string, trafficControllerName string, ...) (FrontendsInterfaceClientUpdateResponse, error)
- type FrontendsInterfaceClientBeginCreateOrUpdateOptions
- type FrontendsInterfaceClientBeginDeleteOptions
- type FrontendsInterfaceClientCreateOrUpdateResponse
- type FrontendsInterfaceClientDeleteResponse
- type FrontendsInterfaceClientGetOptions
- type FrontendsInterfaceClientGetResponse
- type FrontendsInterfaceClientListByTrafficControllerOptions
- type FrontendsInterfaceClientListByTrafficControllerResponse
- type FrontendsInterfaceClientUpdateOptions
- type FrontendsInterfaceClientUpdateResponse
- type Operation
- type OperationDisplay
- type OperationListResult
- type OperationsClient
- type OperationsClientListOptions
- type OperationsClientListResponse
- type Origin
- type PolicyType
- type ProvisioningState
- type ResourceID
- type SecurityPoliciesInterfaceClient
- func (client *SecurityPoliciesInterfaceClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, trafficControllerName string, ...) (*runtime.Poller[SecurityPoliciesInterfaceClientCreateOrUpdateResponse], error)
- func (client *SecurityPoliciesInterfaceClient) BeginDelete(ctx context.Context, resourceGroupName string, trafficControllerName string, ...) (*runtime.Poller[SecurityPoliciesInterfaceClientDeleteResponse], error)
- func (client *SecurityPoliciesInterfaceClient) Get(ctx context.Context, resourceGroupName string, trafficControllerName string, ...) (SecurityPoliciesInterfaceClientGetResponse, error)
- func (client *SecurityPoliciesInterfaceClient) NewListByTrafficControllerPager(resourceGroupName string, trafficControllerName string, ...) *runtime.Pager[SecurityPoliciesInterfaceClientListByTrafficControllerResponse]
- func (client *SecurityPoliciesInterfaceClient) Update(ctx context.Context, resourceGroupName string, trafficControllerName string, ...) (SecurityPoliciesInterfaceClientUpdateResponse, error)
- type SecurityPoliciesInterfaceClientBeginCreateOrUpdateOptions
- type SecurityPoliciesInterfaceClientBeginDeleteOptions
- type SecurityPoliciesInterfaceClientCreateOrUpdateResponse
- type SecurityPoliciesInterfaceClientDeleteResponse
- type SecurityPoliciesInterfaceClientGetOptions
- type SecurityPoliciesInterfaceClientGetResponse
- type SecurityPoliciesInterfaceClientListByTrafficControllerOptions
- type SecurityPoliciesInterfaceClientListByTrafficControllerResponse
- type SecurityPoliciesInterfaceClientUpdateOptions
- type SecurityPoliciesInterfaceClientUpdateResponse
- type SecurityPolicy
- type SecurityPolicyConfigurations
- type SecurityPolicyConfigurationsUpdate
- type SecurityPolicyListResult
- type SecurityPolicyProperties
- type SecurityPolicyUpdate
- type SecurityPolicyUpdateProperties
- type SystemData
- type TrafficController
- type TrafficControllerInterfaceClient
- func (client *TrafficControllerInterfaceClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, trafficControllerName string, ...) (*runtime.Poller[TrafficControllerInterfaceClientCreateOrUpdateResponse], error)
- func (client *TrafficControllerInterfaceClient) BeginDelete(ctx context.Context, resourceGroupName string, trafficControllerName string, ...) (*runtime.Poller[TrafficControllerInterfaceClientDeleteResponse], error)
- func (client *TrafficControllerInterfaceClient) Get(ctx context.Context, resourceGroupName string, trafficControllerName string, ...) (TrafficControllerInterfaceClientGetResponse, error)
- func (client *TrafficControllerInterfaceClient) NewListByResourceGroupPager(resourceGroupName string, ...) *runtime.Pager[TrafficControllerInterfaceClientListByResourceGroupResponse]
- func (client *TrafficControllerInterfaceClient) NewListBySubscriptionPager(options *TrafficControllerInterfaceClientListBySubscriptionOptions) *runtime.Pager[TrafficControllerInterfaceClientListBySubscriptionResponse]
- func (client *TrafficControllerInterfaceClient) Update(ctx context.Context, resourceGroupName string, trafficControllerName string, ...) (TrafficControllerInterfaceClientUpdateResponse, error)
- type TrafficControllerInterfaceClientBeginCreateOrUpdateOptions
- type TrafficControllerInterfaceClientBeginDeleteOptions
- type TrafficControllerInterfaceClientCreateOrUpdateResponse
- type TrafficControllerInterfaceClientDeleteResponse
- type TrafficControllerInterfaceClientGetOptions
- type TrafficControllerInterfaceClientGetResponse
- type TrafficControllerInterfaceClientListByResourceGroupOptions
- type TrafficControllerInterfaceClientListByResourceGroupResponse
- type TrafficControllerInterfaceClientListBySubscriptionOptions
- type TrafficControllerInterfaceClientListBySubscriptionResponse
- type TrafficControllerInterfaceClientUpdateOptions
- type TrafficControllerInterfaceClientUpdateResponse
- type TrafficControllerListResult
- type TrafficControllerProperties
- type TrafficControllerUpdate
- type TrafficControllerUpdateProperties
- type WafPolicy
- type WafPolicyUpdate
- type WafSecurityPolicy
- type WafSecurityPolicyUpdate
Examples ¶
- AssociationsInterfaceClient.BeginCreateOrUpdate
- AssociationsInterfaceClient.BeginDelete
- AssociationsInterfaceClient.Get
- AssociationsInterfaceClient.NewListByTrafficControllerPager
- AssociationsInterfaceClient.Update
- FrontendsInterfaceClient.BeginCreateOrUpdate
- FrontendsInterfaceClient.BeginDelete
- FrontendsInterfaceClient.Get
- FrontendsInterfaceClient.NewListByTrafficControllerPager
- FrontendsInterfaceClient.Update
- OperationsClient.NewListPager
- SecurityPoliciesInterfaceClient.BeginCreateOrUpdate
- SecurityPoliciesInterfaceClient.BeginDelete
- SecurityPoliciesInterfaceClient.Get
- SecurityPoliciesInterfaceClient.NewListByTrafficControllerPager
- SecurityPoliciesInterfaceClient.Update
- TrafficControllerInterfaceClient.BeginCreateOrUpdate
- TrafficControllerInterfaceClient.BeginDelete
- TrafficControllerInterfaceClient.Get
- TrafficControllerInterfaceClient.NewListByResourceGroupPager
- TrafficControllerInterfaceClient.NewListBySubscriptionPager
- TrafficControllerInterfaceClient.Update
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 Association ¶
type Association struct {
// REQUIRED; The geo-location where the resource lives
Location *string
// The resource-specific properties for this resource.
Properties *AssociationProperties
// Resource tags.
Tags map[string]*string
// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
ID *string
// READ-ONLY; The name of the resource
Name *string
// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
Association Subresource of Traffic Controller
func (Association) MarshalJSON ¶
func (a Association) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type Association.
func (*Association) UnmarshalJSON ¶
func (a *Association) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type Association.
type AssociationListResult ¶
type AssociationListResult struct {
// REQUIRED; The Association items on this page
Value []*Association
// The link to the next page of items
NextLink *string
}
AssociationListResult - The response of a Association list operation.
func (AssociationListResult) MarshalJSON ¶
func (a AssociationListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AssociationListResult.
func (*AssociationListResult) UnmarshalJSON ¶
func (a *AssociationListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AssociationListResult.
type AssociationProperties ¶
type AssociationProperties struct {
// REQUIRED; Association Type
AssociationType *AssociationType
// Association Subnet
Subnet *AssociationSubnet
// READ-ONLY; Provisioning State of Traffic Controller Association Resource
ProvisioningState *ProvisioningState
}
AssociationProperties - Association Properties.
func (AssociationProperties) MarshalJSON ¶
func (a AssociationProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AssociationProperties.
func (*AssociationProperties) UnmarshalJSON ¶
func (a *AssociationProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AssociationProperties.
type AssociationSubnet ¶
type AssociationSubnet struct {
// REQUIRED; Association ID.
ID *string
}
AssociationSubnet - Association Subnet.
func (AssociationSubnet) MarshalJSON ¶
func (a AssociationSubnet) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AssociationSubnet.
func (*AssociationSubnet) UnmarshalJSON ¶
func (a *AssociationSubnet) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AssociationSubnet.
type AssociationSubnetUpdate ¶
type AssociationSubnetUpdate struct {
// Association ID.
ID *string
}
AssociationSubnetUpdate - Association Subnet.
func (AssociationSubnetUpdate) MarshalJSON ¶
func (a AssociationSubnetUpdate) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AssociationSubnetUpdate.
func (*AssociationSubnetUpdate) UnmarshalJSON ¶
func (a *AssociationSubnetUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AssociationSubnetUpdate.
type AssociationType ¶
type AssociationType string
AssociationType - Association Type Enum
const ( // AssociationTypeSubnets - Association of Type Subnet AssociationTypeSubnets AssociationType = "subnets" )
func PossibleAssociationTypeValues ¶
func PossibleAssociationTypeValues() []AssociationType
PossibleAssociationTypeValues returns the possible values for the AssociationType const type.
type AssociationUpdate ¶
type AssociationUpdate struct {
// The resource-specific properties for this resource.
Properties *AssociationUpdateProperties
// Resource tags.
Tags map[string]*string
}
AssociationUpdate - The type used for update operations of the Association.
func (AssociationUpdate) MarshalJSON ¶
func (a AssociationUpdate) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AssociationUpdate.
func (*AssociationUpdate) UnmarshalJSON ¶
func (a *AssociationUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AssociationUpdate.
type AssociationUpdateProperties ¶
type AssociationUpdateProperties struct {
// Association Type
AssociationType *AssociationType
// Association Subnet
Subnet *AssociationSubnetUpdate
}
AssociationUpdateProperties - The updatable properties of the Association.
func (AssociationUpdateProperties) MarshalJSON ¶
func (a AssociationUpdateProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AssociationUpdateProperties.
func (*AssociationUpdateProperties) UnmarshalJSON ¶
func (a *AssociationUpdateProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AssociationUpdateProperties.
type AssociationsInterfaceClient ¶
type AssociationsInterfaceClient struct {
// contains filtered or unexported fields
}
AssociationsInterfaceClient contains the methods for the AssociationsInterface group. Don't use this type directly, use NewAssociationsInterfaceClient() instead.
func NewAssociationsInterfaceClient ¶
func NewAssociationsInterfaceClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*AssociationsInterfaceClient, error)
NewAssociationsInterfaceClient creates a new instance of AssociationsInterfaceClient with the specified values.
- subscriptionID - The ID of the target subscription.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*AssociationsInterfaceClient) BeginCreateOrUpdate ¶
func (client *AssociationsInterfaceClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, trafficControllerName string, associationName string, resource Association, options *AssociationsInterfaceClientBeginCreateOrUpdateOptions) (*runtime.Poller[AssociationsInterfaceClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Create a Association If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-05-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- trafficControllerName - traffic controller name for path
- associationName - Name of Association
- resource - Resource create parameters.
- options - AssociationsInterfaceClientBeginCreateOrUpdateOptions contains the optional parameters for the AssociationsInterfaceClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7189fb57f69468c56df76f9a4d68dd9ff04ab100/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2024-05-01-preview/examples/AssociationPut.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/servicenetworking/armservicenetworking"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armservicenetworking.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewAssociationsInterfaceClient().BeginCreateOrUpdate(ctx, "rg1", "tc1", "as1", armservicenetworking.Association{
Location: to.Ptr("NorthCentralUS"),
Properties: &armservicenetworking.AssociationProperties{
AssociationType: to.Ptr(armservicenetworking.AssociationTypeSubnets),
Subnet: &armservicenetworking.AssociationSubnet{
ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet-tc/subnets/tc-subnet"),
},
},
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Association = armservicenetworking.Association{
// Name: to.Ptr("associatedvnet-1"),
// Type: to.Ptr("Microsoft.ServiceNetworking/trafficControllers/associations"),
// ID: to.Ptr("/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/associations/as1"),
// Location: to.Ptr("NorthCentralUS"),
// Properties: &armservicenetworking.AssociationProperties{
// AssociationType: to.Ptr(armservicenetworking.AssociationTypeSubnets),
// ProvisioningState: to.Ptr(armservicenetworking.ProvisioningStateSucceeded),
// Subnet: &armservicenetworking.AssociationSubnet{
// ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet-tc/subnets/tc-subnet"),
// },
// },
// }
}
func (*AssociationsInterfaceClient) BeginDelete ¶
func (client *AssociationsInterfaceClient) BeginDelete(ctx context.Context, resourceGroupName string, trafficControllerName string, associationName string, options *AssociationsInterfaceClientBeginDeleteOptions) (*runtime.Poller[AssociationsInterfaceClientDeleteResponse], error)
BeginDelete - Delete a Association If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-05-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- trafficControllerName - traffic controller name for path
- associationName - Name of Association
- options - AssociationsInterfaceClientBeginDeleteOptions contains the optional parameters for the AssociationsInterfaceClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7189fb57f69468c56df76f9a4d68dd9ff04ab100/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2024-05-01-preview/examples/AssociationDelete.json
package main
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicenetworking/armservicenetworking"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armservicenetworking.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewAssociationsInterfaceClient().BeginDelete(ctx, "rg1", "tc1", "as1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
_, err = poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
}
func (*AssociationsInterfaceClient) Get ¶
func (client *AssociationsInterfaceClient) Get(ctx context.Context, resourceGroupName string, trafficControllerName string, associationName string, options *AssociationsInterfaceClientGetOptions) (AssociationsInterfaceClientGetResponse, error)
Get - Get a Association If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-05-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- trafficControllerName - traffic controller name for path
- associationName - Name of Association
- options - AssociationsInterfaceClientGetOptions contains the optional parameters for the AssociationsInterfaceClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7189fb57f69468c56df76f9a4d68dd9ff04ab100/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2024-05-01-preview/examples/AssociationGet.json
package main
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicenetworking/armservicenetworking"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armservicenetworking.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewAssociationsInterfaceClient().Get(ctx, "rg1", "tc1", "as1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Association = armservicenetworking.Association{
// Name: to.Ptr("as1"),
// Type: to.Ptr("Microsoft.ServiceNetworking/trafficControllers/associations"),
// ID: to.Ptr("/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/associations/as1"),
// Location: to.Ptr("NorthCentralUS"),
// Properties: &armservicenetworking.AssociationProperties{
// AssociationType: to.Ptr(armservicenetworking.AssociationTypeSubnets),
// ProvisioningState: to.Ptr(armservicenetworking.ProvisioningStateSucceeded),
// Subnet: &armservicenetworking.AssociationSubnet{
// ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet-tc/subnets/tc-subnet"),
// },
// },
// }
}
func (*AssociationsInterfaceClient) NewListByTrafficControllerPager ¶
func (client *AssociationsInterfaceClient) NewListByTrafficControllerPager(resourceGroupName string, trafficControllerName string, options *AssociationsInterfaceClientListByTrafficControllerOptions) *runtime.Pager[AssociationsInterfaceClientListByTrafficControllerResponse]
NewListByTrafficControllerPager - List Association resources by TrafficController
Generated from API version 2024-05-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- trafficControllerName - traffic controller name for path
- options - AssociationsInterfaceClientListByTrafficControllerOptions contains the optional parameters for the AssociationsInterfaceClient.NewListByTrafficControllerPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7189fb57f69468c56df76f9a4d68dd9ff04ab100/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2024-05-01-preview/examples/AssociationsGet.json
package main
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicenetworking/armservicenetworking"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armservicenetworking.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewAssociationsInterfaceClient().NewListByTrafficControllerPager("rg1", "tc1", nil)
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.AssociationListResult = armservicenetworking.AssociationListResult{
// Value: []*armservicenetworking.Association{
// {
// Name: to.Ptr("as1"),
// Type: to.Ptr("Microsoft.ServiceNetworking/trafficControllers/associations"),
// ID: to.Ptr("/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/associations/as1"),
// Location: to.Ptr("NorthCentralUS"),
// Properties: &armservicenetworking.AssociationProperties{
// AssociationType: to.Ptr(armservicenetworking.AssociationTypeSubnets),
// ProvisioningState: to.Ptr(armservicenetworking.ProvisioningStateSucceeded),
// Subnet: &armservicenetworking.AssociationSubnet{
// ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet-tc/subnets/tc-subnet"),
// },
// },
// }},
// }
}
}
func (*AssociationsInterfaceClient) Update ¶
func (client *AssociationsInterfaceClient) Update(ctx context.Context, resourceGroupName string, trafficControllerName string, associationName string, properties AssociationUpdate, options *AssociationsInterfaceClientUpdateOptions) (AssociationsInterfaceClientUpdateResponse, error)
Update - Update a Association If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-05-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- trafficControllerName - traffic controller name for path
- associationName - Name of Association
- properties - The resource properties to be updated.
- options - AssociationsInterfaceClientUpdateOptions contains the optional parameters for the AssociationsInterfaceClient.Update method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7189fb57f69468c56df76f9a4d68dd9ff04ab100/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2024-05-01-preview/examples/AssociationPatch.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/servicenetworking/armservicenetworking"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armservicenetworking.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewAssociationsInterfaceClient().Update(ctx, "rg1", "tc1", "as1", armservicenetworking.AssociationUpdate{
Properties: &armservicenetworking.AssociationUpdateProperties{
AssociationType: to.Ptr(armservicenetworking.AssociationTypeSubnets),
Subnet: &armservicenetworking.AssociationSubnetUpdate{
ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet-tc/subnets/tc-subnet"),
},
},
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Association = armservicenetworking.Association{
// Name: to.Ptr("as1"),
// Type: to.Ptr("Microsoft.ServiceNetworking/trafficControllers/associations"),
// ID: to.Ptr("/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/associations/as1"),
// Location: to.Ptr("NorthCentralUS"),
// Properties: &armservicenetworking.AssociationProperties{
// AssociationType: to.Ptr(armservicenetworking.AssociationTypeSubnets),
// Subnet: &armservicenetworking.AssociationSubnet{
// ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet-tc/subnets/tc-subnet"),
// },
// },
// }
}
type AssociationsInterfaceClientBeginCreateOrUpdateOptions ¶
type AssociationsInterfaceClientBeginCreateOrUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
AssociationsInterfaceClientBeginCreateOrUpdateOptions contains the optional parameters for the AssociationsInterfaceClient.BeginCreateOrUpdate method.
type AssociationsInterfaceClientBeginDeleteOptions ¶
type AssociationsInterfaceClientBeginDeleteOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
AssociationsInterfaceClientBeginDeleteOptions contains the optional parameters for the AssociationsInterfaceClient.BeginDelete method.
type AssociationsInterfaceClientCreateOrUpdateResponse ¶
type AssociationsInterfaceClientCreateOrUpdateResponse struct {
// Association Subresource of Traffic Controller
Association
}
AssociationsInterfaceClientCreateOrUpdateResponse contains the response from method AssociationsInterfaceClient.BeginCreateOrUpdate.
type AssociationsInterfaceClientDeleteResponse ¶
type AssociationsInterfaceClientDeleteResponse struct {
}
AssociationsInterfaceClientDeleteResponse contains the response from method AssociationsInterfaceClient.BeginDelete.
type AssociationsInterfaceClientGetOptions ¶
type AssociationsInterfaceClientGetOptions struct {
}
AssociationsInterfaceClientGetOptions contains the optional parameters for the AssociationsInterfaceClient.Get method.
type AssociationsInterfaceClientGetResponse ¶
type AssociationsInterfaceClientGetResponse struct {
// Association Subresource of Traffic Controller
Association
}
AssociationsInterfaceClientGetResponse contains the response from method AssociationsInterfaceClient.Get.
type AssociationsInterfaceClientListByTrafficControllerOptions ¶
type AssociationsInterfaceClientListByTrafficControllerOptions struct {
}
AssociationsInterfaceClientListByTrafficControllerOptions contains the optional parameters for the AssociationsInterfaceClient.NewListByTrafficControllerPager method.
type AssociationsInterfaceClientListByTrafficControllerResponse ¶
type AssociationsInterfaceClientListByTrafficControllerResponse struct {
// The response of a Association list operation.
AssociationListResult
}
AssociationsInterfaceClientListByTrafficControllerResponse contains the response from method AssociationsInterfaceClient.NewListByTrafficControllerPager.
type AssociationsInterfaceClientUpdateOptions ¶
type AssociationsInterfaceClientUpdateOptions struct {
}
AssociationsInterfaceClientUpdateOptions contains the optional parameters for the AssociationsInterfaceClient.Update method.
type AssociationsInterfaceClientUpdateResponse ¶
type AssociationsInterfaceClientUpdateResponse struct {
// Association Subresource of Traffic Controller
Association
}
AssociationsInterfaceClientUpdateResponse contains the response from method AssociationsInterfaceClient.Update.
type ClientFactory ¶
type ClientFactory struct {
// contains filtered or unexported fields
}
ClientFactory is a client factory used to create any client in this module. Don't use this type directly, use NewClientFactory instead.
func NewClientFactory ¶
func NewClientFactory(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ClientFactory, error)
NewClientFactory creates a new instance of ClientFactory with the specified values. The parameter values will be propagated to any client created from this factory.
- subscriptionID - The ID of the target subscription.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ClientFactory) NewAssociationsInterfaceClient ¶
func (c *ClientFactory) NewAssociationsInterfaceClient() *AssociationsInterfaceClient
NewAssociationsInterfaceClient creates a new instance of AssociationsInterfaceClient.
func (*ClientFactory) NewFrontendsInterfaceClient ¶
func (c *ClientFactory) NewFrontendsInterfaceClient() *FrontendsInterfaceClient
NewFrontendsInterfaceClient creates a new instance of FrontendsInterfaceClient.
func (*ClientFactory) NewOperationsClient ¶
func (c *ClientFactory) NewOperationsClient() *OperationsClient
NewOperationsClient creates a new instance of OperationsClient.
func (*ClientFactory) NewSecurityPoliciesInterfaceClient ¶
func (c *ClientFactory) NewSecurityPoliciesInterfaceClient() *SecurityPoliciesInterfaceClient
NewSecurityPoliciesInterfaceClient creates a new instance of SecurityPoliciesInterfaceClient.
func (*ClientFactory) NewTrafficControllerInterfaceClient ¶
func (c *ClientFactory) NewTrafficControllerInterfaceClient() *TrafficControllerInterfaceClient
NewTrafficControllerInterfaceClient creates a new instance of TrafficControllerInterfaceClient.
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 Frontend ¶
type Frontend struct {
// REQUIRED; The geo-location where the resource lives
Location *string
// The resource-specific properties for this resource.
Properties *FrontendProperties
// Resource tags.
Tags map[string]*string
// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
ID *string
// READ-ONLY; The name of the resource
Name *string
// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
Frontend Sub Resource of Traffic Controller.
func (Frontend) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Frontend.
func (*Frontend) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Frontend.
type FrontendListResult ¶
type FrontendListResult struct {
// REQUIRED; The Frontend items on this page
Value []*Frontend
// The link to the next page of items
NextLink *string
}
FrontendListResult - The response of a Frontend list operation.
func (FrontendListResult) MarshalJSON ¶
func (f FrontendListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type FrontendListResult.
func (*FrontendListResult) UnmarshalJSON ¶
func (f *FrontendListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type FrontendListResult.
type FrontendProperties ¶
type FrontendProperties struct {
// READ-ONLY; The Fully Qualified Domain Name of the DNS record associated to a Traffic Controller frontend.
Fqdn *string
// READ-ONLY; Provisioning State of Traffic Controller Frontend Resource
ProvisioningState *ProvisioningState
}
FrontendProperties - Frontend Properties.
func (FrontendProperties) MarshalJSON ¶
func (f FrontendProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type FrontendProperties.
func (*FrontendProperties) UnmarshalJSON ¶
func (f *FrontendProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type FrontendProperties.
type FrontendUpdate ¶
FrontendUpdate - The type used for update operations of the Frontend.
func (FrontendUpdate) MarshalJSON ¶
func (f FrontendUpdate) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type FrontendUpdate.
func (*FrontendUpdate) UnmarshalJSON ¶
func (f *FrontendUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type FrontendUpdate.
type FrontendsInterfaceClient ¶
type FrontendsInterfaceClient struct {
// contains filtered or unexported fields
}
FrontendsInterfaceClient contains the methods for the FrontendsInterface group. Don't use this type directly, use NewFrontendsInterfaceClient() instead.
func NewFrontendsInterfaceClient ¶
func NewFrontendsInterfaceClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*FrontendsInterfaceClient, error)
NewFrontendsInterfaceClient creates a new instance of FrontendsInterfaceClient with the specified values.
- subscriptionID - The ID of the target subscription.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*FrontendsInterfaceClient) BeginCreateOrUpdate ¶
func (client *FrontendsInterfaceClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, trafficControllerName string, frontendName string, resource Frontend, options *FrontendsInterfaceClientBeginCreateOrUpdateOptions) (*runtime.Poller[FrontendsInterfaceClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Create a Frontend If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-05-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- trafficControllerName - traffic controller name for path
- frontendName - Frontends
- resource - Resource create parameters.
- options - FrontendsInterfaceClientBeginCreateOrUpdateOptions contains the optional parameters for the FrontendsInterfaceClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7189fb57f69468c56df76f9a4d68dd9ff04ab100/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2024-05-01-preview/examples/FrontendPut.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/servicenetworking/armservicenetworking"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armservicenetworking.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewFrontendsInterfaceClient().BeginCreateOrUpdate(ctx, "rg1", "tc1", "fe1", armservicenetworking.Frontend{
Location: to.Ptr("NorthCentralUS"),
Properties: &armservicenetworking.FrontendProperties{},
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Frontend = armservicenetworking.Frontend{
// Name: to.Ptr("fe1"),
// Type: to.Ptr("Microsoft.ServiceNetworking/trafficControllers/frontends"),
// ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/frontends/fe1"),
// Location: to.Ptr("NorthCentralUS"),
// Properties: &armservicenetworking.FrontendProperties{
// Fqdn: to.Ptr("test.net"),
// ProvisioningState: to.Ptr(armservicenetworking.ProvisioningStateSucceeded),
// },
// }
}
func (*FrontendsInterfaceClient) BeginDelete ¶
func (client *FrontendsInterfaceClient) BeginDelete(ctx context.Context, resourceGroupName string, trafficControllerName string, frontendName string, options *FrontendsInterfaceClientBeginDeleteOptions) (*runtime.Poller[FrontendsInterfaceClientDeleteResponse], error)
BeginDelete - Delete a Frontend If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-05-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- trafficControllerName - traffic controller name for path
- frontendName - Frontends
- options - FrontendsInterfaceClientBeginDeleteOptions contains the optional parameters for the FrontendsInterfaceClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7189fb57f69468c56df76f9a4d68dd9ff04ab100/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2024-05-01-preview/examples/FrontendDelete.json
package main
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicenetworking/armservicenetworking"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armservicenetworking.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewFrontendsInterfaceClient().BeginDelete(ctx, "rg1", "tc1", "fe1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
_, err = poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
}
func (*FrontendsInterfaceClient) Get ¶
func (client *FrontendsInterfaceClient) Get(ctx context.Context, resourceGroupName string, trafficControllerName string, frontendName string, options *FrontendsInterfaceClientGetOptions) (FrontendsInterfaceClientGetResponse, error)
Get - Get a Frontend If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-05-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- trafficControllerName - traffic controller name for path
- frontendName - Frontends
- options - FrontendsInterfaceClientGetOptions contains the optional parameters for the FrontendsInterfaceClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7189fb57f69468c56df76f9a4d68dd9ff04ab100/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2024-05-01-preview/examples/FrontendGet.json
package main
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicenetworking/armservicenetworking"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armservicenetworking.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewFrontendsInterfaceClient().Get(ctx, "rg1", "tc1", "fe1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Frontend = armservicenetworking.Frontend{
// Name: to.Ptr("fe1"),
// Type: to.Ptr("Microsoft.ServiceNetworking/trafficControllers/frontends"),
// ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/frontends/fe1"),
// Location: to.Ptr("NorthCentralUS"),
// Properties: &armservicenetworking.FrontendProperties{
// Fqdn: to.Ptr("test.net"),
// ProvisioningState: to.Ptr(armservicenetworking.ProvisioningStateSucceeded),
// },
// }
}
func (*FrontendsInterfaceClient) NewListByTrafficControllerPager ¶
func (client *FrontendsInterfaceClient) NewListByTrafficControllerPager(resourceGroupName string, trafficControllerName string, options *FrontendsInterfaceClientListByTrafficControllerOptions) *runtime.Pager[FrontendsInterfaceClientListByTrafficControllerResponse]
NewListByTrafficControllerPager - List Frontend resources by TrafficController
Generated from API version 2024-05-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- trafficControllerName - traffic controller name for path
- options - FrontendsInterfaceClientListByTrafficControllerOptions contains the optional parameters for the FrontendsInterfaceClient.NewListByTrafficControllerPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7189fb57f69468c56df76f9a4d68dd9ff04ab100/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2024-05-01-preview/examples/FrontendsGet.json
package main
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicenetworking/armservicenetworking"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armservicenetworking.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewFrontendsInterfaceClient().NewListByTrafficControllerPager("rg1", "tc1", nil)
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.FrontendListResult = armservicenetworking.FrontendListResult{
// Value: []*armservicenetworking.Frontend{
// {
// Name: to.Ptr("fe1"),
// Type: to.Ptr("Microsoft.ServiceNetworking/trafficControllers/frontends"),
// ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/frontends/fe1"),
// Location: to.Ptr("NorthCentralUS"),
// Properties: &armservicenetworking.FrontendProperties{
// Fqdn: to.Ptr("test.net"),
// ProvisioningState: to.Ptr(armservicenetworking.ProvisioningStateSucceeded),
// },
// }},
// }
}
}
func (*FrontendsInterfaceClient) Update ¶
func (client *FrontendsInterfaceClient) Update(ctx context.Context, resourceGroupName string, trafficControllerName string, frontendName string, properties FrontendUpdate, options *FrontendsInterfaceClientUpdateOptions) (FrontendsInterfaceClientUpdateResponse, error)
Update - Update a Frontend If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-05-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- trafficControllerName - traffic controller name for path
- frontendName - Frontends
- properties - The resource properties to be updated.
- options - FrontendsInterfaceClientUpdateOptions contains the optional parameters for the FrontendsInterfaceClient.Update method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7189fb57f69468c56df76f9a4d68dd9ff04ab100/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2024-05-01-preview/examples/FrontendPatch.json
package main
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicenetworking/armservicenetworking"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armservicenetworking.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewFrontendsInterfaceClient().Update(ctx, "rg1", "tc1", "fe1", armservicenetworking.FrontendUpdate{}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Frontend = armservicenetworking.Frontend{
// Name: to.Ptr("fe1"),
// Type: to.Ptr("Microsoft.ServiceNetworking/trafficControllers/frontends"),
// ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/frontends/fe1"),
// Location: to.Ptr("NorthCentralUS"),
// Properties: &armservicenetworking.FrontendProperties{
// Fqdn: to.Ptr("test.net"),
// ProvisioningState: to.Ptr(armservicenetworking.ProvisioningStateSucceeded),
// },
// }
}
type FrontendsInterfaceClientBeginCreateOrUpdateOptions ¶
type FrontendsInterfaceClientBeginCreateOrUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
FrontendsInterfaceClientBeginCreateOrUpdateOptions contains the optional parameters for the FrontendsInterfaceClient.BeginCreateOrUpdate method.
type FrontendsInterfaceClientBeginDeleteOptions ¶
type FrontendsInterfaceClientBeginDeleteOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
FrontendsInterfaceClientBeginDeleteOptions contains the optional parameters for the FrontendsInterfaceClient.BeginDelete method.
type FrontendsInterfaceClientCreateOrUpdateResponse ¶
type FrontendsInterfaceClientCreateOrUpdateResponse struct {
// Frontend Sub Resource of Traffic Controller.
Frontend
}
FrontendsInterfaceClientCreateOrUpdateResponse contains the response from method FrontendsInterfaceClient.BeginCreateOrUpdate.
type FrontendsInterfaceClientDeleteResponse ¶
type FrontendsInterfaceClientDeleteResponse struct {
}
FrontendsInterfaceClientDeleteResponse contains the response from method FrontendsInterfaceClient.BeginDelete.
type FrontendsInterfaceClientGetOptions ¶
type FrontendsInterfaceClientGetOptions struct {
}
FrontendsInterfaceClientGetOptions contains the optional parameters for the FrontendsInterfaceClient.Get method.
type FrontendsInterfaceClientGetResponse ¶
type FrontendsInterfaceClientGetResponse struct {
// Frontend Sub Resource of Traffic Controller.
Frontend
}
FrontendsInterfaceClientGetResponse contains the response from method FrontendsInterfaceClient.Get.
type FrontendsInterfaceClientListByTrafficControllerOptions ¶
type FrontendsInterfaceClientListByTrafficControllerOptions struct {
}
FrontendsInterfaceClientListByTrafficControllerOptions contains the optional parameters for the FrontendsInterfaceClient.NewListByTrafficControllerPager method.
type FrontendsInterfaceClientListByTrafficControllerResponse ¶
type FrontendsInterfaceClientListByTrafficControllerResponse struct {
// The response of a Frontend list operation.
FrontendListResult
}
FrontendsInterfaceClientListByTrafficControllerResponse contains the response from method FrontendsInterfaceClient.NewListByTrafficControllerPager.
type FrontendsInterfaceClientUpdateOptions ¶
type FrontendsInterfaceClientUpdateOptions struct {
}
FrontendsInterfaceClientUpdateOptions contains the optional parameters for the FrontendsInterfaceClient.Update method.
type FrontendsInterfaceClientUpdateResponse ¶
type FrontendsInterfaceClientUpdateResponse struct {
// Frontend Sub Resource of Traffic Controller.
Frontend
}
FrontendsInterfaceClientUpdateResponse contains the response from method FrontendsInterfaceClient.Update.
type Operation ¶
type Operation struct {
// Localized display information for this particular operation.
Display *OperationDisplay
// READ-ONLY; Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
ActionType *ActionType
// 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
// 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
// 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
}
Operation - Details of a REST API operation, returned from the Resource Provider Operations API
func (Operation) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Operation.
func (*Operation) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Operation.
type OperationDisplay ¶
type OperationDisplay struct {
// READ-ONLY; The short, localized friendly description of the operation; suitable for tool tips and detailed views.
Description *string
// 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
// READ-ONLY; The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft
// Compute".
Provider *string
// READ-ONLY; The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job
// Schedule Collections".
Resource *string
}
OperationDisplay - Localized display information for this particular operation.
func (OperationDisplay) MarshalJSON ¶
func (o OperationDisplay) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationDisplay.
func (*OperationDisplay) UnmarshalJSON ¶
func (o *OperationDisplay) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationDisplay.
type OperationListResult ¶
type OperationListResult struct {
// READ-ONLY; URL to get the next set of operation list results (if there are any).
NextLink *string
// READ-ONLY; List of operations supported by the resource provider
Value []*Operation
}
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.
func (OperationListResult) MarshalJSON ¶
func (o OperationListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationListResult.
func (*OperationListResult) UnmarshalJSON ¶
func (o *OperationListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationListResult.
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 ¶
func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]
NewListPager - List the operations for the provider
Generated from API version 2024-05-01-preview
- options - OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7189fb57f69468c56df76f9a4d68dd9ff04ab100/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2024-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/servicenetworking/armservicenetworking"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armservicenetworking.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewOperationsClient().NewListPager(nil)
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.OperationListResult = armservicenetworking.OperationListResult{
// Value: []*armservicenetworking.Operation{
// {
// Name: to.Ptr("Microsoft.ServiceNetworking/trafficControllers/read"),
// Display: &armservicenetworking.OperationDisplay{
// Description: to.Ptr("Traffic Controller is a L7 Load Balancing solution for a Multi Cluster setup"),
// Operation: to.Ptr("Get Traffic Controller configuration"),
// Provider: to.Ptr("Microsoft Service Networking"),
// Resource: to.Ptr("Traffic Controller"),
// },
// IsDataAction: to.Ptr(false),
// Origin: to.Ptr(armservicenetworking.OriginUserSystem),
// }},
// }
}
}
type OperationsClientListOptions ¶
type OperationsClientListOptions struct {
}
OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.
type OperationsClientListResponse ¶
type OperationsClientListResponse struct {
// A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results.
OperationListResult
}
OperationsClientListResponse contains the response from method OperationsClient.NewListPager.
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 PolicyType ¶
type PolicyType string
PolicyType - Policy Type of the Security Policy
const ( // PolicyTypeWAF - Policy of Type WAF PolicyTypeWAF PolicyType = "waf" )
func PossiblePolicyTypeValues ¶
func PossiblePolicyTypeValues() []PolicyType
PossiblePolicyTypeValues returns the possible values for the PolicyType const type.
type ProvisioningState ¶
type ProvisioningState string
ProvisioningState - Resource Provisioning State Enum
const ( // ProvisioningStateAccepted - Resource in Accepted State ProvisioningStateAccepted ProvisioningState = "Accepted" // ProvisioningStateCanceled - Resource in Canceled State ProvisioningStateCanceled ProvisioningState = "Canceled" // ProvisioningStateDeleting - Resource in Deleting State ProvisioningStateDeleting ProvisioningState = "Deleting" // ProvisioningStateFailed - Resource in Failed State ProvisioningStateFailed ProvisioningState = "Failed" // ProvisioningStateProvisioning - Resource in Provisioning State ProvisioningStateProvisioning ProvisioningState = "Provisioning" // ProvisioningStateSucceeded - Resource in Succeeded State ProvisioningStateSucceeded ProvisioningState = "Succeeded" // ProvisioningStateUpdating - Resource in Updating State ProvisioningStateUpdating ProvisioningState = "Updating" )
func PossibleProvisioningStateValues ¶
func PossibleProvisioningStateValues() []ProvisioningState
PossibleProvisioningStateValues returns the possible values for the ProvisioningState const type.
type ResourceID ¶
type ResourceID struct {
// REQUIRED; Resource ID of child resource.
ID *string
}
ResourceID - Resource ID definition used by parent to reference child resources.
func (ResourceID) MarshalJSON ¶
func (r ResourceID) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ResourceID.
func (*ResourceID) UnmarshalJSON ¶
func (r *ResourceID) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ResourceID.
type SecurityPoliciesInterfaceClient ¶
type SecurityPoliciesInterfaceClient struct {
// contains filtered or unexported fields
}
SecurityPoliciesInterfaceClient contains the methods for the SecurityPoliciesInterface group. Don't use this type directly, use NewSecurityPoliciesInterfaceClient() instead.
func NewSecurityPoliciesInterfaceClient ¶
func NewSecurityPoliciesInterfaceClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SecurityPoliciesInterfaceClient, error)
NewSecurityPoliciesInterfaceClient creates a new instance of SecurityPoliciesInterfaceClient with the specified values.
- subscriptionID - The ID of the target subscription.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*SecurityPoliciesInterfaceClient) BeginCreateOrUpdate ¶
func (client *SecurityPoliciesInterfaceClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, trafficControllerName string, securityPolicyName string, resource SecurityPolicy, options *SecurityPoliciesInterfaceClientBeginCreateOrUpdateOptions) (*runtime.Poller[SecurityPoliciesInterfaceClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Create a SecurityPolicy If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-05-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- trafficControllerName - traffic controller name for path
- securityPolicyName - SecurityPolicy
- resource - Resource create parameters.
- options - SecurityPoliciesInterfaceClientBeginCreateOrUpdateOptions contains the optional parameters for the SecurityPoliciesInterfaceClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7189fb57f69468c56df76f9a4d68dd9ff04ab100/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2024-05-01-preview/examples/SecurityPolicyPut.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/servicenetworking/armservicenetworking"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armservicenetworking.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewSecurityPoliciesInterfaceClient().BeginCreateOrUpdate(ctx, "rg1", "tc1", "sp1", armservicenetworking.SecurityPolicy{
Location: to.Ptr("NorthCentralUS"),
Properties: &armservicenetworking.SecurityPolicyProperties{
WafPolicy: &armservicenetworking.WafPolicy{
ID: to.Ptr("/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.Networking/applicationGatewayWebApplicationFirewallPolicies/wp-0"),
},
},
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.SecurityPolicy = armservicenetworking.SecurityPolicy{
// Name: to.Ptr("waf-0"),
// Type: to.Ptr("Microsoft.ServiceNetworking/trafficControllers/securityPolicies"),
// ID: to.Ptr("/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/sample-tc/securityPolicies/waf-0"),
// Location: to.Ptr("eastus"),
// Properties: &armservicenetworking.SecurityPolicyProperties{
// PolicyType: to.Ptr(armservicenetworking.PolicyTypeWAF),
// ProvisioningState: to.Ptr(armservicenetworking.ProvisioningStateSucceeded),
// WafPolicy: &armservicenetworking.WafPolicy{
// ID: to.Ptr("/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.Networking/applicationGatewayWebApplicationFirewallPolicies/wp-0"),
// },
// },
// }
}
func (*SecurityPoliciesInterfaceClient) BeginDelete ¶
func (client *SecurityPoliciesInterfaceClient) BeginDelete(ctx context.Context, resourceGroupName string, trafficControllerName string, securityPolicyName string, options *SecurityPoliciesInterfaceClientBeginDeleteOptions) (*runtime.Poller[SecurityPoliciesInterfaceClientDeleteResponse], error)
BeginDelete - Delete a SecurityPolicy If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-05-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- trafficControllerName - traffic controller name for path
- securityPolicyName - SecurityPolicy
- options - SecurityPoliciesInterfaceClientBeginDeleteOptions contains the optional parameters for the SecurityPoliciesInterfaceClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7189fb57f69468c56df76f9a4d68dd9ff04ab100/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2024-05-01-preview/examples/SecurityPolicyDelete.json
package main
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicenetworking/armservicenetworking"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armservicenetworking.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewSecurityPoliciesInterfaceClient().BeginDelete(ctx, "rg1", "tc1", "sp1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
_, err = poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
}
func (*SecurityPoliciesInterfaceClient) Get ¶
func (client *SecurityPoliciesInterfaceClient) Get(ctx context.Context, resourceGroupName string, trafficControllerName string, securityPolicyName string, options *SecurityPoliciesInterfaceClientGetOptions) (SecurityPoliciesInterfaceClientGetResponse, error)
Get - Get a SecurityPolicy If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-05-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- trafficControllerName - traffic controller name for path
- securityPolicyName - SecurityPolicy
- options - SecurityPoliciesInterfaceClientGetOptions contains the optional parameters for the SecurityPoliciesInterfaceClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7189fb57f69468c56df76f9a4d68dd9ff04ab100/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2024-05-01-preview/examples/SecurityPolicyGet.json
package main
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicenetworking/armservicenetworking"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armservicenetworking.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewSecurityPoliciesInterfaceClient().Get(ctx, "rg1", "tc1", "sp1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.SecurityPolicy = armservicenetworking.SecurityPolicy{
// Name: to.Ptr("waf-0"),
// Type: to.Ptr("Microsoft.ServiceNetworking/trafficControllers/securityPolicies"),
// ID: to.Ptr("/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/sample-tc/securityPolicies/waf-0"),
// Location: to.Ptr("eastus"),
// Properties: &armservicenetworking.SecurityPolicyProperties{
// PolicyType: to.Ptr(armservicenetworking.PolicyTypeWAF),
// ProvisioningState: to.Ptr(armservicenetworking.ProvisioningStateSucceeded),
// WafPolicy: &armservicenetworking.WafPolicy{
// ID: to.Ptr("/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.Networking/applicationGatewayWebApplicationFirewallPolicies/wp-0"),
// },
// },
// }
}
func (*SecurityPoliciesInterfaceClient) NewListByTrafficControllerPager ¶
func (client *SecurityPoliciesInterfaceClient) NewListByTrafficControllerPager(resourceGroupName string, trafficControllerName string, options *SecurityPoliciesInterfaceClientListByTrafficControllerOptions) *runtime.Pager[SecurityPoliciesInterfaceClientListByTrafficControllerResponse]
NewListByTrafficControllerPager - List SecurityPolicy resources by TrafficController
Generated from API version 2024-05-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- trafficControllerName - traffic controller name for path
- options - SecurityPoliciesInterfaceClientListByTrafficControllerOptions contains the optional parameters for the SecurityPoliciesInterfaceClient.NewListByTrafficControllerPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7189fb57f69468c56df76f9a4d68dd9ff04ab100/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2024-05-01-preview/examples/SecurityPoliciesGetList.json
package main
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicenetworking/armservicenetworking"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armservicenetworking.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewSecurityPoliciesInterfaceClient().NewListByTrafficControllerPager("rg1", "tc1", nil)
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.SecurityPolicyListResult = armservicenetworking.SecurityPolicyListResult{
// Value: []*armservicenetworking.SecurityPolicy{
// {
// Name: to.Ptr("waf-0"),
// Type: to.Ptr("Microsoft.ServiceNetworking/trafficControllers/securityPolicies"),
// ID: to.Ptr("/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/sample-tc/securityPolicies/waf-0"),
// Location: to.Ptr("eastus"),
// Properties: &armservicenetworking.SecurityPolicyProperties{
// PolicyType: to.Ptr(armservicenetworking.PolicyTypeWAF),
// ProvisioningState: to.Ptr(armservicenetworking.ProvisioningStateSucceeded),
// WafPolicy: &armservicenetworking.WafPolicy{
// ID: to.Ptr("/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.Networking/applicationGatewayWebApplicationFirewallPolicies/wp-0"),
// },
// },
// }},
// }
}
}
func (*SecurityPoliciesInterfaceClient) Update ¶
func (client *SecurityPoliciesInterfaceClient) Update(ctx context.Context, resourceGroupName string, trafficControllerName string, securityPolicyName string, properties SecurityPolicyUpdate, options *SecurityPoliciesInterfaceClientUpdateOptions) (SecurityPoliciesInterfaceClientUpdateResponse, error)
Update - Update a SecurityPolicy If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-05-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- trafficControllerName - traffic controller name for path
- securityPolicyName - SecurityPolicy
- properties - The resource properties to be updated.
- options - SecurityPoliciesInterfaceClientUpdateOptions contains the optional parameters for the SecurityPoliciesInterfaceClient.Update method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7189fb57f69468c56df76f9a4d68dd9ff04ab100/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2024-05-01-preview/examples/SecurityPolicyPatch.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/servicenetworking/armservicenetworking"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armservicenetworking.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewSecurityPoliciesInterfaceClient().Update(ctx, "rg1", "tc1", "sp1", armservicenetworking.SecurityPolicyUpdate{
Properties: &armservicenetworking.SecurityPolicyUpdateProperties{
WafPolicy: &armservicenetworking.WafPolicyUpdate{
ID: to.Ptr("/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.Networking/applicationGatewayWebApplicationFirewallPolicies/wp-0"),
},
},
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.SecurityPolicy = armservicenetworking.SecurityPolicy{
// Name: to.Ptr("waf-0"),
// Type: to.Ptr("Microsoft.ServiceNetworking/trafficControllers/securityPolicies"),
// ID: to.Ptr("/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/sample-tc/securityPolicies/waf-0"),
// Location: to.Ptr("eastus"),
// Properties: &armservicenetworking.SecurityPolicyProperties{
// PolicyType: to.Ptr(armservicenetworking.PolicyTypeWAF),
// ProvisioningState: to.Ptr(armservicenetworking.ProvisioningStateSucceeded),
// WafPolicy: &armservicenetworking.WafPolicy{
// ID: to.Ptr("/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.Networking/applicationGatewayWebApplicationFirewallPolicies/wp-0"),
// },
// },
// }
}
type SecurityPoliciesInterfaceClientBeginCreateOrUpdateOptions ¶
type SecurityPoliciesInterfaceClientBeginCreateOrUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
SecurityPoliciesInterfaceClientBeginCreateOrUpdateOptions contains the optional parameters for the SecurityPoliciesInterfaceClient.BeginCreateOrUpdate method.
type SecurityPoliciesInterfaceClientBeginDeleteOptions ¶
type SecurityPoliciesInterfaceClientBeginDeleteOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
SecurityPoliciesInterfaceClientBeginDeleteOptions contains the optional parameters for the SecurityPoliciesInterfaceClient.BeginDelete method.
type SecurityPoliciesInterfaceClientCreateOrUpdateResponse ¶
type SecurityPoliciesInterfaceClientCreateOrUpdateResponse struct {
// SecurityPolicy Subresource of Traffic Controller.
SecurityPolicy
}
SecurityPoliciesInterfaceClientCreateOrUpdateResponse contains the response from method SecurityPoliciesInterfaceClient.BeginCreateOrUpdate.
type SecurityPoliciesInterfaceClientDeleteResponse ¶
type SecurityPoliciesInterfaceClientDeleteResponse struct {
}
SecurityPoliciesInterfaceClientDeleteResponse contains the response from method SecurityPoliciesInterfaceClient.BeginDelete.
type SecurityPoliciesInterfaceClientGetOptions ¶
type SecurityPoliciesInterfaceClientGetOptions struct {
}
SecurityPoliciesInterfaceClientGetOptions contains the optional parameters for the SecurityPoliciesInterfaceClient.Get method.
type SecurityPoliciesInterfaceClientGetResponse ¶
type SecurityPoliciesInterfaceClientGetResponse struct {
// SecurityPolicy Subresource of Traffic Controller.
SecurityPolicy
}
SecurityPoliciesInterfaceClientGetResponse contains the response from method SecurityPoliciesInterfaceClient.Get.
type SecurityPoliciesInterfaceClientListByTrafficControllerOptions ¶
type SecurityPoliciesInterfaceClientListByTrafficControllerOptions struct {
}
SecurityPoliciesInterfaceClientListByTrafficControllerOptions contains the optional parameters for the SecurityPoliciesInterfaceClient.NewListByTrafficControllerPager method.
type SecurityPoliciesInterfaceClientListByTrafficControllerResponse ¶
type SecurityPoliciesInterfaceClientListByTrafficControllerResponse struct {
// The response of a SecurityPolicy list operation.
SecurityPolicyListResult
}
SecurityPoliciesInterfaceClientListByTrafficControllerResponse contains the response from method SecurityPoliciesInterfaceClient.NewListByTrafficControllerPager.
type SecurityPoliciesInterfaceClientUpdateOptions ¶
type SecurityPoliciesInterfaceClientUpdateOptions struct {
}
SecurityPoliciesInterfaceClientUpdateOptions contains the optional parameters for the SecurityPoliciesInterfaceClient.Update method.
type SecurityPoliciesInterfaceClientUpdateResponse ¶
type SecurityPoliciesInterfaceClientUpdateResponse struct {
// SecurityPolicy Subresource of Traffic Controller.
SecurityPolicy
}
SecurityPoliciesInterfaceClientUpdateResponse contains the response from method SecurityPoliciesInterfaceClient.Update.
type SecurityPolicy ¶
type SecurityPolicy struct {
// REQUIRED; The geo-location where the resource lives
Location *string
// The resource-specific properties for this resource.
Properties *SecurityPolicyProperties
// Resource tags.
Tags map[string]*string
// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
ID *string
// READ-ONLY; The name of the resource
Name *string
// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
SecurityPolicy Subresource of Traffic Controller.
func (SecurityPolicy) MarshalJSON ¶
func (s SecurityPolicy) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SecurityPolicy.
func (*SecurityPolicy) UnmarshalJSON ¶
func (s *SecurityPolicy) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SecurityPolicy.
type SecurityPolicyConfigurations ¶
type SecurityPolicyConfigurations struct {
// Contains reference to a WAF-type security policy that is applied at the Traffic Controller level.
WafSecurityPolicy *WafSecurityPolicy
}
SecurityPolicyConfigurations Subresource of Traffic Controller.
func (SecurityPolicyConfigurations) MarshalJSON ¶
func (s SecurityPolicyConfigurations) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SecurityPolicyConfigurations.
func (*SecurityPolicyConfigurations) UnmarshalJSON ¶
func (s *SecurityPolicyConfigurations) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SecurityPolicyConfigurations.
type SecurityPolicyConfigurationsUpdate ¶
type SecurityPolicyConfigurationsUpdate struct {
// Contains reference to a WAF-type security policy that is applied at the Traffic Controller level.
WafSecurityPolicy *WafSecurityPolicyUpdate
}
SecurityPolicyConfigurationsUpdate - SecurityPolicyConfigurations Subresource of Traffic Controller.
func (SecurityPolicyConfigurationsUpdate) MarshalJSON ¶
func (s SecurityPolicyConfigurationsUpdate) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SecurityPolicyConfigurationsUpdate.
func (*SecurityPolicyConfigurationsUpdate) UnmarshalJSON ¶
func (s *SecurityPolicyConfigurationsUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SecurityPolicyConfigurationsUpdate.
type SecurityPolicyListResult ¶
type SecurityPolicyListResult struct {
// REQUIRED; The SecurityPolicy items on this page
Value []*SecurityPolicy
// The link to the next page of items
NextLink *string
}
SecurityPolicyListResult - The response of a SecurityPolicy list operation.
func (SecurityPolicyListResult) MarshalJSON ¶
func (s SecurityPolicyListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SecurityPolicyListResult.
func (*SecurityPolicyListResult) UnmarshalJSON ¶
func (s *SecurityPolicyListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SecurityPolicyListResult.
type SecurityPolicyProperties ¶
type SecurityPolicyProperties struct {
// Web Application Firewall Policy of the Traffic Controller Security Policy
WafPolicy *WafPolicy
// READ-ONLY; Type of the Traffic Controller Security Policy
PolicyType *PolicyType
// READ-ONLY; Provisioning State of Traffic Controller SecurityPolicy Resource
ProvisioningState *ProvisioningState
}
SecurityPolicyProperties - SecurityPolicy Properties.
func (SecurityPolicyProperties) MarshalJSON ¶
func (s SecurityPolicyProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SecurityPolicyProperties.
func (*SecurityPolicyProperties) UnmarshalJSON ¶
func (s *SecurityPolicyProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SecurityPolicyProperties.
type SecurityPolicyUpdate ¶
type SecurityPolicyUpdate struct {
// The resource-specific properties for this resource.
Properties *SecurityPolicyUpdateProperties
// Resource tags.
Tags map[string]*string
}
SecurityPolicyUpdate - The type used for update operations of the SecurityPolicy.
func (SecurityPolicyUpdate) MarshalJSON ¶
func (s SecurityPolicyUpdate) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SecurityPolicyUpdate.
func (*SecurityPolicyUpdate) UnmarshalJSON ¶
func (s *SecurityPolicyUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SecurityPolicyUpdate.
type SecurityPolicyUpdateProperties ¶
type SecurityPolicyUpdateProperties struct {
// Web Application Firewall Policy of the Traffic Controller Security Policy
WafPolicy *WafPolicyUpdate
}
SecurityPolicyUpdateProperties - The updatable properties of the SecurityPolicy.
func (SecurityPolicyUpdateProperties) MarshalJSON ¶
func (s SecurityPolicyUpdateProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SecurityPolicyUpdateProperties.
func (*SecurityPolicyUpdateProperties) UnmarshalJSON ¶
func (s *SecurityPolicyUpdateProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SecurityPolicyUpdateProperties.
type SystemData ¶
type SystemData struct {
// The timestamp of resource creation (UTC).
CreatedAt *time.Time
// The identity that created the resource.
CreatedBy *string
// The type of identity that created the resource.
CreatedByType *CreatedByType
// The timestamp of resource last modification (UTC)
LastModifiedAt *time.Time
// The identity that last modified the resource.
LastModifiedBy *string
// The type of identity that last modified the resource.
LastModifiedByType *CreatedByType
}
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.
type TrafficController ¶
type TrafficController struct {
// REQUIRED; The geo-location where the resource lives
Location *string
// The resource-specific properties for this resource.
Properties *TrafficControllerProperties
// Resource tags.
Tags map[string]*string
// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
ID *string
// READ-ONLY; The name of the resource
Name *string
// READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
TrafficController - Concrete tracked resource types can be created by aliasing this type using a specific property type.
func (TrafficController) MarshalJSON ¶
func (t TrafficController) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TrafficController.
func (*TrafficController) UnmarshalJSON ¶
func (t *TrafficController) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TrafficController.
type TrafficControllerInterfaceClient ¶
type TrafficControllerInterfaceClient struct {
// contains filtered or unexported fields
}
TrafficControllerInterfaceClient contains the methods for the TrafficControllerInterface group. Don't use this type directly, use NewTrafficControllerInterfaceClient() instead.
func NewTrafficControllerInterfaceClient ¶
func NewTrafficControllerInterfaceClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*TrafficControllerInterfaceClient, error)
NewTrafficControllerInterfaceClient creates a new instance of TrafficControllerInterfaceClient with the specified values.
- subscriptionID - The ID of the target subscription.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*TrafficControllerInterfaceClient) BeginCreateOrUpdate ¶
func (client *TrafficControllerInterfaceClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, trafficControllerName string, resource TrafficController, options *TrafficControllerInterfaceClientBeginCreateOrUpdateOptions) (*runtime.Poller[TrafficControllerInterfaceClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Create a TrafficController If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-05-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- trafficControllerName - traffic controller name for path
- resource - Resource create parameters.
- options - TrafficControllerInterfaceClientBeginCreateOrUpdateOptions contains the optional parameters for the TrafficControllerInterfaceClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7189fb57f69468c56df76f9a4d68dd9ff04ab100/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2024-05-01-preview/examples/TrafficControllerPut.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/servicenetworking/armservicenetworking"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armservicenetworking.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewTrafficControllerInterfaceClient().BeginCreateOrUpdate(ctx, "rg1", "tc1", armservicenetworking.TrafficController{
Location: to.Ptr("NorthCentralUS"),
Tags: map[string]*string{
"key1": to.Ptr("value1"),
},
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.TrafficController = armservicenetworking.TrafficController{
// Name: to.Ptr("tc1"),
// Type: to.Ptr("Microsoft.ServiceNetworking/trafficControllers"),
// ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1"),
// Location: to.Ptr("NorthCentralUS"),
// Tags: map[string]*string{
// "key1": to.Ptr("value1"),
// },
// Properties: &armservicenetworking.TrafficControllerProperties{
// Associations: []*armservicenetworking.ResourceID{
// {
// ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/association/as1"),
// }},
// ConfigurationEndpoints: []*string{
// to.Ptr("abc.trafficcontroller.azure.net")},
// Frontends: []*armservicenetworking.ResourceID{
// {
// ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/frontends/fe1"),
// }},
// ProvisioningState: to.Ptr(armservicenetworking.ProvisioningStateSucceeded),
// SecurityPolicies: []*armservicenetworking.ResourceID{
// {
// ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/securityPolicies/sp1"),
// }},
// SecurityPolicyConfigurations: &armservicenetworking.SecurityPolicyConfigurations{
// WafSecurityPolicy: &armservicenetworking.WafSecurityPolicy{
// ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/securityPolicies/waf-0"),
// },
// },
// },
// }
}
func (*TrafficControllerInterfaceClient) BeginDelete ¶
func (client *TrafficControllerInterfaceClient) BeginDelete(ctx context.Context, resourceGroupName string, trafficControllerName string, options *TrafficControllerInterfaceClientBeginDeleteOptions) (*runtime.Poller[TrafficControllerInterfaceClientDeleteResponse], error)
BeginDelete - Delete a TrafficController If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-05-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- trafficControllerName - traffic controller name for path
- options - TrafficControllerInterfaceClientBeginDeleteOptions contains the optional parameters for the TrafficControllerInterfaceClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7189fb57f69468c56df76f9a4d68dd9ff04ab100/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2024-05-01-preview/examples/TrafficControllerDelete.json
package main
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicenetworking/armservicenetworking"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armservicenetworking.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewTrafficControllerInterfaceClient().BeginDelete(ctx, "rg1", "tc1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
_, err = poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
}
func (*TrafficControllerInterfaceClient) Get ¶
func (client *TrafficControllerInterfaceClient) Get(ctx context.Context, resourceGroupName string, trafficControllerName string, options *TrafficControllerInterfaceClientGetOptions) (TrafficControllerInterfaceClientGetResponse, error)
Get - Get a TrafficController If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-05-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- trafficControllerName - traffic controller name for path
- options - TrafficControllerInterfaceClientGetOptions contains the optional parameters for the TrafficControllerInterfaceClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7189fb57f69468c56df76f9a4d68dd9ff04ab100/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2024-05-01-preview/examples/TrafficControllerGet.json
package main
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicenetworking/armservicenetworking"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armservicenetworking.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewTrafficControllerInterfaceClient().Get(ctx, "rg1", "tc1", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.TrafficController = armservicenetworking.TrafficController{
// Name: to.Ptr("tc1"),
// Type: to.Ptr("Microsoft.ServiceNetworking/trafficControllers"),
// ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1"),
// Location: to.Ptr("NorthCentralUS"),
// Tags: map[string]*string{
// "key1": to.Ptr("value1"),
// },
// Properties: &armservicenetworking.TrafficControllerProperties{
// Associations: []*armservicenetworking.ResourceID{
// {
// ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/association/as1"),
// }},
// ConfigurationEndpoints: []*string{
// to.Ptr("abc.trafficcontroller.azure.net")},
// Frontends: []*armservicenetworking.ResourceID{
// {
// ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/frontends/fe1"),
// }},
// ProvisioningState: to.Ptr(armservicenetworking.ProvisioningStateSucceeded),
// },
// }
}
func (*TrafficControllerInterfaceClient) NewListByResourceGroupPager ¶
func (client *TrafficControllerInterfaceClient) NewListByResourceGroupPager(resourceGroupName string, options *TrafficControllerInterfaceClientListByResourceGroupOptions) *runtime.Pager[TrafficControllerInterfaceClientListByResourceGroupResponse]
NewListByResourceGroupPager - List TrafficController resources by resource group
Generated from API version 2024-05-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- options - TrafficControllerInterfaceClientListByResourceGroupOptions contains the optional parameters for the TrafficControllerInterfaceClient.NewListByResourceGroupPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7189fb57f69468c56df76f9a4d68dd9ff04ab100/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2024-05-01-preview/examples/TrafficControllersGet.json
package main
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicenetworking/armservicenetworking"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armservicenetworking.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewTrafficControllerInterfaceClient().NewListByResourceGroupPager("rg1", nil)
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.TrafficControllerListResult = armservicenetworking.TrafficControllerListResult{
// Value: []*armservicenetworking.TrafficController{
// {
// Name: to.Ptr("tc1"),
// Type: to.Ptr("Microsoft.ServiceNetworking/trafficControllers"),
// ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1"),
// Location: to.Ptr("NorthCentralUS"),
// Tags: map[string]*string{
// "key1": to.Ptr("value1"),
// },
// Properties: &armservicenetworking.TrafficControllerProperties{
// Associations: []*armservicenetworking.ResourceID{
// {
// ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/association/as1"),
// }},
// ConfigurationEndpoints: []*string{
// to.Ptr("abc.trafficcontroller.azure.net")},
// Frontends: []*armservicenetworking.ResourceID{
// {
// ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/frontends/fe1"),
// }},
// ProvisioningState: to.Ptr(armservicenetworking.ProvisioningStateSucceeded),
// SecurityPolicies: []*armservicenetworking.ResourceID{
// {
// ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/securityPolicies/sp1"),
// }},
// SecurityPolicyConfigurations: &armservicenetworking.SecurityPolicyConfigurations{
// WafSecurityPolicy: &armservicenetworking.WafSecurityPolicy{
// ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/securityPolicies/waf-0"),
// },
// },
// },
// }},
// }
}
}
func (*TrafficControllerInterfaceClient) NewListBySubscriptionPager ¶
func (client *TrafficControllerInterfaceClient) NewListBySubscriptionPager(options *TrafficControllerInterfaceClientListBySubscriptionOptions) *runtime.Pager[TrafficControllerInterfaceClientListBySubscriptionResponse]
NewListBySubscriptionPager - List TrafficController resources by subscription ID
Generated from API version 2024-05-01-preview
- options - TrafficControllerInterfaceClientListBySubscriptionOptions contains the optional parameters for the TrafficControllerInterfaceClient.NewListBySubscriptionPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7189fb57f69468c56df76f9a4d68dd9ff04ab100/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2024-05-01-preview/examples/TrafficControllersGetList.json
package main
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicenetworking/armservicenetworking"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armservicenetworking.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewTrafficControllerInterfaceClient().NewListBySubscriptionPager(nil)
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.TrafficControllerListResult = armservicenetworking.TrafficControllerListResult{
// Value: []*armservicenetworking.TrafficController{
// {
// Name: to.Ptr("tc1"),
// Type: to.Ptr("Microsoft.ServiceNetworking/trafficControllers"),
// ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1"),
// Location: to.Ptr("NorthCentralUS"),
// Tags: map[string]*string{
// "key1": to.Ptr("value1"),
// },
// Properties: &armservicenetworking.TrafficControllerProperties{
// Associations: []*armservicenetworking.ResourceID{
// {
// ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/association/as1"),
// }},
// ConfigurationEndpoints: []*string{
// to.Ptr("abc.trafficcontroller.azure.net")},
// Frontends: []*armservicenetworking.ResourceID{
// {
// ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/frontends/fe1"),
// }},
// ProvisioningState: to.Ptr(armservicenetworking.ProvisioningStateSucceeded),
// SecurityPolicies: []*armservicenetworking.ResourceID{
// {
// ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/securityPolicies/sp1"),
// }},
// SecurityPolicyConfigurations: &armservicenetworking.SecurityPolicyConfigurations{
// WafSecurityPolicy: &armservicenetworking.WafSecurityPolicy{
// ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/securityPolicies/waf-0"),
// },
// },
// },
// }},
// }
}
}
func (*TrafficControllerInterfaceClient) Update ¶
func (client *TrafficControllerInterfaceClient) Update(ctx context.Context, resourceGroupName string, trafficControllerName string, properties TrafficControllerUpdate, options *TrafficControllerInterfaceClientUpdateOptions) (TrafficControllerInterfaceClientUpdateResponse, error)
Update - Update a TrafficController If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2024-05-01-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- trafficControllerName - traffic controller name for path
- properties - The resource properties to be updated.
- options - TrafficControllerInterfaceClientUpdateOptions contains the optional parameters for the TrafficControllerInterfaceClient.Update method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7189fb57f69468c56df76f9a4d68dd9ff04ab100/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2024-05-01-preview/examples/TrafficControllerPatch.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/servicenetworking/armservicenetworking"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armservicenetworking.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewTrafficControllerInterfaceClient().Update(ctx, "rg1", "tc1", armservicenetworking.TrafficControllerUpdate{
Tags: map[string]*string{
"key1": to.Ptr("value1"),
},
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.TrafficController = armservicenetworking.TrafficController{
// Name: to.Ptr("tc1"),
// Type: to.Ptr("Microsoft.ServiceNetworking/trafficControllers"),
// ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1"),
// Location: to.Ptr("NorthCentralUS"),
// Tags: map[string]*string{
// "key1": to.Ptr("value1"),
// },
// Properties: &armservicenetworking.TrafficControllerProperties{
// Associations: []*armservicenetworking.ResourceID{
// {
// ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/association/as1"),
// }},
// ConfigurationEndpoints: []*string{
// to.Ptr("abc.trafficcontroller.azure.net")},
// Frontends: []*armservicenetworking.ResourceID{
// {
// ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/frontends/fe1"),
// }},
// ProvisioningState: to.Ptr(armservicenetworking.ProvisioningStateSucceeded),
// SecurityPolicies: []*armservicenetworking.ResourceID{
// {
// ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/securityPolicies/sp1"),
// }},
// SecurityPolicyConfigurations: &armservicenetworking.SecurityPolicyConfigurations{
// WafSecurityPolicy: &armservicenetworking.WafSecurityPolicy{
// ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ServiceNetworking/trafficControllers/tc1/securityPolicies/waf-0"),
// },
// },
// },
// }
}
type TrafficControllerInterfaceClientBeginCreateOrUpdateOptions ¶
type TrafficControllerInterfaceClientBeginCreateOrUpdateOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
TrafficControllerInterfaceClientBeginCreateOrUpdateOptions contains the optional parameters for the TrafficControllerInterfaceClient.BeginCreateOrUpdate method.
type TrafficControllerInterfaceClientBeginDeleteOptions ¶
type TrafficControllerInterfaceClientBeginDeleteOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
TrafficControllerInterfaceClientBeginDeleteOptions contains the optional parameters for the TrafficControllerInterfaceClient.BeginDelete method.
type TrafficControllerInterfaceClientCreateOrUpdateResponse ¶
type TrafficControllerInterfaceClientCreateOrUpdateResponse struct {
// Concrete tracked resource types can be created by aliasing this type using a specific property type.
TrafficController
}
TrafficControllerInterfaceClientCreateOrUpdateResponse contains the response from method TrafficControllerInterfaceClient.BeginCreateOrUpdate.
type TrafficControllerInterfaceClientDeleteResponse ¶
type TrafficControllerInterfaceClientDeleteResponse struct {
}
TrafficControllerInterfaceClientDeleteResponse contains the response from method TrafficControllerInterfaceClient.BeginDelete.
type TrafficControllerInterfaceClientGetOptions ¶
type TrafficControllerInterfaceClientGetOptions struct {
}
TrafficControllerInterfaceClientGetOptions contains the optional parameters for the TrafficControllerInterfaceClient.Get method.
type TrafficControllerInterfaceClientGetResponse ¶
type TrafficControllerInterfaceClientGetResponse struct {
// Concrete tracked resource types can be created by aliasing this type using a specific property type.
TrafficController
}
TrafficControllerInterfaceClientGetResponse contains the response from method TrafficControllerInterfaceClient.Get.
type TrafficControllerInterfaceClientListByResourceGroupOptions ¶
type TrafficControllerInterfaceClientListByResourceGroupOptions struct {
}
TrafficControllerInterfaceClientListByResourceGroupOptions contains the optional parameters for the TrafficControllerInterfaceClient.NewListByResourceGroupPager method.
type TrafficControllerInterfaceClientListByResourceGroupResponse ¶
type TrafficControllerInterfaceClientListByResourceGroupResponse struct {
// The response of a TrafficController list operation.
TrafficControllerListResult
}
TrafficControllerInterfaceClientListByResourceGroupResponse contains the response from method TrafficControllerInterfaceClient.NewListByResourceGroupPager.
type TrafficControllerInterfaceClientListBySubscriptionOptions ¶
type TrafficControllerInterfaceClientListBySubscriptionOptions struct {
}
TrafficControllerInterfaceClientListBySubscriptionOptions contains the optional parameters for the TrafficControllerInterfaceClient.NewListBySubscriptionPager method.
type TrafficControllerInterfaceClientListBySubscriptionResponse ¶
type TrafficControllerInterfaceClientListBySubscriptionResponse struct {
// The response of a TrafficController list operation.
TrafficControllerListResult
}
TrafficControllerInterfaceClientListBySubscriptionResponse contains the response from method TrafficControllerInterfaceClient.NewListBySubscriptionPager.
type TrafficControllerInterfaceClientUpdateOptions ¶
type TrafficControllerInterfaceClientUpdateOptions struct {
}
TrafficControllerInterfaceClientUpdateOptions contains the optional parameters for the TrafficControllerInterfaceClient.Update method.
type TrafficControllerInterfaceClientUpdateResponse ¶
type TrafficControllerInterfaceClientUpdateResponse struct {
// Concrete tracked resource types can be created by aliasing this type using a specific property type.
TrafficController
}
TrafficControllerInterfaceClientUpdateResponse contains the response from method TrafficControllerInterfaceClient.Update.
type TrafficControllerListResult ¶
type TrafficControllerListResult struct {
// REQUIRED; The TrafficController items on this page
Value []*TrafficController
// The link to the next page of items
NextLink *string
}
TrafficControllerListResult - The response of a TrafficController list operation.
func (TrafficControllerListResult) MarshalJSON ¶
func (t TrafficControllerListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TrafficControllerListResult.
func (*TrafficControllerListResult) UnmarshalJSON ¶
func (t *TrafficControllerListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TrafficControllerListResult.
type TrafficControllerProperties ¶
type TrafficControllerProperties struct {
// Security Policy Configuration
SecurityPolicyConfigurations *SecurityPolicyConfigurations
// READ-ONLY; Associations References List
Associations []*ResourceID
// READ-ONLY; Configuration Endpoints.
ConfigurationEndpoints []*string
// READ-ONLY; Frontends References List
Frontends []*ResourceID
// READ-ONLY; The status of the last operation.
ProvisioningState *ProvisioningState
// READ-ONLY; Security Policies References List
SecurityPolicies []*ResourceID
}
TrafficControllerProperties - Traffic Controller Properties.
func (TrafficControllerProperties) MarshalJSON ¶
func (t TrafficControllerProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TrafficControllerProperties.
func (*TrafficControllerProperties) UnmarshalJSON ¶
func (t *TrafficControllerProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TrafficControllerProperties.
type TrafficControllerUpdate ¶
type TrafficControllerUpdate struct {
// The resource-specific properties for this resource.
Properties *TrafficControllerUpdateProperties
// Resource tags.
Tags map[string]*string
}
TrafficControllerUpdate - The type used for update operations of the TrafficController.
func (TrafficControllerUpdate) MarshalJSON ¶
func (t TrafficControllerUpdate) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TrafficControllerUpdate.
func (*TrafficControllerUpdate) UnmarshalJSON ¶
func (t *TrafficControllerUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TrafficControllerUpdate.
type TrafficControllerUpdateProperties ¶
type TrafficControllerUpdateProperties struct {
// Security Policy Configuration
SecurityPolicyConfigurations *SecurityPolicyConfigurationsUpdate
}
TrafficControllerUpdateProperties - The updatable properties of the TrafficController.
func (TrafficControllerUpdateProperties) MarshalJSON ¶
func (t TrafficControllerUpdateProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TrafficControllerUpdateProperties.
func (*TrafficControllerUpdateProperties) UnmarshalJSON ¶
func (t *TrafficControllerUpdateProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TrafficControllerUpdateProperties.
type WafPolicy ¶
type WafPolicy struct {
// REQUIRED; Resource ID of the WAF
ID *string
}
WafPolicy - Web Application Firewall Policy
func (WafPolicy) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type WafPolicy.
func (*WafPolicy) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type WafPolicy.
type WafPolicyUpdate ¶
type WafPolicyUpdate struct {
// Resource ID of the WAF
ID *string
}
WafPolicyUpdate - Web Application Firewall Policy
func (WafPolicyUpdate) MarshalJSON ¶
func (w WafPolicyUpdate) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type WafPolicyUpdate.
func (*WafPolicyUpdate) UnmarshalJSON ¶
func (w *WafPolicyUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type WafPolicyUpdate.
type WafSecurityPolicy ¶
type WafSecurityPolicy struct {
// REQUIRED; Resource ID of the Waf Security Policy
ID *string
}
WafSecurityPolicy - Web Application Firewall Security Policy
func (WafSecurityPolicy) MarshalJSON ¶
func (w WafSecurityPolicy) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type WafSecurityPolicy.
func (*WafSecurityPolicy) UnmarshalJSON ¶
func (w *WafSecurityPolicy) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type WafSecurityPolicy.
type WafSecurityPolicyUpdate ¶
type WafSecurityPolicyUpdate struct {
// Resource ID of the Waf Security Policy
ID *string
}
WafSecurityPolicyUpdate - Web Application Firewall Security Policy
func (WafSecurityPolicyUpdate) MarshalJSON ¶
func (w WafSecurityPolicyUpdate) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type WafSecurityPolicyUpdate.
func (*WafSecurityPolicyUpdate) UnmarshalJSON ¶
func (w *WafSecurityPolicyUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type WafSecurityPolicyUpdate.