Documentation
¶
Index ¶
- type ActionType
- type Client
- type ClientFactory
- type ClientGetOptions
- type ClientGetResponse
- type CreatedByType
- type ManagementClient
- func (client *ManagementClient) BeginCreateOrUpdateServiceGroup(ctx context.Context, serviceGroupName string, ...) (*runtime.Poller[ManagementClientCreateOrUpdateServiceGroupResponse], error)
- func (client *ManagementClient) BeginDeleteServiceGroup(ctx context.Context, serviceGroupName string, ...) (*runtime.Poller[ManagementClientDeleteServiceGroupResponse], error)
- func (client *ManagementClient) BeginUpdateServiceGroup(ctx context.Context, serviceGroupName string, ...) (*runtime.Poller[ManagementClientUpdateServiceGroupResponse], error)
- type ManagementClientBeginCreateOrUpdateServiceGroupOptions
- type ManagementClientBeginDeleteServiceGroupOptions
- type ManagementClientBeginUpdateServiceGroupOptions
- type ManagementClientCreateOrUpdateServiceGroupResponse
- type ManagementClientDeleteServiceGroupResponse
- type ManagementClientUpdateServiceGroupResponse
- type Operation
- type OperationDisplay
- type OperationListResult
- type OperationsClient
- type OperationsClientListOptions
- type OperationsClientListResponse
- type Origin
- type ParentServiceGroupProperties
- type ProvisioningState
- type ServiceGroup
- type ServiceGroupAttributes
- type ServiceGroupProperties
- type SystemData
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionType ¶
type ActionType string
ActionType - Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
const ( // ActionTypeInternal - Actions are for internal-only APIs. ActionTypeInternal ActionType = "Internal" )
func PossibleActionTypeValues ¶
func PossibleActionTypeValues() []ActionType
PossibleActionTypeValues returns the possible values for the ActionType const type.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client contains the methods for the service. Don't use this type directly, use NewClient() instead.
Generated from API version 2026-08-01
func NewClient ¶
func NewClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*Client, error)
NewClient creates a new instance of Client with the specified values.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - Contains optional client configuration. Pass nil to accept the default values.
func (*Client) Get ¶
func (client *Client) Get(ctx context.Context, serviceGroupName string, options *ClientGetOptions) (ClientGetResponse, error)
Get - Get the details of the serviceGroup If the operation fails it returns an *azcore.ResponseError type.
- serviceGroupName - ServiceGroup Name.
- options - ClientGetOptions contains the optional parameters for the Client.Get method.
Example ¶
Generated from example definition: 2026-08-01/ServiceGroup_Get.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicegroups/armservicegroups"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armservicegroups.NewClientFactory(cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewClient().Get(ctx, "20000000-0001-0000-0000-000000000000", 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 = armservicegroups.ClientGetResponse{
// ServiceGroup: armservicegroups.ServiceGroup{
// Name: to.Ptr("20000000-0001-0000-0000-000000000000"),
// Type: to.Ptr("Microsoft.Management/serviceGroups"),
// ID: to.Ptr("/providers/Microsoft.Management/serviceGroups/20000000-0001-0000-0000-000000000000"),
// Properties: &armservicegroups.ServiceGroupProperties{
// Attributes: &armservicegroups.ServiceGroupAttributes{
// Criticality: to.Ptr[int32](2),
// },
// DisplayName: to.Ptr("ServiceGroup 1 Tenant 2"),
// Parent: &armservicegroups.ParentServiceGroupProperties{
// ResourceID: to.Ptr("/providers/Microsoft.Management/serviceGroups/RootGroup"),
// },
// ProvisioningState: to.Ptr(armservicegroups.ProvisioningStateSucceeded),
// },
// },
// }
}
Output:
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(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.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ClientFactory) NewClient ¶
func (c *ClientFactory) NewClient() *Client
NewClient creates a new instance of Client.
func (*ClientFactory) NewManagementClient ¶
func (c *ClientFactory) NewManagementClient() *ManagementClient
NewManagementClient creates a new instance of ManagementClient.
func (*ClientFactory) NewOperationsClient ¶
func (c *ClientFactory) NewOperationsClient() *OperationsClient
NewOperationsClient creates a new instance of OperationsClient.
type ClientGetOptions ¶
type ClientGetOptions struct {
}
ClientGetOptions contains the optional parameters for the Client.Get method.
type ClientGetResponse ¶
type ClientGetResponse struct {
// The serviceGroup details.
ServiceGroup
}
ClientGetResponse contains the response from method Client.Get.
type CreatedByType ¶
type CreatedByType string
CreatedByType - The kind of entity that created the resource.
const ( // CreatedByTypeApplication - The entity was created by an application. CreatedByTypeApplication CreatedByType = "Application" // CreatedByTypeKey - The entity was created by a key. CreatedByTypeKey CreatedByType = "Key" // CreatedByTypeManagedIdentity - The entity was created by a managed identity. CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity" // CreatedByTypeUser - The entity was created by a user. CreatedByTypeUser CreatedByType = "User" )
func PossibleCreatedByTypeValues ¶
func PossibleCreatedByTypeValues() []CreatedByType
PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type.
type ManagementClient ¶
type ManagementClient struct {
// contains filtered or unexported fields
}
ManagementClient contains the methods for the Management group. Don't use this type directly, use NewManagementClient() instead.
Generated from API version 2026-08-01
func NewManagementClient ¶
func NewManagementClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*ManagementClient, error)
NewManagementClient creates a new instance of ManagementClient with the specified values.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - Contains optional client configuration. Pass nil to accept the default values.
func (*ManagementClient) BeginCreateOrUpdateServiceGroup ¶
func (client *ManagementClient) BeginCreateOrUpdateServiceGroup(ctx context.Context, serviceGroupName string, createServiceGroupRequest ServiceGroup, options *ManagementClientBeginCreateOrUpdateServiceGroupOptions) (*runtime.Poller[ManagementClientCreateOrUpdateServiceGroupResponse], error)
BeginCreateOrUpdateServiceGroup - Create or Update a serviceGroup If the operation fails it returns an *azcore.ResponseError type.
- serviceGroupName - ServiceGroup Name.
- createServiceGroupRequest - ServiceGroup creation parameters
- options - ManagementClientBeginCreateOrUpdateServiceGroupOptions contains the optional parameters for the ManagementClient.BeginCreateOrUpdateServiceGroup method.
Example ¶
Generated from example definition: 2026-08-01/ServiceGroup_Put.json
package main
import (
"context"
"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/servicegroups/armservicegroups"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armservicegroups.NewClientFactory(cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewManagementClient().BeginCreateOrUpdateServiceGroup(ctx, "ServiceGroup1", armservicegroups.ServiceGroup{
Properties: &armservicegroups.ServiceGroupProperties{
Attributes: &armservicegroups.ServiceGroupAttributes{
Criticality: to.Ptr[int32](2),
},
DisplayName: to.Ptr("ServiceGroup 1 Name"),
Parent: &armservicegroups.ParentServiceGroupProperties{
ResourceID: to.Ptr("/providers/Microsoft.Management/serviceGroups/RootGroup"),
},
},
}, 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 poll 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 = armservicegroups.ManagementClientCreateOrUpdateServiceGroupResponse{
// ServiceGroup: armservicegroups.ServiceGroup{
// Name: to.Ptr("ServiceGroup1"),
// Type: to.Ptr("Microsoft.Management/serviceGroups"),
// ID: to.Ptr("/providers/Microsoft.Management/serviceGroups/ServiceGroup1"),
// Properties: &armservicegroups.ServiceGroupProperties{
// Attributes: &armservicegroups.ServiceGroupAttributes{
// Criticality: to.Ptr[int32](2),
// },
// DisplayName: to.Ptr("ServiceGroup 1 Name"),
// Parent: &armservicegroups.ParentServiceGroupProperties{
// ResourceID: to.Ptr("/providers/Microsoft.Management/serviceGroups/RootGroup"),
// },
// ProvisioningState: to.Ptr(armservicegroups.ProvisioningStateSucceeded),
// },
// },
// }
}
Output:
func (*ManagementClient) BeginDeleteServiceGroup ¶
func (client *ManagementClient) BeginDeleteServiceGroup(ctx context.Context, serviceGroupName string, options *ManagementClientBeginDeleteServiceGroupOptions) (*runtime.Poller[ManagementClientDeleteServiceGroupResponse], error)
BeginDeleteServiceGroup - Delete a ServiceGroup If the operation fails it returns an *azcore.ResponseError type.
- serviceGroupName - ServiceGroup Name.
- options - ManagementClientBeginDeleteServiceGroupOptions contains the optional parameters for the ManagementClient.BeginDeleteServiceGroup method.
Example ¶
Generated from example definition: 2026-08-01/ServiceGroup_Delete.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicegroups/armservicegroups"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armservicegroups.NewClientFactory(cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewManagementClient().BeginDeleteServiceGroup(ctx, "20000000-0001-0000-0000-000000000000", 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 poll the result: %v", err)
}
}
Output:
func (*ManagementClient) BeginUpdateServiceGroup ¶
func (client *ManagementClient) BeginUpdateServiceGroup(ctx context.Context, serviceGroupName string, updateServiceGroupRequest ServiceGroup, options *ManagementClientBeginUpdateServiceGroupOptions) (*runtime.Poller[ManagementClientUpdateServiceGroupResponse], error)
BeginUpdateServiceGroup - Update a serviceGroup If the operation fails it returns an *azcore.ResponseError type.
- serviceGroupName - ServiceGroup Name.
- updateServiceGroupRequest - ServiceGroup update parameters
- options - ManagementClientBeginUpdateServiceGroupOptions contains the optional parameters for the ManagementClient.BeginUpdateServiceGroup method.
Example ¶
Generated from example definition: 2026-08-01/ServiceGroup_Patch.json
package main
import (
"context"
"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/servicegroups/armservicegroups"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armservicegroups.NewClientFactory(cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewManagementClient().BeginUpdateServiceGroup(ctx, "ServiceGroup1", armservicegroups.ServiceGroup{
Properties: &armservicegroups.ServiceGroupProperties{
Attributes: &armservicegroups.ServiceGroupAttributes{
Criticality: to.Ptr[int32](2),
},
DisplayName: to.Ptr("ServiceGroup 1 Name"),
},
Tags: map[string]*string{
"tag1": to.Ptr("value1"),
"tag2": to.Ptr("value2"),
},
}, 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 poll 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 = armservicegroups.ManagementClientUpdateServiceGroupResponse{
// ServiceGroup: armservicegroups.ServiceGroup{
// Name: to.Ptr("ServiceGroup1"),
// Type: to.Ptr("Microsoft.Management/serviceGroups"),
// ID: to.Ptr("/providers/Microsoft.Management/serviceGroups/ServiceGroup1"),
// Kind: to.Ptr("App"),
// Properties: &armservicegroups.ServiceGroupProperties{
// Attributes: &armservicegroups.ServiceGroupAttributes{
// Criticality: to.Ptr[int32](2),
// },
// DisplayName: to.Ptr("ServiceGroup 1 Name"),
// Parent: &armservicegroups.ParentServiceGroupProperties{
// ResourceID: to.Ptr("/providers/Microsoft.Management/serviceGroups/RootGroup"),
// },
// ProvisioningState: to.Ptr(armservicegroups.ProvisioningStateSucceeded),
// },
// Tags: map[string]*string{
// "tag1": to.Ptr("value1"),
// "tag2": to.Ptr("value2"),
// },
// },
// }
}
Output:
type ManagementClientBeginCreateOrUpdateServiceGroupOptions ¶
type ManagementClientBeginCreateOrUpdateServiceGroupOptions struct {
// Resumes the long-running operation from the provided token.
ResumeToken string
}
ManagementClientBeginCreateOrUpdateServiceGroupOptions contains the optional parameters for the ManagementClient.BeginCreateOrUpdateServiceGroup method.
type ManagementClientBeginDeleteServiceGroupOptions ¶
type ManagementClientBeginDeleteServiceGroupOptions struct {
// Resumes the long-running operation from the provided token.
ResumeToken string
}
ManagementClientBeginDeleteServiceGroupOptions contains the optional parameters for the ManagementClient.BeginDeleteServiceGroup method.
type ManagementClientBeginUpdateServiceGroupOptions ¶
type ManagementClientBeginUpdateServiceGroupOptions struct {
// Resumes the long-running operation from the provided token.
ResumeToken string
}
ManagementClientBeginUpdateServiceGroupOptions contains the optional parameters for the ManagementClient.BeginUpdateServiceGroup method.
type ManagementClientCreateOrUpdateServiceGroupResponse ¶
type ManagementClientCreateOrUpdateServiceGroupResponse struct {
// The serviceGroup details.
ServiceGroup
}
ManagementClientCreateOrUpdateServiceGroupResponse contains the response from method ManagementClient.BeginCreateOrUpdateServiceGroup.
type ManagementClientDeleteServiceGroupResponse ¶
type ManagementClientDeleteServiceGroupResponse struct {
}
ManagementClientDeleteServiceGroupResponse contains the response from method ManagementClient.BeginDeleteServiceGroup.
type ManagementClientUpdateServiceGroupResponse ¶
type ManagementClientUpdateServiceGroupResponse struct {
// The serviceGroup details.
ServiceGroup
}
ManagementClientUpdateServiceGroupResponse contains the response from method ManagementClient.BeginUpdateServiceGroup.
type Operation ¶
type Operation struct {
// Localized display information for this particular operation.
Display *OperationDisplay
// READ-ONLY; Extensible 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 Azure
// Resource Manager/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 - REST API 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 an 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 {
// REQUIRED; The Operation items on this page
Value []*Operation
// The link to the next page of items
NextLink *string
}
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.
Generated from API version 2026-08-01
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 - Contains optional client configuration. Pass nil to accept the default values.
func (*OperationsClient) NewListPager ¶
func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]
NewListPager - Lists all available REST API operations for the Microsoft.Management resource provider.
- options - OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.
Example ¶
Generated from example definition: 2026-08-01/Operations_List.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicegroups/armservicegroups"
"log"
)
func main() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armservicegroups.NewClientFactory(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 = armservicegroups.OperationsClientListResponse{
// OperationListResult: armservicegroups.OperationListResult{
// Value: []*armservicegroups.Operation{
// {
// Name: to.Ptr("Microsoft.Management/managementGroups/read"),
// Display: &armservicegroups.OperationDisplay{
// Provider: to.Ptr("Microsoft Management"),
// Resource: to.Ptr("managementGroups"),
// Operation: to.Ptr("List Groups"),
// Description: to.Ptr("List management groups for the authenticated user."),
// },
// },
// {
// Name: to.Ptr("Microsoft.Management/managementGroups/write"),
// Display: &armservicegroups.OperationDisplay{
// Provider: to.Ptr("Microsoft Management"),
// Resource: to.Ptr("managementGroups"),
// Operation: to.Ptr("Create or Update"),
// Description: to.Ptr("Create or update a management group."),
// },
// },
// {
// Name: to.Ptr("Microsoft.Management/managementGroups/delete"),
// Display: &armservicegroups.OperationDisplay{
// Provider: to.Ptr("Microsoft Management"),
// Resource: to.Ptr("managementGroups"),
// Operation: to.Ptr("Delete Group"),
// Description: to.Ptr("Delete management group."),
// },
// },
// {
// Name: to.Ptr("Microsoft.Management/managementGroups/subscriptions/read"),
// Display: &armservicegroups.OperationDisplay{
// Provider: to.Ptr("Microsoft Management"),
// Resource: to.Ptr("managementGroups"),
// Operation: to.Ptr("Lists Management Group Subscription"),
// Description: to.Ptr("Lists subscription under the given management group."),
// },
// },
// {
// Name: to.Ptr("Microsoft.Management/managementGroups/subscriptions/write"),
// Display: &armservicegroups.OperationDisplay{
// Provider: to.Ptr("Microsoft Management"),
// Resource: to.Ptr("managementGroups"),
// Operation: to.Ptr("Add Management Group Subscription"),
// Description: to.Ptr("Associates existing subscription with the management group."),
// },
// },
// {
// Name: to.Ptr("Microsoft.Management/managementGroups/subscriptions/delete"),
// Display: &armservicegroups.OperationDisplay{
// Provider: to.Ptr("Microsoft Management"),
// Resource: to.Ptr("managementGroups"),
// Operation: to.Ptr("Delete Management Group Subscription"),
// Description: to.Ptr("De-associates subscription from the management group."),
// },
// },
// {
// Name: to.Ptr("Microsoft.Management/managementGroups/settings/read"),
// Display: &armservicegroups.OperationDisplay{
// Provider: to.Ptr("Microsoft Management"),
// Resource: to.Ptr("managementGroups"),
// Operation: to.Ptr("List Management Group Hierarchy Settings"),
// Description: to.Ptr("Lists existing management group hierarchy settings."),
// },
// },
// {
// Name: to.Ptr("Microsoft.Management/managementGroups/settings/write"),
// Display: &armservicegroups.OperationDisplay{
// Provider: to.Ptr("Microsoft Management"),
// Resource: to.Ptr("managementGroups"),
// Operation: to.Ptr("Creates or updates Management Group Hierarchy Settings"),
// Description: to.Ptr("Creates or updates management group hierarchy settings."),
// },
// },
// {
// Name: to.Ptr("Microsoft.Management/managementGroups/settings/delete"),
// Display: &armservicegroups.OperationDisplay{
// Provider: to.Ptr("Microsoft Management"),
// Resource: to.Ptr("managementGroups"),
// Operation: to.Ptr("Deletes Management Group Hierarchy Settings"),
// Description: to.Ptr("Deletes management group hierarchy settings."),
// },
// },
// {
// Name: to.Ptr("Microsoft.Management/managementGroups/descendants/read"),
// Display: &armservicegroups.OperationDisplay{
// Provider: to.Ptr("Microsoft Management"),
// Resource: to.Ptr("managementGroups"),
// Operation: to.Ptr("Get Group Descendants"),
// Description: to.Ptr("Gets all the descendants (Management Groups, Subscriptions) of a Management Group."),
// },
// },
// {
// Name: to.Ptr("Microsoft.Management/operationResults/managementGroups/read"),
// Display: &armservicegroups.OperationDisplay{
// Provider: to.Ptr("Microsoft Management"),
// Resource: to.Ptr("managementGroups"),
// Operation: to.Ptr("Get the results of a Management Group operation."),
// Description: to.Ptr("Get the results of a Management Group operation."),
// },
// },
// {
// Name: to.Ptr("Microsoft.Management/operationResults/asyncOperation/managementGroups/read"),
// Display: &armservicegroups.OperationDisplay{
// Provider: to.Ptr("Microsoft Management"),
// Resource: to.Ptr("managementGroups"),
// Operation: to.Ptr("Get the results of a Management Group Async operation."),
// Description: to.Ptr("Get the results of a Management Group Async operation."),
// },
// },
// {
// Name: to.Ptr("Microsoft.Management/checkNameAvailability/action"),
// Display: &armservicegroups.OperationDisplay{
// Provider: to.Ptr("Microsoft Management"),
// Resource: to.Ptr("checkNameAvailability"),
// Operation: to.Ptr("Check Name Availability"),
// Description: to.Ptr("Checks if the specified management group name is valid and unique."),
// },
// },
// {
// Name: to.Ptr("Microsoft.Management/getEntities/action"),
// Display: &armservicegroups.OperationDisplay{
// Provider: to.Ptr("Microsoft Management"),
// Resource: to.Ptr("getEntities"),
// Operation: to.Ptr("List Entities"),
// Description: to.Ptr("List all entities (Management Groups, Subscriptions, etc.) for the authenticated user."),
// },
// },
// {
// Name: to.Ptr("Microsoft.Management/register/action"),
// Display: &armservicegroups.OperationDisplay{
// Provider: to.Ptr("Microsoft Management"),
// Resource: to.Ptr("register"),
// Operation: to.Ptr("Register for Microsoft.Management"),
// Description: to.Ptr("Register the specified subscription with Microsoft.Management"),
// },
// },
// {
// Name: to.Ptr("Microsoft.Management/serviceGroups/write"),
// Display: &armservicegroups.OperationDisplay{
// Provider: to.Ptr("Microsoft Management"),
// Resource: to.Ptr("serviceGroups"),
// Operation: to.Ptr("Create or Update a Service Group"),
// Description: to.Ptr("Create or Update a Service Group"),
// },
// },
// {
// Name: to.Ptr("Microsoft.Management/serviceGroups/read"),
// Display: &armservicegroups.OperationDisplay{
// Provider: to.Ptr("Microsoft Management"),
// Resource: to.Ptr("serviceGroups"),
// Operation: to.Ptr("Read a Service Group"),
// Description: to.Ptr("Read a Service Group"),
// },
// },
// {
// Name: to.Ptr("Microsoft.Management/serviceGroups/delete"),
// Display: &armservicegroups.OperationDisplay{
// Provider: to.Ptr("Microsoft Management"),
// Resource: to.Ptr("serviceGroups"),
// Operation: to.Ptr("Delete a Service Group"),
// Description: to.Ptr("Delete a Service Group"),
// },
// },
// {
// Name: to.Ptr("Microsoft.Management/serviceGroups/listAncestors/read"),
// Display: &armservicegroups.OperationDisplay{
// Provider: to.Ptr("Microsoft Management"),
// Resource: to.Ptr("serviceGroups"),
// Operation: to.Ptr("Lists service group ancestors"),
// Description: to.Ptr("For a given service group in the URI, retrieves all the service group ancestors"),
// },
// },
// {
// Name: to.Ptr("Microsoft.Management/serviceGroups/listDescendants/read"),
// Display: &armservicegroups.OperationDisplay{
// Provider: to.Ptr("Microsoft Management"),
// Resource: to.Ptr("serviceGroups"),
// Operation: to.Ptr("Lists service group descendants"),
// Description: to.Ptr("For a given service group in the URI, retrieves all the service group descendants"),
// },
// },
// {
// Name: to.Ptr("Microsoft.Management/operationResults/serviceGroups/read"),
// Display: &armservicegroups.OperationDisplay{
// Provider: to.Ptr("Microsoft Management"),
// Resource: to.Ptr("serviceGroups"),
// Operation: to.Ptr("Get the results of a Service Group operation."),
// Description: to.Ptr("Get the results of a Service Group operation."),
// },
// },
// {
// Name: to.Ptr("Microsoft.Management/operationResults/asyncOperation/serviceGroups/read"),
// Display: &armservicegroups.OperationDisplay{
// Provider: to.Ptr("Microsoft Management"),
// Resource: to.Ptr("serviceGroups"),
// Operation: to.Ptr("Get the results of a Service Group Async operation."),
// Description: to.Ptr("Get the results of a Service Group Async operation."),
// },
// },
// {
// Name: to.Ptr("Microsoft.Management/operations/read"),
// Display: &armservicegroups.OperationDisplay{
// Provider: to.Ptr("Microsoft Management"),
// Resource: to.Ptr("serviceGroups"),
// Operation: to.Ptr("Get the available operations of Management."),
// Description: to.Ptr("Get the available operations of Management."),
// },
// },
// {
// Name: to.Ptr("Microsoft.Management/tenants/register/action"),
// Display: &armservicegroups.OperationDisplay{
// Provider: to.Ptr("Microsoft Management"),
// Resource: to.Ptr("tenants"),
// Operation: to.Ptr("Register a Tenant"),
// },
// },
// {
// Name: to.Ptr("Microsoft.Management/starttenantbackfill/action"),
// Display: &armservicegroups.OperationDisplay{
// Provider: to.Ptr("Microsoft Management"),
// Resource: to.Ptr("tenants"),
// Operation: to.Ptr("Start Tenant Backfill"),
// Description: to.Ptr("Start Tenant Backfill"),
// },
// },
// {
// Name: to.Ptr("Microsoft.Management/tenantbackfillstatus/action"),
// Display: &armservicegroups.OperationDisplay{
// Provider: to.Ptr("Microsoft Management"),
// Resource: to.Ptr("tenants"),
// Operation: to.Ptr("Check the status of a Tenant Backfill operation."),
// Description: to.Ptr("Check the status of a Tenant Backfill operation."),
// },
// },
// },
// },
// }
}
}
Output:
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"
const ( // OriginSystem - Indicates the operation is initiated by a system. OriginSystem Origin = "system" // OriginUser - Indicates the operation is initiated by a user. OriginUser Origin = "user" // OriginUserSystem - Indicates the operation is initiated by a user or system. OriginUserSystem Origin = "user,system" )
func PossibleOriginValues ¶
func PossibleOriginValues() []Origin
PossibleOriginValues returns the possible values for the Origin const type.
type ParentServiceGroupProperties ¶
type ParentServiceGroupProperties struct {
// The fully qualified ID of the parent serviceGroup. For example, '/providers/Microsoft.Management/serviceGroups/TestServiceGroup'
ResourceID *string
}
ParentServiceGroupProperties - The details of the parent serviceGroup.
func (ParentServiceGroupProperties) MarshalJSON ¶
func (p ParentServiceGroupProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ParentServiceGroupProperties.
func (*ParentServiceGroupProperties) UnmarshalJSON ¶
func (p *ParentServiceGroupProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ParentServiceGroupProperties.
type ProvisioningState ¶
type ProvisioningState string
ProvisioningState - The provisioning state of the serviceGroup. For example, Running
const ( // ProvisioningStateCanceled - Canceled ProvisioningStateCanceled ProvisioningState = "Canceled" // ProvisioningStateFailed - Failed ProvisioningStateFailed ProvisioningState = "Failed" // ProvisioningStateNotStarted - NotStarted ProvisioningStateNotStarted ProvisioningState = "NotStarted" // ProvisioningStateRunning - Running ProvisioningStateRunning ProvisioningState = "Running" // ProvisioningStateSucceeded - Succeeded ProvisioningStateSucceeded ProvisioningState = "Succeeded" )
func PossibleProvisioningStateValues ¶
func PossibleProvisioningStateValues() []ProvisioningState
PossibleProvisioningStateValues returns the possible values for the ProvisioningState const type.
type ServiceGroup ¶
type ServiceGroup struct {
// The kind of the serviceGroup.
Kind *string
// ServiceGroup creation request body parameters.
Properties *ServiceGroupProperties
// The serviceGroup 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
}
ServiceGroup - The serviceGroup details.
func (ServiceGroup) MarshalJSON ¶
func (s ServiceGroup) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServiceGroup.
func (*ServiceGroup) UnmarshalJSON ¶
func (s *ServiceGroup) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ServiceGroup.
type ServiceGroupAttributes ¶
type ServiceGroupAttributes struct {
// The criticality designation of the service group. Valid values range from 0 through 4.
Criticality *int32
}
ServiceGroupAttributes - The attributes of the serviceGroup.
func (ServiceGroupAttributes) MarshalJSON ¶
func (s ServiceGroupAttributes) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServiceGroupAttributes.
func (*ServiceGroupAttributes) UnmarshalJSON ¶
func (s *ServiceGroupAttributes) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ServiceGroupAttributes.
type ServiceGroupProperties ¶
type ServiceGroupProperties struct {
// The attributes of the serviceGroup.
Attributes *ServiceGroupAttributes
// The display name of the serviceGroup. For example, ServiceGroupTest1
DisplayName *string
// The details of the parent serviceGroup.
Parent *ParentServiceGroupProperties
// READ-ONLY; The provisioning state of the serviceGroup. For example, Running
ProvisioningState *ProvisioningState
}
ServiceGroupProperties - ServiceGroup creation request body parameters.
func (ServiceGroupProperties) MarshalJSON ¶
func (s ServiceGroupProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServiceGroupProperties.
func (*ServiceGroupProperties) UnmarshalJSON ¶
func (s *ServiceGroupProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ServiceGroupProperties.
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.