Documentation ¶
Index ¶
- type AvailabilityZonePeers
- type CheckResourceNameResult
- type CheckZonePeersRequest
- type CheckZonePeersResult
- type Client
- func (client *Client) CheckZonePeers(ctx context.Context, subscriptionID string, parameters CheckZonePeersRequest, ...) (ClientCheckZonePeersResponse, error)
- func (client *Client) Get(ctx context.Context, subscriptionID string, options *ClientGetOptions) (ClientGetResponse, error)
- func (client *Client) NewListLocationsPager(subscriptionID string, options *ClientListLocationsOptions) *runtime.Pager[ClientListLocationsResponse]
- func (client *Client) NewListPager(options *ClientListOptions) *runtime.Pager[ClientListResponse]
- type ClientCheckZonePeersOptions
- type ClientCheckZonePeersResponse
- type ClientFactory
- type ClientGetOptions
- type ClientGetResponse
- type ClientListLocationsOptions
- type ClientListLocationsResponse
- type ClientListOptions
- type ClientListResponse
- type ErrorAdditionalInfo
- type ErrorDetail
- type ErrorResponse
- type ErrorResponseAutoGenerated
- type Location
- type LocationListResult
- type LocationMetadata
- type LocationType
- type ManagedByTenant
- type Operation
- type OperationDisplay
- type OperationListResult
- type PairedRegion
- type Peers
- type RegionCategory
- type RegionType
- type ResourceName
- type ResourceNameStatus
- type SpendingLimit
- type Subscription
- type SubscriptionClient
- type SubscriptionClientCheckResourceNameOptions
- type SubscriptionClientCheckResourceNameResponse
- type SubscriptionListResult
- type SubscriptionPolicies
- type SubscriptionState
- type TenantCategory
- type TenantIDDescription
- type TenantListResult
- type TenantsClient
- type TenantsClientListOptions
- type TenantsClientListResponse
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AvailabilityZonePeers ¶ added in v0.2.0
type AvailabilityZonePeers struct { // Details of shared availability zone. Peers []*Peers `json:"peers,omitempty"` // READ-ONLY; The availabilityZone. AvailabilityZone *string `json:"availabilityZone,omitempty" azure:"ro"` }
AvailabilityZonePeers - List of availability zones shared by the subscriptions.
func (AvailabilityZonePeers) MarshalJSON ¶ added in v0.2.0
func (a AvailabilityZonePeers) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AvailabilityZonePeers.
func (*AvailabilityZonePeers) UnmarshalJSON ¶ added in v1.1.0
func (a *AvailabilityZonePeers) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AvailabilityZonePeers.
type CheckResourceNameResult ¶
type CheckResourceNameResult struct { // Name of Resource Name *string `json:"name,omitempty"` // Is the resource name Allowed or Reserved Status *ResourceNameStatus `json:"status,omitempty"` // Type of Resource Type *string `json:"type,omitempty"` }
CheckResourceNameResult - Resource Name valid if not a reserved word, does not contain a reserved word and does not start with a reserved word
func (CheckResourceNameResult) MarshalJSON ¶ added in v1.1.0
func (c CheckResourceNameResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CheckResourceNameResult.
func (*CheckResourceNameResult) UnmarshalJSON ¶ added in v1.1.0
func (c *CheckResourceNameResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CheckResourceNameResult.
type CheckZonePeersRequest ¶ added in v0.2.0
type CheckZonePeersRequest struct { // The Microsoft location. Location *string `json:"location,omitempty"` // The peer Microsoft Azure subscription ID. SubscriptionIDs []*string `json:"subscriptionIds,omitempty"` }
CheckZonePeersRequest - Check zone peers request parameters.
func (CheckZonePeersRequest) MarshalJSON ¶ added in v0.2.0
func (c CheckZonePeersRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CheckZonePeersRequest.
func (*CheckZonePeersRequest) UnmarshalJSON ¶ added in v1.1.0
func (c *CheckZonePeersRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CheckZonePeersRequest.
type CheckZonePeersResult ¶ added in v0.2.0
type CheckZonePeersResult struct { // The Availability Zones shared by the subscriptions. AvailabilityZonePeers []*AvailabilityZonePeers `json:"availabilityZonePeers,omitempty"` // the location of the subscription. Location *string `json:"location,omitempty"` // READ-ONLY; The subscription ID. SubscriptionID *string `json:"subscriptionId,omitempty" azure:"ro"` }
CheckZonePeersResult - Result of the Check zone peers operation.
func (CheckZonePeersResult) MarshalJSON ¶ added in v0.2.0
func (c CheckZonePeersResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CheckZonePeersResult.
func (*CheckZonePeersResult) UnmarshalJSON ¶ added in v1.1.0
func (c *CheckZonePeersResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CheckZonePeersResult.
type Client ¶ added in v0.2.0
type Client struct {
// contains filtered or unexported fields
}
Client contains the methods for the Subscriptions group. Don't use this type directly, use NewClient() instead.
func NewClient ¶ added in v0.2.0
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 - pass nil to accept the default values.
func (*Client) CheckZonePeers ¶ added in v0.2.0
func (client *Client) CheckZonePeers(ctx context.Context, subscriptionID string, parameters CheckZonePeersRequest, options *ClientCheckZonePeersOptions) (ClientCheckZonePeersResponse, error)
CheckZonePeers - Compares a subscriptions logical zone mapping If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-01-01
- subscriptionID - The ID of the target subscription.
- parameters - Parameters for checking zone peers.
- options - ClientCheckZonePeersOptions contains the optional parameters for the Client.CheckZonePeers method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0cc5e2efd6ffccf30e80d1e150b488dd87198b94/specification/resources/resource-manager/Microsoft.Resources/stable/2021-01-01/examples/PostCheckZonePeers.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/resources/armsubscriptions" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armsubscriptions.NewClientFactory(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewClient().CheckZonePeers(ctx, "00000000-0000-0000-0000-00000000000000", armsubscriptions.CheckZonePeersRequest{ Location: to.Ptr("eastus"), SubscriptionIDs: []*string{ to.Ptr("subscriptions/11111111-1111-1111-1111-111111111111")}, }, 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.CheckZonePeersResult = armsubscriptions.CheckZonePeersResult{ // AvailabilityZonePeers: []*armsubscriptions.AvailabilityZonePeers{ // { // AvailabilityZone: to.Ptr("1"), // Peers: []*armsubscriptions.Peers{ // { // AvailabilityZone: to.Ptr("3"), // SubscriptionID: to.Ptr("11111111-1111-1111-1111-111111111111"), // }}, // }, // { // AvailabilityZone: to.Ptr("2"), // Peers: []*armsubscriptions.Peers{ // { // AvailabilityZone: to.Ptr("2"), // SubscriptionID: to.Ptr("11111111-1111-1111-1111-111111111111"), // }}, // }, // { // AvailabilityZone: to.Ptr("3"), // Peers: []*armsubscriptions.Peers{ // { // AvailabilityZone: to.Ptr("1"), // SubscriptionID: to.Ptr("11111111-1111-1111-1111-111111111111"), // }}, // }}, // Location: to.Ptr("eastus2"), // SubscriptionID: to.Ptr("00000000-0000-0000-0000-00000000000000"), // } }
Output:
func (*Client) Get ¶ added in v0.2.0
func (client *Client) Get(ctx context.Context, subscriptionID string, options *ClientGetOptions) (ClientGetResponse, error)
Get - Gets details about a specified subscription. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-01-01
- subscriptionID - The ID of the target subscription.
- options - ClientGetOptions contains the optional parameters for the Client.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0cc5e2efd6ffccf30e80d1e150b488dd87198b94/specification/resources/resource-manager/Microsoft.Resources/stable/2021-01-01/examples/GetSubscription.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armsubscriptions" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armsubscriptions.NewClientFactory(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewClient().Get(ctx, "291bba3f-e0a5-47bc-a099-3bdcb2a50a05", 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.Subscription = armsubscriptions.Subscription{ // AuthorizationSource: to.Ptr("Bypassed"), // DisplayName: to.Ptr("Example Subscription"), // ID: to.Ptr("/subscriptions/291bba3f-e0a5-47bc-a099-3bdcb2a50a05"), // ManagedByTenants: []*armsubscriptions.ManagedByTenant{ // { // TenantID: to.Ptr("8f70baf1-1f6e-46a2-a1ff-238dac1ebfb7"), // }}, // State: to.Ptr(armsubscriptions.SubscriptionStateEnabled), // SubscriptionID: to.Ptr("291bba3f-e0a5-47bc-a099-3bdcb2a50a05"), // SubscriptionPolicies: &armsubscriptions.SubscriptionPolicies{ // LocationPlacementID: to.Ptr("Internal_2014-09-01"), // QuotaID: to.Ptr("Internal_2014-09-01"), // SpendingLimit: to.Ptr(armsubscriptions.SpendingLimitOff), // }, // Tags: map[string]*string{ // "tagKey1": to.Ptr("tagValue1"), // "tagKey2": to.Ptr("tagValue2"), // }, // TenantID: to.Ptr("31c75423-32d6-4322-88b7-c478bdde4858"), // } }
Output:
func (*Client) NewListLocationsPager ¶ added in v0.4.0
func (client *Client) NewListLocationsPager(subscriptionID string, options *ClientListLocationsOptions) *runtime.Pager[ClientListLocationsResponse]
NewListLocationsPager - This operation provides all the locations that are available for resource providers; however, each resource provider may support a subset of this list.
Generated from API version 2021-01-01
- subscriptionID - The ID of the target subscription.
- options - ClientListLocationsOptions contains the optional parameters for the Client.NewListLocationsPager method.
Example (GetLocationsWithASubscriptionId) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0cc5e2efd6ffccf30e80d1e150b488dd87198b94/specification/resources/resource-manager/Microsoft.Resources/stable/2021-01-01/examples/GetLocations.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armsubscriptions" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armsubscriptions.NewClientFactory(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewClient().NewListLocationsPager("291bba3f-e0a5-47bc-a099-3bdcb2a50a05", &armsubscriptions.ClientListLocationsOptions{IncludeExtendedLocations: 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.LocationListResult = armsubscriptions.LocationListResult{ // } } }
Output:
Example (GetLocationsWithExtendedLocations) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0cc5e2efd6ffccf30e80d1e150b488dd87198b94/specification/resources/resource-manager/Microsoft.Resources/stable/2021-01-01/examples/GetLocationsWithExtendedLocations.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/resources/armsubscriptions" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armsubscriptions.NewClientFactory(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewClient().NewListLocationsPager("291bba3f-e0a5-47bc-a099-3bdcb2a50a05", &armsubscriptions.ClientListLocationsOptions{IncludeExtendedLocations: to.Ptr(true)}) 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.LocationListResult = armsubscriptions.LocationListResult{ // } } }
Output:
func (*Client) NewListPager ¶ added in v0.4.0
func (client *Client) NewListPager(options *ClientListOptions) *runtime.Pager[ClientListResponse]
NewListPager - Gets all subscriptions for a tenant.
Generated from API version 2021-01-01
- options - ClientListOptions contains the optional parameters for the Client.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0cc5e2efd6ffccf30e80d1e150b488dd87198b94/specification/resources/resource-manager/Microsoft.Resources/stable/2021-01-01/examples/GetSubscriptions.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armsubscriptions" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armsubscriptions.NewClientFactory(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewClient().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.SubscriptionListResult = armsubscriptions.SubscriptionListResult{ // Value: []*armsubscriptions.Subscription{ // { // AuthorizationSource: to.Ptr("RoleBased"), // DisplayName: to.Ptr("Example Subscription"), // ID: to.Ptr("/subscriptions/291bba3f-e0a5-47bc-a099-3bdcb2a50a05"), // ManagedByTenants: []*armsubscriptions.ManagedByTenant{ // { // TenantID: to.Ptr("8f70baf1-1f6e-46a2-a1ff-238dac1ebfb7"), // }}, // State: to.Ptr(armsubscriptions.SubscriptionStateEnabled), // SubscriptionID: to.Ptr("291bba3f-e0a5-47bc-a099-3bdcb2a50a05"), // SubscriptionPolicies: &armsubscriptions.SubscriptionPolicies{ // LocationPlacementID: to.Ptr("Internal_2014-09-01"), // QuotaID: to.Ptr("Internal_2014-09-01"), // SpendingLimit: to.Ptr(armsubscriptions.SpendingLimitOff), // }, // Tags: map[string]*string{ // "tagKey1": to.Ptr("tagValue1"), // "tagKey2": to.Ptr("tagValue2"), // }, // TenantID: to.Ptr("31c75423-32d6-4322-88b7-c478bdde4858"), // }, // { // AuthorizationSource: to.Ptr("RoleBased"), // DisplayName: to.Ptr("Example Subscription2"), // ID: to.Ptr("/subscriptions/72ac930a-f34e-42d8-b06d-dc2a9e12ed71"), // ManagedByTenants: []*armsubscriptions.ManagedByTenant{ // { // TenantID: to.Ptr("8f70baf1-1f6e-46a2-a1ff-238dac1ebfb7"), // }, // { // TenantID: to.Ptr("f7fb6af2-321d-47c8-9c0f-b0239eaad39a"), // }}, // State: to.Ptr(armsubscriptions.SubscriptionStateEnabled), // SubscriptionID: to.Ptr("72ac930a-f34e-42d8-b06d-dc2a9e12ed71"), // SubscriptionPolicies: &armsubscriptions.SubscriptionPolicies{ // LocationPlacementID: to.Ptr("Internal_2014-09-01"), // QuotaID: to.Ptr("Internal_2014-09-01"), // SpendingLimit: to.Ptr(armsubscriptions.SpendingLimitOff), // }, // Tags: map[string]*string{ // "tagKey1": to.Ptr("tagValue1"), // "tagKey2": to.Ptr("tagValue2"), // }, // TenantID: to.Ptr("2a0ff0de-96b2-4859-bb7c-a430d07a3e0c"), // }}, // } } }
Output:
type ClientCheckZonePeersOptions ¶ added in v0.2.0
type ClientCheckZonePeersOptions struct { }
ClientCheckZonePeersOptions contains the optional parameters for the Client.CheckZonePeers method.
type ClientCheckZonePeersResponse ¶ added in v0.2.0
type ClientCheckZonePeersResponse struct {
CheckZonePeersResult
}
ClientCheckZonePeersResponse contains the response from method Client.CheckZonePeers.
type ClientFactory ¶ added in v1.1.0
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 ¶ added in v1.1.0
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 ¶ added in v1.1.0
func (c *ClientFactory) NewClient() *Client
func (*ClientFactory) NewSubscriptionClient ¶ added in v1.1.0
func (c *ClientFactory) NewSubscriptionClient() *SubscriptionClient
func (*ClientFactory) NewTenantsClient ¶ added in v1.1.0
func (c *ClientFactory) NewTenantsClient() *TenantsClient
type ClientGetOptions ¶ added in v0.2.0
type ClientGetOptions struct { }
ClientGetOptions contains the optional parameters for the Client.Get method.
type ClientGetResponse ¶ added in v0.2.0
type ClientGetResponse struct {
Subscription
}
ClientGetResponse contains the response from method Client.Get.
type ClientListLocationsOptions ¶ added in v0.2.0
type ClientListLocationsOptions struct { // Whether to include extended locations. IncludeExtendedLocations *bool }
ClientListLocationsOptions contains the optional parameters for the Client.NewListLocationsPager method.
type ClientListLocationsResponse ¶ added in v0.2.0
type ClientListLocationsResponse struct {
LocationListResult
}
ClientListLocationsResponse contains the response from method Client.NewListLocationsPager.
type ClientListOptions ¶ added in v0.2.0
type ClientListOptions struct { }
ClientListOptions contains the optional parameters for the Client.NewListPager method.
type ClientListResponse ¶ added in v0.2.0
type ClientListResponse struct {
SubscriptionListResult
}
ClientListResponse contains the response from method Client.NewListPager.
type ErrorAdditionalInfo ¶
type ErrorAdditionalInfo struct { // READ-ONLY; The additional info. Info any `json:"info,omitempty" azure:"ro"` // READ-ONLY; The additional info type. Type *string `json:"type,omitempty" azure:"ro"` }
ErrorAdditionalInfo - The resource management error additional info.
func (ErrorAdditionalInfo) MarshalJSON ¶ added in v1.1.0
func (e ErrorAdditionalInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ErrorAdditionalInfo.
func (*ErrorAdditionalInfo) UnmarshalJSON ¶ added in v1.1.0
func (e *ErrorAdditionalInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ErrorAdditionalInfo.
type ErrorDetail ¶ added in v0.2.0
type ErrorDetail struct { // READ-ONLY; The error additional info. AdditionalInfo []*ErrorAdditionalInfo `json:"additionalInfo,omitempty" azure:"ro"` // READ-ONLY; The error code. Code *string `json:"code,omitempty" azure:"ro"` // READ-ONLY; The error details. Details []*ErrorDetail `json:"details,omitempty" azure:"ro"` // READ-ONLY; The error message. Message *string `json:"message,omitempty" azure:"ro"` // READ-ONLY; The error target. Target *string `json:"target,omitempty" azure:"ro"` }
ErrorDetail - The error detail.
func (ErrorDetail) MarshalJSON ¶ added in v0.2.0
func (e ErrorDetail) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ErrorDetail.
func (*ErrorDetail) UnmarshalJSON ¶ added in v1.1.0
func (e *ErrorDetail) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ErrorDetail.
type ErrorResponse ¶
type ErrorResponse struct { // READ-ONLY; The error additional info. AdditionalInfo []*ErrorAdditionalInfo `json:"additionalInfo,omitempty" azure:"ro"` // READ-ONLY; The error code. Code *string `json:"code,omitempty" azure:"ro"` // READ-ONLY; The error details. Details []*ErrorResponse `json:"details,omitempty" azure:"ro"` // READ-ONLY; The error message. Message *string `json:"message,omitempty" azure:"ro"` // READ-ONLY; The error target. Target *string `json:"target,omitempty" azure:"ro"` }
ErrorResponse - Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.)
func (ErrorResponse) MarshalJSON ¶
func (e ErrorResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ErrorResponse.
func (*ErrorResponse) UnmarshalJSON ¶ added in v1.1.0
func (e *ErrorResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ErrorResponse.
type ErrorResponseAutoGenerated ¶ added in v0.2.0
type ErrorResponseAutoGenerated struct { // The error object. Error *ErrorDetail `json:"error,omitempty"` }
ErrorResponseAutoGenerated - Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).
func (ErrorResponseAutoGenerated) MarshalJSON ¶ added in v1.1.0
func (e ErrorResponseAutoGenerated) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ErrorResponseAutoGenerated.
func (*ErrorResponseAutoGenerated) UnmarshalJSON ¶ added in v1.1.0
func (e *ErrorResponseAutoGenerated) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ErrorResponseAutoGenerated.
type Location ¶
type Location struct { // Metadata of the location, such as lat/long, paired region, and others. Metadata *LocationMetadata `json:"metadata,omitempty"` // READ-ONLY; The display name of the location. DisplayName *string `json:"displayName,omitempty" azure:"ro"` // READ-ONLY; The fully qualified ID of the location. For example, /subscriptions/00000000-0000-0000-0000-000000000000/locations/westus. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The location name. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The display name of the location and its region. RegionalDisplayName *string `json:"regionalDisplayName,omitempty" azure:"ro"` // READ-ONLY; The subscription ID. SubscriptionID *string `json:"subscriptionId,omitempty" azure:"ro"` // READ-ONLY; The location type. Type *LocationType `json:"type,omitempty" azure:"ro"` }
Location information.
func (Location) MarshalJSON ¶ added in v1.1.0
MarshalJSON implements the json.Marshaller interface for type Location.
func (*Location) UnmarshalJSON ¶ added in v1.1.0
UnmarshalJSON implements the json.Unmarshaller interface for type Location.
type LocationListResult ¶
type LocationListResult struct { // An array of locations. Value []*Location `json:"value,omitempty"` }
LocationListResult - Location list operation response.
func (LocationListResult) MarshalJSON ¶
func (l LocationListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type LocationListResult.
func (*LocationListResult) UnmarshalJSON ¶ added in v1.1.0
func (l *LocationListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type LocationListResult.
type LocationMetadata ¶
type LocationMetadata struct { // The regions paired to this region. PairedRegion []*PairedRegion `json:"pairedRegion,omitempty"` // READ-ONLY; The geography group of the location. GeographyGroup *string `json:"geographyGroup,omitempty" azure:"ro"` // READ-ONLY; The home location of an edge zone. HomeLocation *string `json:"homeLocation,omitempty" azure:"ro"` // READ-ONLY; The latitude of the location. Latitude *string `json:"latitude,omitempty" azure:"ro"` // READ-ONLY; The longitude of the location. Longitude *string `json:"longitude,omitempty" azure:"ro"` // READ-ONLY; The physical location of the Azure location. PhysicalLocation *string `json:"physicalLocation,omitempty" azure:"ro"` // READ-ONLY; The category of the region. RegionCategory *RegionCategory `json:"regionCategory,omitempty" azure:"ro"` // READ-ONLY; The type of the region. RegionType *RegionType `json:"regionType,omitempty" azure:"ro"` }
LocationMetadata - Location metadata information
func (LocationMetadata) MarshalJSON ¶
func (l LocationMetadata) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type LocationMetadata.
func (*LocationMetadata) UnmarshalJSON ¶ added in v1.1.0
func (l *LocationMetadata) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type LocationMetadata.
type LocationType ¶
type LocationType string
LocationType - The location type.
const ( LocationTypeRegion LocationType = "Region" LocationTypeEdgeZone LocationType = "EdgeZone" )
func PossibleLocationTypeValues ¶
func PossibleLocationTypeValues() []LocationType
PossibleLocationTypeValues returns the possible values for the LocationType const type.
type ManagedByTenant ¶
type ManagedByTenant struct { // READ-ONLY; The tenant ID of the managing tenant. This is a GUID. TenantID *string `json:"tenantId,omitempty" azure:"ro"` }
ManagedByTenant - Information about a tenant managing the subscription.
func (ManagedByTenant) MarshalJSON ¶ added in v1.1.0
func (m ManagedByTenant) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ManagedByTenant.
func (*ManagedByTenant) UnmarshalJSON ¶ added in v1.1.0
func (m *ManagedByTenant) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ManagedByTenant.
type Operation ¶
type Operation struct { // The object that represents the operation. Display *OperationDisplay `json:"display,omitempty"` // Operation name: {provider}/{resource}/{operation} Name *string `json:"name,omitempty"` }
Operation - Microsoft.Resources operation
func (Operation) MarshalJSON ¶ added in v1.1.0
MarshalJSON implements the json.Marshaller interface for type Operation.
func (*Operation) UnmarshalJSON ¶ added in v1.1.0
UnmarshalJSON implements the json.Unmarshaller interface for type Operation.
type OperationDisplay ¶
type OperationDisplay struct { // Description of the operation. Description *string `json:"description,omitempty"` // Operation type: Read, write, delete, etc. Operation *string `json:"operation,omitempty"` // Service provider: Microsoft.Resources Provider *string `json:"provider,omitempty"` // Resource on which the operation is performed: Profile, endpoint, etc. Resource *string `json:"resource,omitempty"` }
OperationDisplay - The object that represents the operation.
func (OperationDisplay) MarshalJSON ¶ added in v1.1.0
func (o OperationDisplay) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationDisplay.
func (*OperationDisplay) UnmarshalJSON ¶ added in v1.1.0
func (o *OperationDisplay) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationDisplay.
type OperationListResult ¶
type OperationListResult struct { // URL to get the next set of operation list results if there are any. NextLink *string `json:"nextLink,omitempty"` // List of Microsoft.Resources operations. Value []*Operation `json:"value,omitempty"` }
OperationListResult - Result of the request to list Microsoft.Resources operations. It contains a list of operations and a 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 ¶ added in v1.1.0
func (o *OperationListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationListResult.
type PairedRegion ¶
type PairedRegion struct { // READ-ONLY; The fully qualified ID of the location. For example, /subscriptions/00000000-0000-0000-0000-000000000000/locations/westus. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the paired region. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The subscription ID. SubscriptionID *string `json:"subscriptionId,omitempty" azure:"ro"` }
PairedRegion - Information regarding paired region.
func (PairedRegion) MarshalJSON ¶ added in v1.1.0
func (p PairedRegion) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PairedRegion.
func (*PairedRegion) UnmarshalJSON ¶ added in v1.1.0
func (p *PairedRegion) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PairedRegion.
type Peers ¶ added in v0.2.0
type Peers struct { // READ-ONLY; The availabilityZone. AvailabilityZone *string `json:"availabilityZone,omitempty" azure:"ro"` // READ-ONLY; The subscription ID. SubscriptionID *string `json:"subscriptionId,omitempty" azure:"ro"` }
Peers - Information about shared availability zone.
func (Peers) MarshalJSON ¶ added in v1.1.0
MarshalJSON implements the json.Marshaller interface for type Peers.
func (*Peers) UnmarshalJSON ¶ added in v1.1.0
UnmarshalJSON implements the json.Unmarshaller interface for type Peers.
type RegionCategory ¶
type RegionCategory string
RegionCategory - The category of the region.
const ( RegionCategoryExtended RegionCategory = "Extended" RegionCategoryOther RegionCategory = "Other" RegionCategoryRecommended RegionCategory = "Recommended" )
func PossibleRegionCategoryValues ¶
func PossibleRegionCategoryValues() []RegionCategory
PossibleRegionCategoryValues returns the possible values for the RegionCategory const type.
type RegionType ¶
type RegionType string
RegionType - The type of the region.
const ( RegionTypeLogical RegionType = "Logical" RegionTypePhysical RegionType = "Physical" )
func PossibleRegionTypeValues ¶
func PossibleRegionTypeValues() []RegionType
PossibleRegionTypeValues returns the possible values for the RegionType const type.
type ResourceName ¶
type ResourceName struct { // REQUIRED; Name of the resource Name *string `json:"name,omitempty"` // REQUIRED; The type of the resource Type *string `json:"type,omitempty"` }
ResourceName - Name and Type of the Resource
func (ResourceName) MarshalJSON ¶ added in v1.1.0
func (r ResourceName) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ResourceName.
func (*ResourceName) UnmarshalJSON ¶ added in v1.1.0
func (r *ResourceName) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ResourceName.
type ResourceNameStatus ¶
type ResourceNameStatus string
ResourceNameStatus - Is the resource name Allowed or Reserved
const ( ResourceNameStatusAllowed ResourceNameStatus = "Allowed" ResourceNameStatusReserved ResourceNameStatus = "Reserved" )
func PossibleResourceNameStatusValues ¶
func PossibleResourceNameStatusValues() []ResourceNameStatus
PossibleResourceNameStatusValues returns the possible values for the ResourceNameStatus const type.
type SpendingLimit ¶
type SpendingLimit string
SpendingLimit - The subscription spending limit.
const ( SpendingLimitOn SpendingLimit = "On" SpendingLimitOff SpendingLimit = "Off" SpendingLimitCurrentPeriodOff SpendingLimit = "CurrentPeriodOff" )
func PossibleSpendingLimitValues ¶
func PossibleSpendingLimitValues() []SpendingLimit
PossibleSpendingLimitValues returns the possible values for the SpendingLimit const type.
type Subscription ¶
type Subscription struct { // The authorization source of the request. Valid values are one or more combinations of Legacy, RoleBased, Bypassed, Direct // and Management. For example, 'Legacy, RoleBased'. AuthorizationSource *string `json:"authorizationSource,omitempty"` // An array containing the tenants managing the subscription. ManagedByTenants []*ManagedByTenant `json:"managedByTenants,omitempty"` // The subscription policies. SubscriptionPolicies *SubscriptionPolicies `json:"subscriptionPolicies,omitempty"` // The tags attached to the subscription. Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; The subscription display name. DisplayName *string `json:"displayName,omitempty" azure:"ro"` // READ-ONLY; The fully qualified ID for the subscription. For example, /subscriptions/00000000-0000-0000-0000-000000000000. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The subscription state. Possible values are Enabled, Warned, PastDue, Disabled, and Deleted. State *SubscriptionState `json:"state,omitempty" azure:"ro"` // READ-ONLY; The subscription ID. SubscriptionID *string `json:"subscriptionId,omitempty" azure:"ro"` // READ-ONLY; The subscription tenant ID. TenantID *string `json:"tenantId,omitempty" azure:"ro"` }
Subscription information.
func (Subscription) MarshalJSON ¶
func (s Subscription) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type Subscription.
func (*Subscription) UnmarshalJSON ¶ added in v1.1.0
func (s *Subscription) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type Subscription.
type SubscriptionClient ¶
type SubscriptionClient struct {
// contains filtered or unexported fields
}
SubscriptionClient contains the methods for the SubscriptionClient group. Don't use this type directly, use NewSubscriptionClient() instead.
func NewSubscriptionClient ¶
func NewSubscriptionClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*SubscriptionClient, error)
NewSubscriptionClient creates a new instance of SubscriptionClient with the specified values.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*SubscriptionClient) CheckResourceName ¶
func (client *SubscriptionClient) CheckResourceName(ctx context.Context, options *SubscriptionClientCheckResourceNameOptions) (SubscriptionClientCheckResourceNameResponse, error)
CheckResourceName - A resource name is valid if it is not a reserved word, does not contains a reserved word and does not start with a reserved word If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-01-01
- options - SubscriptionClientCheckResourceNameOptions contains the optional parameters for the SubscriptionClient.CheckResourceName method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0cc5e2efd6ffccf30e80d1e150b488dd87198b94/specification/resources/resource-manager/Microsoft.Resources/stable/2021-01-01/examples/CheckResourceName.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armsubscriptions" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armsubscriptions.NewClientFactory(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewSubscriptionClient().CheckResourceName(ctx, &armsubscriptions.SubscriptionClientCheckResourceNameOptions{ResourceNameDefinition: 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.CheckResourceNameResult = armsubscriptions.CheckResourceNameResult{ // Name: to.Ptr("isxbox"), // Type: to.Ptr("ResourceProviderTestHost/TestResourceType"), // Status: to.Ptr(armsubscriptions.ResourceNameStatusAllowed), // } }
Output:
type SubscriptionClientCheckResourceNameOptions ¶
type SubscriptionClientCheckResourceNameOptions struct { // Resource object with values for resource name and resource type ResourceNameDefinition *ResourceName }
SubscriptionClientCheckResourceNameOptions contains the optional parameters for the SubscriptionClient.CheckResourceName method.
type SubscriptionClientCheckResourceNameResponse ¶
type SubscriptionClientCheckResourceNameResponse struct {
CheckResourceNameResult
}
SubscriptionClientCheckResourceNameResponse contains the response from method SubscriptionClient.CheckResourceName.
type SubscriptionListResult ¶
type SubscriptionListResult struct { // REQUIRED; The URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` // An array of subscriptions. Value []*Subscription `json:"value,omitempty"` }
SubscriptionListResult - Subscription list operation response.
func (SubscriptionListResult) MarshalJSON ¶
func (s SubscriptionListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SubscriptionListResult.
func (*SubscriptionListResult) UnmarshalJSON ¶ added in v1.1.0
func (s *SubscriptionListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SubscriptionListResult.
type SubscriptionPolicies ¶
type SubscriptionPolicies struct { // READ-ONLY; The subscription location placement ID. The ID indicates which regions are visible for a subscription. For example, // a subscription with a location placement Id of Public_2014-09-01 has access to Azure // public regions. LocationPlacementID *string `json:"locationPlacementId,omitempty" azure:"ro"` // READ-ONLY; The subscription quota ID. QuotaID *string `json:"quotaId,omitempty" azure:"ro"` // READ-ONLY; The subscription spending limit. SpendingLimit *SpendingLimit `json:"spendingLimit,omitempty" azure:"ro"` }
SubscriptionPolicies - Subscription policies.
func (SubscriptionPolicies) MarshalJSON ¶ added in v1.1.0
func (s SubscriptionPolicies) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SubscriptionPolicies.
func (*SubscriptionPolicies) UnmarshalJSON ¶ added in v1.1.0
func (s *SubscriptionPolicies) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SubscriptionPolicies.
type SubscriptionState ¶
type SubscriptionState string
SubscriptionState - The subscription state. Possible values are Enabled, Warned, PastDue, Disabled, and Deleted.
const ( SubscriptionStateEnabled SubscriptionState = "Enabled" SubscriptionStateWarned SubscriptionState = "Warned" SubscriptionStatePastDue SubscriptionState = "PastDue" SubscriptionStateDisabled SubscriptionState = "Disabled" SubscriptionStateDeleted SubscriptionState = "Deleted" )
func PossibleSubscriptionStateValues ¶
func PossibleSubscriptionStateValues() []SubscriptionState
PossibleSubscriptionStateValues returns the possible values for the SubscriptionState const type.
type TenantCategory ¶
type TenantCategory string
TenantCategory - Category of the tenant.
const ( TenantCategoryHome TenantCategory = "Home" TenantCategoryProjectedBy TenantCategory = "ProjectedBy" TenantCategoryManagedBy TenantCategory = "ManagedBy" )
func PossibleTenantCategoryValues ¶
func PossibleTenantCategoryValues() []TenantCategory
PossibleTenantCategoryValues returns the possible values for the TenantCategory const type.
type TenantIDDescription ¶
type TenantIDDescription struct { // READ-ONLY; Country/region name of the address for the tenant. Country *string `json:"country,omitempty" azure:"ro"` // READ-ONLY; Country/region abbreviation for the tenant. CountryCode *string `json:"countryCode,omitempty" azure:"ro"` // READ-ONLY; The default domain for the tenant. DefaultDomain *string `json:"defaultDomain,omitempty" azure:"ro"` // READ-ONLY; The display name of the tenant. DisplayName *string `json:"displayName,omitempty" azure:"ro"` // READ-ONLY; The list of domains for the tenant. Domains []*string `json:"domains,omitempty" azure:"ro"` // READ-ONLY; The fully qualified ID of the tenant. For example, /tenants/00000000-0000-0000-0000-000000000000. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The tenant's branding logo URL. Only available for 'Home' tenant category. TenantBrandingLogoURL *string `json:"tenantBrandingLogoUrl,omitempty" azure:"ro"` // READ-ONLY; Category of the tenant. TenantCategory *TenantCategory `json:"tenantCategory,omitempty" azure:"ro"` // READ-ONLY; The tenant ID. For example, 00000000-0000-0000-0000-000000000000. TenantID *string `json:"tenantId,omitempty" azure:"ro"` // READ-ONLY; The tenant type. Only available for 'Home' tenant category. TenantType *string `json:"tenantType,omitempty" azure:"ro"` }
TenantIDDescription - Tenant Id information.
func (TenantIDDescription) MarshalJSON ¶
func (t TenantIDDescription) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TenantIDDescription.
func (*TenantIDDescription) UnmarshalJSON ¶ added in v1.1.0
func (t *TenantIDDescription) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TenantIDDescription.
type TenantListResult ¶
type TenantListResult struct { // REQUIRED; The URL to use for getting the next set of results. NextLink *string `json:"nextLink,omitempty"` // An array of tenants. Value []*TenantIDDescription `json:"value,omitempty"` }
TenantListResult - Tenant Ids information.
func (TenantListResult) MarshalJSON ¶
func (t TenantListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TenantListResult.
func (*TenantListResult) UnmarshalJSON ¶ added in v1.1.0
func (t *TenantListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TenantListResult.
type TenantsClient ¶
type TenantsClient struct {
// contains filtered or unexported fields
}
TenantsClient contains the methods for the Tenants group. Don't use this type directly, use NewTenantsClient() instead.
func NewTenantsClient ¶
func NewTenantsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*TenantsClient, error)
NewTenantsClient creates a new instance of TenantsClient with the specified values.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*TenantsClient) NewListPager ¶ added in v0.4.0
func (client *TenantsClient) NewListPager(options *TenantsClientListOptions) *runtime.Pager[TenantsClientListResponse]
NewListPager - Gets the tenants for your account.
Generated from API version 2021-01-01
- options - TenantsClientListOptions contains the optional parameters for the TenantsClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/0cc5e2efd6ffccf30e80d1e150b488dd87198b94/specification/resources/resource-manager/Microsoft.Resources/stable/2021-01-01/examples/GetTenants.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armsubscriptions" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armsubscriptions.NewClientFactory(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewTenantsClient().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.TenantListResult = armsubscriptions.TenantListResult{ // Value: []*armsubscriptions.TenantIDDescription{ // { // CountryCode: to.Ptr("US"), // DefaultDomain: to.Ptr("aad50.ccsctp.net"), // DisplayName: to.Ptr("Test_Test_aad50"), // Domains: []*string{ // to.Ptr("aad50.ccsctp.net")}, // ID: to.Ptr("/tenants/a70a1586-9c4a-4373-b907-1d310660dbd1"), // TenantCategory: to.Ptr(armsubscriptions.TenantCategoryManagedBy), // TenantID: to.Ptr("a70a1586-9c4a-4373-b907-1d310660dbd1"), // TenantType: to.Ptr("AAD"), // }, // { // CountryCode: to.Ptr("US"), // DefaultDomain: to.Ptr("auxteststagemanual.ccsctp.net"), // DisplayName: to.Ptr("Contoso Corp."), // Domains: []*string{ // to.Ptr("auxteststagemanual.ccsctp.net")}, // ID: to.Ptr("/tenants/83abe5cd-bcc3-441a-bd86-e6a75360cecc"), // TenantCategory: to.Ptr(armsubscriptions.TenantCategoryHome), // TenantID: to.Ptr("83abe5cd-bcc3-441a-bd86-e6a75360cecc"), // TenantType: to.Ptr("AAD"), // }, // { // CountryCode: to.Ptr("US"), // DefaultDomain: to.Ptr("rdvmohoro.ccsctp.net"), // DisplayName: to.Ptr("TEST_TEST_RDV"), // Domains: []*string{ // to.Ptr("rdvmohoro.ccsctp.net"), // to.Ptr("rdvmohoro.mail.ccsctp.net"), // to.Ptr("rdvmohoro.com")}, // ID: to.Ptr("/tenants/daea2e9b-847b-4c93-850d-2aa6f2d7af33"), // TenantBrandingLogoURL: to.Ptr("logo1.logo.rdvmohoro.com"), // TenantCategory: to.Ptr(armsubscriptions.TenantCategoryProjectedBy), // TenantID: to.Ptr("daea2e9b-847b-4c93-850d-2aa6f2d7af33"), // TenantType: to.Ptr("AAD"), // }}, // } } }
Output:
type TenantsClientListOptions ¶ added in v0.2.0
type TenantsClientListOptions struct { }
TenantsClientListOptions contains the optional parameters for the TenantsClient.NewListPager method.
type TenantsClientListResponse ¶ added in v0.2.0
type TenantsClientListResponse struct {
TenantListResult
}
TenantsClientListResponse contains the response from method TenantsClient.NewListPager.