Documentation
¶
Index ¶
- type ActionType
- type CheckNameAvailabilityReason
- type CheckNameAvailabilityRequest
- type CheckNameAvailabilityResponse
- type ClientFactory
- type CreatedByType
- type EnablementStatus
- type FreeTrialProperties
- type FreeTrialState
- type Operation
- type OperationDisplay
- type OperationListResult
- type OperationsClient
- type OperationsClientListOptions
- type OperationsClientListResponse
- type Origin
- type ProvisioningState
- type Quota
- type QuotaListResult
- type QuotaName
- type QuotaProperties
- type QuotasClient
- func (client *QuotasClient) Get(ctx context.Context, location string, playwrightQuotaName QuotaName, ...) (QuotasClientGetResponse, error)
- func (client *QuotasClient) NewListBySubscriptionPager(location string, options *QuotasClientListBySubscriptionOptions) *runtime.Pager[QuotasClientListBySubscriptionResponse]
- type QuotasClientGetOptions
- type QuotasClientGetResponse
- type QuotasClientListBySubscriptionOptions
- type QuotasClientListBySubscriptionResponse
- type SystemData
- type Workspace
- type WorkspaceFreeTrialProperties
- type WorkspaceListResult
- type WorkspaceProperties
- type WorkspaceQuota
- type WorkspaceQuotaListResult
- type WorkspaceQuotaProperties
- type WorkspaceQuotasClient
- func (client *WorkspaceQuotasClient) Get(ctx context.Context, resourceGroupName string, playwrightWorkspaceName string, ...) (WorkspaceQuotasClientGetResponse, error)
- func (client *WorkspaceQuotasClient) NewListByPlaywrightWorkspacePager(resourceGroupName string, playwrightWorkspaceName string, ...) *runtime.Pager[WorkspaceQuotasClientListByPlaywrightWorkspaceResponse]
- type WorkspaceQuotasClientGetOptions
- type WorkspaceQuotasClientGetResponse
- type WorkspaceQuotasClientListByPlaywrightWorkspaceOptions
- type WorkspaceQuotasClientListByPlaywrightWorkspaceResponse
- type WorkspaceUpdate
- type WorkspaceUpdateProperties
- type WorkspacesClient
- func (client *WorkspacesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, playwrightWorkspaceName string, ...) (*runtime.Poller[WorkspacesClientCreateOrUpdateResponse], error)
- func (client *WorkspacesClient) BeginDelete(ctx context.Context, resourceGroupName string, playwrightWorkspaceName string, ...) (*runtime.Poller[WorkspacesClientDeleteResponse], error)
- func (client *WorkspacesClient) CheckNameAvailability(ctx context.Context, body CheckNameAvailabilityRequest, ...) (WorkspacesClientCheckNameAvailabilityResponse, error)
- func (client *WorkspacesClient) Get(ctx context.Context, resourceGroupName string, playwrightWorkspaceName string, ...) (WorkspacesClientGetResponse, error)
- func (client *WorkspacesClient) NewListByResourceGroupPager(resourceGroupName string, options *WorkspacesClientListByResourceGroupOptions) *runtime.Pager[WorkspacesClientListByResourceGroupResponse]
- func (client *WorkspacesClient) NewListBySubscriptionPager(options *WorkspacesClientListBySubscriptionOptions) *runtime.Pager[WorkspacesClientListBySubscriptionResponse]
- func (client *WorkspacesClient) Update(ctx context.Context, resourceGroupName string, playwrightWorkspaceName string, ...) (WorkspacesClientUpdateResponse, error)
- type WorkspacesClientBeginCreateOrUpdateOptions
- type WorkspacesClientBeginDeleteOptions
- type WorkspacesClientCheckNameAvailabilityOptions
- type WorkspacesClientCheckNameAvailabilityResponse
- type WorkspacesClientCreateOrUpdateResponse
- type WorkspacesClientDeleteResponse
- type WorkspacesClientGetOptions
- type WorkspacesClientGetResponse
- type WorkspacesClientListByResourceGroupOptions
- type WorkspacesClientListByResourceGroupResponse
- type WorkspacesClientListBySubscriptionOptions
- type WorkspacesClientListBySubscriptionResponse
- type WorkspacesClientUpdateOptions
- type WorkspacesClientUpdateResponse
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 CheckNameAvailabilityReason ¶
type CheckNameAvailabilityReason string
CheckNameAvailabilityReason - Possible reasons for a name not being available.
const ( // CheckNameAvailabilityReasonAlreadyExists - Name already exists. CheckNameAvailabilityReasonAlreadyExists CheckNameAvailabilityReason = "AlreadyExists" // CheckNameAvailabilityReasonInvalid - Name is invalid. CheckNameAvailabilityReasonInvalid CheckNameAvailabilityReason = "Invalid" )
func PossibleCheckNameAvailabilityReasonValues ¶
func PossibleCheckNameAvailabilityReasonValues() []CheckNameAvailabilityReason
PossibleCheckNameAvailabilityReasonValues returns the possible values for the CheckNameAvailabilityReason const type.
type CheckNameAvailabilityRequest ¶
type CheckNameAvailabilityRequest struct {
// The name of the resource for which availability needs to be checked.
Name *string
// The resource type.
Type *string
}
CheckNameAvailabilityRequest - The check availability request body.
func (CheckNameAvailabilityRequest) MarshalJSON ¶
func (c CheckNameAvailabilityRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CheckNameAvailabilityRequest.
func (*CheckNameAvailabilityRequest) UnmarshalJSON ¶
func (c *CheckNameAvailabilityRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CheckNameAvailabilityRequest.
type CheckNameAvailabilityResponse ¶
type CheckNameAvailabilityResponse struct {
// Detailed reason why the given name is not available.
Message *string
// Indicates if the resource name is available.
NameAvailable *bool
// The reason why the given name is not available.
Reason *CheckNameAvailabilityReason
}
CheckNameAvailabilityResponse - The check availability result.
func (CheckNameAvailabilityResponse) MarshalJSON ¶
func (c CheckNameAvailabilityResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CheckNameAvailabilityResponse.
func (*CheckNameAvailabilityResponse) UnmarshalJSON ¶
func (c *CheckNameAvailabilityResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CheckNameAvailabilityResponse.
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. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ClientFactory) NewOperationsClient ¶
func (c *ClientFactory) NewOperationsClient() *OperationsClient
NewOperationsClient creates a new instance of OperationsClient.
func (*ClientFactory) NewQuotasClient ¶
func (c *ClientFactory) NewQuotasClient() *QuotasClient
NewQuotasClient creates a new instance of QuotasClient.
func (*ClientFactory) NewWorkspaceQuotasClient ¶
func (c *ClientFactory) NewWorkspaceQuotasClient() *WorkspaceQuotasClient
NewWorkspaceQuotasClient creates a new instance of WorkspaceQuotasClient.
func (*ClientFactory) NewWorkspacesClient ¶
func (c *ClientFactory) NewWorkspacesClient() *WorkspacesClient
NewWorkspacesClient creates a new instance of WorkspacesClient.
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 EnablementStatus ¶
type EnablementStatus string
EnablementStatus - The enablement status of a feature.
const ( // EnablementStatusDisabled - The feature is disabled. EnablementStatusDisabled EnablementStatus = "Disabled" // EnablementStatusEnabled - The feature is enabled. EnablementStatusEnabled EnablementStatus = "Enabled" )
func PossibleEnablementStatusValues ¶
func PossibleEnablementStatusValues() []EnablementStatus
PossibleEnablementStatusValues returns the possible values for the EnablementStatus const type.
type FreeTrialProperties ¶
type FreeTrialProperties struct {
// READ-ONLY; The free trial state.
State *FreeTrialState
// READ-ONLY; The workspace ID in GUID format that has free trial enabled in the subscription.
WorkspaceID *string
}
FreeTrialProperties - Subscription-level location-based Playwright quota free trial properties.
func (FreeTrialProperties) MarshalJSON ¶
func (f FreeTrialProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type FreeTrialProperties.
func (*FreeTrialProperties) UnmarshalJSON ¶
func (f *FreeTrialProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type FreeTrialProperties.
type FreeTrialState ¶
type FreeTrialState string
FreeTrialState - The free trial state.
const ( // FreeTrialStateActive - The free trial is active and available for use. FreeTrialStateActive FreeTrialState = "Active" // FreeTrialStateExpired - The free trial has expired and is no longer available. FreeTrialStateExpired FreeTrialState = "Expired" // FreeTrialStateNotApplicable - The free trial is not applicable for this resource. FreeTrialStateNotApplicable FreeTrialState = "NotApplicable" )
func PossibleFreeTrialStateValues ¶
func PossibleFreeTrialStateValues() []FreeTrialState
PossibleFreeTrialStateValues returns the possible values for the FreeTrialState const type.
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 and 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 - Operations for Playwright service management. 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 2025-09-01
- options - OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.
Example ¶
Generated from example definition: 2025-09-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/playwright/armplaywright"
"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 := armplaywright.NewClientFactory("<subscriptionID>", 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 = armplaywright.OperationsClientListResponse{
// OperationListResult: armplaywright.OperationListResult{
// Value: []*armplaywright.Operation{
// {
// Name: to.Ptr("Microsoft.LoadTestService/loadTests/Write"),
// IsDataAction: to.Ptr(false),
// Display: &armplaywright.OperationDisplay{
// Provider: to.Ptr("Microsoft.LoadTestService"),
// Resource: to.Ptr("loadTests"),
// Operation: to.Ptr("Creates or updates the LoadTests"),
// Description: to.Ptr("Set LoadTests"),
// },
// },
// {
// Name: to.Ptr("Microsoft.LoadTestService/loadTests/Delete"),
// IsDataAction: to.Ptr(false),
// Display: &armplaywright.OperationDisplay{
// Provider: to.Ptr("Microsoft.LoadTestService"),
// Resource: to.Ptr("loadTests"),
// Operation: to.Ptr("Deletes the LoadTests"),
// Description: to.Ptr("Delete LoadTests"),
// },
// },
// {
// Name: to.Ptr("Microsoft.LoadTestService/loadTests/Read"),
// IsDataAction: to.Ptr(false),
// Display: &armplaywright.OperationDisplay{
// Provider: to.Ptr("Microsoft.LoadTestService"),
// Resource: to.Ptr("loadTests"),
// Operation: to.Ptr("Reads the LoadTests"),
// Description: to.Ptr("Read LoadTests"),
// },
// },
// {
// Name: to.Ptr("Microsoft.LoadTestService/PlaywrightWorkspaces/Write"),
// IsDataAction: to.Ptr(false),
// Display: &armplaywright.OperationDisplay{
// Provider: to.Ptr("Microsoft.LoadTestService"),
// Resource: to.Ptr("PlaywrightWorkspaces"),
// Operation: to.Ptr("Creates, updates or deletes Playwright workspace resource"),
// Description: to.Ptr("Creates, updates or deletes Playwright workspace resource"),
// },
// },
// {
// Name: to.Ptr("Microsoft.LoadTestService/PlaywrightWorkspaces/Read"),
// IsDataAction: to.Ptr(false),
// Display: &armplaywright.OperationDisplay{
// Provider: to.Ptr("Microsoft.LoadTestService"),
// Resource: to.Ptr("PlaywrightWorkspaces"),
// Operation: to.Ptr("Reads Playwright workspace resource"),
// Description: to.Ptr("Reads Playwright workspace resource"),
// },
// },
// },
// NextLink: to.Ptr("http://nextlink.contoso.com"),
// },
// }
}
}
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 ProvisioningState ¶
type ProvisioningState string
ProvisioningState - The status of the last resource operation.
const ( // ProvisioningStateAccepted - Request has been accepted for processing. ProvisioningStateAccepted ProvisioningState = "Accepted" // ProvisioningStateCanceled - Resource creation was canceled. ProvisioningStateCanceled ProvisioningState = "Canceled" // ProvisioningStateCreating - Resource creation is in progress. ProvisioningStateCreating ProvisioningState = "Creating" // ProvisioningStateDeleting - Resource deletion is in progress. ProvisioningStateDeleting ProvisioningState = "Deleting" // ProvisioningStateFailed - Resource creation failed. ProvisioningStateFailed ProvisioningState = "Failed" // ProvisioningStateSucceeded - Resource has been created. ProvisioningStateSucceeded ProvisioningState = "Succeeded" )
func PossibleProvisioningStateValues ¶
func PossibleProvisioningStateValues() []ProvisioningState
PossibleProvisioningStateValues returns the possible values for the ProvisioningState const type.
type Quota ¶
type Quota struct {
// The resource-specific properties for this resource.
Properties *QuotaProperties
// 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
}
Quota - Subscription-level location-based Playwright quota resource.
func (Quota) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Quota.
func (*Quota) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Quota.
type QuotaListResult ¶
type QuotaListResult struct {
// REQUIRED; The PlaywrightQuota items on this page
Value []*Quota
// The link to the next page of items
NextLink *string
}
QuotaListResult - The response of a PlaywrightQuota list operation.
func (QuotaListResult) MarshalJSON ¶
func (q QuotaListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type QuotaListResult.
func (*QuotaListResult) UnmarshalJSON ¶
func (q *QuotaListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type QuotaListResult.
type QuotaName ¶
type QuotaName string
QuotaName - Available Playwright quota types.
const ( // QuotaNameExecutionMinutes - Quota for execution duration in minutes. QuotaNameExecutionMinutes QuotaName = "ExecutionMinutes" )
func PossibleQuotaNameValues ¶
func PossibleQuotaNameValues() []QuotaName
PossibleQuotaNameValues returns the possible values for the QuotaName const type.
type QuotaProperties ¶
type QuotaProperties struct {
// READ-ONLY; The subscription-level location-based Playwright quota free trial properties.
FreeTrial *FreeTrialProperties
// READ-ONLY; The status of the last resource operation.
ProvisioningState *ProvisioningState
}
QuotaProperties - Subscription-level location-based Playwright quota resource properties.
func (QuotaProperties) MarshalJSON ¶
func (q QuotaProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type QuotaProperties.
func (*QuotaProperties) UnmarshalJSON ¶
func (q *QuotaProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type QuotaProperties.
type QuotasClient ¶
type QuotasClient struct {
// contains filtered or unexported fields
}
QuotasClient - Operations for managing Playwright quota resources at the subscription level. Don't use this type directly, use NewQuotasClient() instead.
func NewQuotasClient ¶
func NewQuotasClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*QuotasClient, error)
NewQuotasClient creates a new instance of QuotasClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*QuotasClient) Get ¶
func (client *QuotasClient) Get(ctx context.Context, location string, playwrightQuotaName QuotaName, options *QuotasClientGetOptions) (QuotasClientGetResponse, error)
Get - Gets a subscription-level location-based Playwright quota resource by name. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-09-01
- location - The name of the Azure region.
- playwrightQuotaName - The name of the PlaywrightQuota
- options - QuotasClientGetOptions contains the optional parameters for the QuotasClient.Get method.
Example ¶
Generated from example definition: 2025-09-01/PlaywrightQuotas_Get.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/playwright/armplaywright"
"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 := armplaywright.NewClientFactory("00000000-0000-0000-0000-000000000000", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewQuotasClient().Get(ctx, "eastus", armplaywright.QuotaNameExecutionMinutes, 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 = armplaywright.QuotasClientGetResponse{
// Quota: &armplaywright.Quota{
// ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/eastus/PlaywrightQuotas/ExecutionMinutes"),
// Name: to.Ptr("ExecutionMinutes"),
// Type: to.Ptr("Microsoft.LoadTestService/Locations/PlaywrightQuotas"),
// Properties: &armplaywright.QuotaProperties{
// FreeTrial: &armplaywright.FreeTrialProperties{
// WorkspaceID: to.Ptr("3fa85f64-5717-4562-b3fc-2c963f66afa6"),
// State: to.Ptr(armplaywright.FreeTrialStateActive),
// },
// ProvisioningState: to.Ptr(armplaywright.ProvisioningStateSucceeded),
// },
// },
// }
}
func (*QuotasClient) NewListBySubscriptionPager ¶
func (client *QuotasClient) NewListBySubscriptionPager(location string, options *QuotasClientListBySubscriptionOptions) *runtime.Pager[QuotasClientListBySubscriptionResponse]
NewListBySubscriptionPager - Lists Playwright quota resources for a given subscription ID.
Generated from API version 2025-09-01
- location - The name of the Azure region.
- options - QuotasClientListBySubscriptionOptions contains the optional parameters for the QuotasClient.NewListBySubscriptionPager method.
Example ¶
Generated from example definition: 2025-09-01/PlaywrightQuotas_ListBySubscription.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/playwright/armplaywright"
"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 := armplaywright.NewClientFactory("00000000-0000-0000-0000-000000000000", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewQuotasClient().NewListBySubscriptionPager("eastus", 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 = armplaywright.QuotasClientListBySubscriptionResponse{
// QuotaListResult: armplaywright.QuotaListResult{
// Value: []*armplaywright.Quota{
// {
// ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LoadTestService/locations/eastus/PlaywrightQuotas/ExecutionMinutes"),
// Name: to.Ptr("ExecutionMinutes"),
// Type: to.Ptr("Microsoft.LoadTestService/Locations/PlaywrightQuotas"),
// Properties: &armplaywright.QuotaProperties{
// FreeTrial: &armplaywright.FreeTrialProperties{
// WorkspaceID: to.Ptr("3fa85f64-5717-4562-b3fc-2c963f66afa6"),
// State: to.Ptr(armplaywright.FreeTrialStateActive),
// },
// ProvisioningState: to.Ptr(armplaywright.ProvisioningStateSucceeded),
// },
// },
// },
// },
// }
}
}
type QuotasClientGetOptions ¶
type QuotasClientGetOptions struct {
}
QuotasClientGetOptions contains the optional parameters for the QuotasClient.Get method.
type QuotasClientGetResponse ¶
type QuotasClientGetResponse struct {
// Subscription-level location-based Playwright quota resource.
Quota
}
QuotasClientGetResponse contains the response from method QuotasClient.Get.
type QuotasClientListBySubscriptionOptions ¶
type QuotasClientListBySubscriptionOptions struct {
}
QuotasClientListBySubscriptionOptions contains the optional parameters for the QuotasClient.NewListBySubscriptionPager method.
type QuotasClientListBySubscriptionResponse ¶
type QuotasClientListBySubscriptionResponse struct {
// The response of a PlaywrightQuota list operation.
QuotaListResult
}
QuotasClientListBySubscriptionResponse contains the response from method QuotasClient.NewListBySubscriptionPager.
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 Workspace ¶
type Workspace struct {
// REQUIRED; The geo-location where the resource lives
Location *string
// The resource-specific properties for this resource.
Properties *WorkspaceProperties
// 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
}
Workspace - Playwright workspace resource.
func (Workspace) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Workspace.
func (*Workspace) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Workspace.
type WorkspaceFreeTrialProperties ¶
type WorkspaceFreeTrialProperties struct {
// READ-ONLY; The allocated limit value (e.g., allocated free execution minutes).
AllocatedValue *int32
// READ-ONLY; The free trial creation timestamp in UTC.
CreatedAt *time.Time
// READ-ONLY; The free trial expiration timestamp in UTC.
ExpiryAt *time.Time
// READ-ONLY; The percentage of the free trial quota used.
PercentageUsed *float32
// READ-ONLY; The used value (e.g., used free execution minutes).
UsedValue *float32
}
WorkspaceFreeTrialProperties - Playwright workspace quota free trial properties.
func (WorkspaceFreeTrialProperties) MarshalJSON ¶
func (w WorkspaceFreeTrialProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type WorkspaceFreeTrialProperties.
func (*WorkspaceFreeTrialProperties) UnmarshalJSON ¶
func (w *WorkspaceFreeTrialProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type WorkspaceFreeTrialProperties.
type WorkspaceListResult ¶
type WorkspaceListResult struct {
// REQUIRED; The PlaywrightWorkspace items on this page
Value []*Workspace
// The link to the next page of items
NextLink *string
}
WorkspaceListResult - The response of a PlaywrightWorkspace list operation.
func (WorkspaceListResult) MarshalJSON ¶
func (w WorkspaceListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type WorkspaceListResult.
func (*WorkspaceListResult) UnmarshalJSON ¶
func (w *WorkspaceListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type WorkspaceListResult.
type WorkspaceProperties ¶
type WorkspaceProperties struct {
// Enables the workspace to use local authentication through service access tokens for operations.
LocalAuth *EnablementStatus
// Controls the connection region for client workers to cloud-hosted browsers. When enabled, workers connect to browsers in
// the closest Azure region for lower latency. When disabled, workers connect to browsers in the Azure region where the workspace
// was created.
RegionalAffinity *EnablementStatus
// READ-ONLY; The workspace data plane service API URI.
DataplaneURI *string
// READ-ONLY; The status of the last resource operation.
ProvisioningState *ProvisioningState
// READ-ONLY; The workspace ID in GUID format.
WorkspaceID *string
}
WorkspaceProperties - Playwright workspace resource properties.
func (WorkspaceProperties) MarshalJSON ¶
func (w WorkspaceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type WorkspaceProperties.
func (*WorkspaceProperties) UnmarshalJSON ¶
func (w *WorkspaceProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type WorkspaceProperties.
type WorkspaceQuota ¶
type WorkspaceQuota struct {
// The resource-specific properties for this resource.
Properties *WorkspaceQuotaProperties
// 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
}
WorkspaceQuota - Playwright workspace quota resource.
func (WorkspaceQuota) MarshalJSON ¶
func (w WorkspaceQuota) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type WorkspaceQuota.
func (*WorkspaceQuota) UnmarshalJSON ¶
func (w *WorkspaceQuota) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type WorkspaceQuota.
type WorkspaceQuotaListResult ¶
type WorkspaceQuotaListResult struct {
// REQUIRED; The PlaywrightWorkspaceQuota items on this page
Value []*WorkspaceQuota
// The link to the next page of items
NextLink *string
}
WorkspaceQuotaListResult - The response of a PlaywrightWorkspaceQuota list operation.
func (WorkspaceQuotaListResult) MarshalJSON ¶
func (w WorkspaceQuotaListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type WorkspaceQuotaListResult.
func (*WorkspaceQuotaListResult) UnmarshalJSON ¶
func (w *WorkspaceQuotaListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type WorkspaceQuotaListResult.
type WorkspaceQuotaProperties ¶
type WorkspaceQuotaProperties struct {
// READ-ONLY; The Playwright workspace quota free trial properties.
FreeTrial *WorkspaceFreeTrialProperties
// READ-ONLY; The status of the last resource operation.
ProvisioningState *ProvisioningState
}
WorkspaceQuotaProperties - Playwright workspace quota resource properties.
func (WorkspaceQuotaProperties) MarshalJSON ¶
func (w WorkspaceQuotaProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type WorkspaceQuotaProperties.
func (*WorkspaceQuotaProperties) UnmarshalJSON ¶
func (w *WorkspaceQuotaProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type WorkspaceQuotaProperties.
type WorkspaceQuotasClient ¶
type WorkspaceQuotasClient struct {
// contains filtered or unexported fields
}
WorkspaceQuotasClient - Operations for managing Playwright workspace quota resources. Don't use this type directly, use NewWorkspaceQuotasClient() instead.
func NewWorkspaceQuotasClient ¶
func NewWorkspaceQuotasClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*WorkspaceQuotasClient, error)
NewWorkspaceQuotasClient creates a new instance of WorkspaceQuotasClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*WorkspaceQuotasClient) Get ¶
func (client *WorkspaceQuotasClient) Get(ctx context.Context, resourceGroupName string, playwrightWorkspaceName string, quotaName QuotaName, options *WorkspaceQuotasClientGetOptions) (WorkspaceQuotasClientGetResponse, error)
Get - Gets a Playwright workspace quota resource by name. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-09-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- playwrightWorkspaceName - The name of the PlaywrightWorkspace
- quotaName - The name of the PlaywrightWorkspaceQuota
- options - WorkspaceQuotasClientGetOptions contains the optional parameters for the WorkspaceQuotasClient.Get method.
Example ¶
Generated from example definition: 2025-09-01/PlaywrightWorkspaceQuotas_Get.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/playwright/armplaywright"
"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 := armplaywright.NewClientFactory("00000000-0000-0000-0000-000000000000", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewWorkspaceQuotasClient().Get(ctx, "dummyrg", "myWorkspace", armplaywright.QuotaNameExecutionMinutes, 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 = armplaywright.WorkspaceQuotasClientGetResponse{
// WorkspaceQuota: &armplaywright.WorkspaceQuota{
// ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.LoadTestService/PlaywrightWorkspaces/myWorkspace/quotas/ExecutionMinutes"),
// Name: to.Ptr("ExecutionMinutes"),
// Type: to.Ptr("Microsoft.LoadTestService/PlaywrightWorkspaces/Quotas"),
// Properties: &armplaywright.WorkspaceQuotaProperties{
// FreeTrial: &armplaywright.WorkspaceFreeTrialProperties{
// CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-05-31T10:19:36.081Z"); return t}()),
// ExpiryAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2026-03-31T10:19:36.081Z"); return t}()),
// AllocatedValue: to.Ptr[int32](10),
// UsedValue: to.Ptr[float32](10),
// PercentageUsed: to.Ptr[float32](100),
// },
// ProvisioningState: to.Ptr(armplaywright.ProvisioningStateSucceeded),
// },
// },
// }
}
func (*WorkspaceQuotasClient) NewListByPlaywrightWorkspacePager ¶
func (client *WorkspaceQuotasClient) NewListByPlaywrightWorkspacePager(resourceGroupName string, playwrightWorkspaceName string, options *WorkspaceQuotasClientListByPlaywrightWorkspaceOptions) *runtime.Pager[WorkspaceQuotasClientListByPlaywrightWorkspaceResponse]
NewListByPlaywrightWorkspacePager - Lists quota resources for a given Playwright workspace.
Generated from API version 2025-09-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- playwrightWorkspaceName - The name of the PlaywrightWorkspace
- options - WorkspaceQuotasClientListByPlaywrightWorkspaceOptions contains the optional parameters for the WorkspaceQuotasClient.NewListByPlaywrightWorkspacePager method.
Example ¶
Generated from example definition: 2025-09-01/PlaywrightWorkspaceQuotas_ListByPlaywrightWorkspace.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/playwright/armplaywright"
"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 := armplaywright.NewClientFactory("00000000-0000-0000-0000-000000000000", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewWorkspaceQuotasClient().NewListByPlaywrightWorkspacePager("dummyrg", "myWorkspace", 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 = armplaywright.WorkspaceQuotasClientListByPlaywrightWorkspaceResponse{
// WorkspaceQuotaListResult: armplaywright.WorkspaceQuotaListResult{
// Value: []*armplaywright.WorkspaceQuota{
// {
// ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.LoadTestService/PlaywrightWorkspaces/myWorkspace/quotas/ExecutionMinutes"),
// Name: to.Ptr("ExecutionMinutes"),
// Type: to.Ptr("Microsoft.LoadTestService/PlaywrightWorkspaces/Quotas"),
// Properties: &armplaywright.WorkspaceQuotaProperties{
// FreeTrial: &armplaywright.WorkspaceFreeTrialProperties{
// CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-05-31T10:19:36.081Z"); return t}()),
// ExpiryAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2026-03-31T10:19:36.081Z"); return t}()),
// AllocatedValue: to.Ptr[int32](10),
// UsedValue: to.Ptr[float32](10),
// PercentageUsed: to.Ptr[float32](100),
// },
// ProvisioningState: to.Ptr(armplaywright.ProvisioningStateSucceeded),
// },
// },
// },
// },
// }
}
}
type WorkspaceQuotasClientGetOptions ¶
type WorkspaceQuotasClientGetOptions struct {
}
WorkspaceQuotasClientGetOptions contains the optional parameters for the WorkspaceQuotasClient.Get method.
type WorkspaceQuotasClientGetResponse ¶
type WorkspaceQuotasClientGetResponse struct {
// Playwright workspace quota resource.
WorkspaceQuota
}
WorkspaceQuotasClientGetResponse contains the response from method WorkspaceQuotasClient.Get.
type WorkspaceQuotasClientListByPlaywrightWorkspaceOptions ¶
type WorkspaceQuotasClientListByPlaywrightWorkspaceOptions struct {
}
WorkspaceQuotasClientListByPlaywrightWorkspaceOptions contains the optional parameters for the WorkspaceQuotasClient.NewListByPlaywrightWorkspacePager method.
type WorkspaceQuotasClientListByPlaywrightWorkspaceResponse ¶
type WorkspaceQuotasClientListByPlaywrightWorkspaceResponse struct {
// The response of a PlaywrightWorkspaceQuota list operation.
WorkspaceQuotaListResult
}
WorkspaceQuotasClientListByPlaywrightWorkspaceResponse contains the response from method WorkspaceQuotasClient.NewListByPlaywrightWorkspacePager.
type WorkspaceUpdate ¶
type WorkspaceUpdate struct {
// The resource-specific properties for this resource.
Properties *WorkspaceUpdateProperties
// Resource tags.
Tags map[string]*string
}
WorkspaceUpdate - The type used for update operations of the PlaywrightWorkspace.
func (WorkspaceUpdate) MarshalJSON ¶
func (w WorkspaceUpdate) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type WorkspaceUpdate.
func (*WorkspaceUpdate) UnmarshalJSON ¶
func (w *WorkspaceUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type WorkspaceUpdate.
type WorkspaceUpdateProperties ¶
type WorkspaceUpdateProperties struct {
// Enables the workspace to use local authentication through service access tokens for operations.
LocalAuth *EnablementStatus
// Controls the connection region for client workers to cloud-hosted browsers. When enabled, workers connect to browsers in
// the closest Azure region for lower latency. When disabled, workers connect to browsers in the Azure region where the workspace
// was created.
RegionalAffinity *EnablementStatus
}
WorkspaceUpdateProperties - The updatable properties of the PlaywrightWorkspace.
func (WorkspaceUpdateProperties) MarshalJSON ¶
func (w WorkspaceUpdateProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type WorkspaceUpdateProperties.
func (*WorkspaceUpdateProperties) UnmarshalJSON ¶
func (w *WorkspaceUpdateProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type WorkspaceUpdateProperties.
type WorkspacesClient ¶
type WorkspacesClient struct {
// contains filtered or unexported fields
}
WorkspacesClient - Operations for managing Playwright workspace resources. Don't use this type directly, use NewWorkspacesClient() instead.
func NewWorkspacesClient ¶
func NewWorkspacesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*WorkspacesClient, error)
NewWorkspacesClient creates a new instance of WorkspacesClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*WorkspacesClient) BeginCreateOrUpdate ¶
func (client *WorkspacesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, playwrightWorkspaceName string, resource Workspace, options *WorkspacesClientBeginCreateOrUpdateOptions) (*runtime.Poller[WorkspacesClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Create a PlaywrightWorkspace If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-09-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- playwrightWorkspaceName - The name of the PlaywrightWorkspace
- resource - Resource create parameters.
- options - WorkspacesClientBeginCreateOrUpdateOptions contains the optional parameters for the WorkspacesClient.BeginCreateOrUpdate method.
func (*WorkspacesClient) BeginDelete ¶
func (client *WorkspacesClient) BeginDelete(ctx context.Context, resourceGroupName string, playwrightWorkspaceName string, options *WorkspacesClientBeginDeleteOptions) (*runtime.Poller[WorkspacesClientDeleteResponse], error)
BeginDelete - Deletes a Playwright workspace resource asynchronously. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-09-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- playwrightWorkspaceName - The name of the PlaywrightWorkspace
- options - WorkspacesClientBeginDeleteOptions contains the optional parameters for the WorkspacesClient.BeginDelete method.
Example ¶
Generated from example definition: 2025-09-01/PlaywrightWorkspaces_Delete.json
package main
import (
"context"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/playwright/armplaywright"
"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 := armplaywright.NewClientFactory("00000000-0000-0000-0000-000000000000", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewWorkspacesClient().BeginDelete(ctx, "dummyrg", "myWorkspace", 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 (*WorkspacesClient) CheckNameAvailability ¶
func (client *WorkspacesClient) CheckNameAvailability(ctx context.Context, body CheckNameAvailabilityRequest, options *WorkspacesClientCheckNameAvailabilityOptions) (WorkspacesClientCheckNameAvailabilityResponse, error)
CheckNameAvailability - Checks if a Playwright workspace name is available globally. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-09-01
- body - The CheckAvailability request
- options - WorkspacesClientCheckNameAvailabilityOptions contains the optional parameters for the WorkspacesClient.CheckNameAvailability method.
Example ¶
Generated from example definition: 2025-09-01/PlaywrightWorkspaces_CheckNameAvailability.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/playwright/armplaywright"
"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 := armplaywright.NewClientFactory("00000000-0000-0000-0000-000000000000", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewWorkspacesClient().CheckNameAvailability(ctx, armplaywright.CheckNameAvailabilityRequest{
Name: to.Ptr("dummyName"),
Type: to.Ptr("Microsoft.LoadTestService/PlaywrightWorkspaces"),
}, 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 = armplaywright.WorkspacesClientCheckNameAvailabilityResponse{
// CheckNameAvailabilityResponse: &armplaywright.CheckNameAvailabilityResponse{
// NameAvailable: to.Ptr(true),
// Message: to.Ptr("Test message."),
// },
// }
}
func (*WorkspacesClient) Get ¶
func (client *WorkspacesClient) Get(ctx context.Context, resourceGroupName string, playwrightWorkspaceName string, options *WorkspacesClientGetOptions) (WorkspacesClientGetResponse, error)
Get - Get a PlaywrightWorkspace If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-09-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- playwrightWorkspaceName - The name of the PlaywrightWorkspace
- options - WorkspacesClientGetOptions contains the optional parameters for the WorkspacesClient.Get method.
func (*WorkspacesClient) NewListByResourceGroupPager ¶
func (client *WorkspacesClient) NewListByResourceGroupPager(resourceGroupName string, options *WorkspacesClientListByResourceGroupOptions) *runtime.Pager[WorkspacesClientListByResourceGroupResponse]
NewListByResourceGroupPager - List PlaywrightWorkspace resources by resource group
Generated from API version 2025-09-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- options - WorkspacesClientListByResourceGroupOptions contains the optional parameters for the WorkspacesClient.NewListByResourceGroupPager method.
func (*WorkspacesClient) NewListBySubscriptionPager ¶
func (client *WorkspacesClient) NewListBySubscriptionPager(options *WorkspacesClientListBySubscriptionOptions) *runtime.Pager[WorkspacesClientListBySubscriptionResponse]
NewListBySubscriptionPager - List PlaywrightWorkspace resources by subscription ID
Generated from API version 2025-09-01
- options - WorkspacesClientListBySubscriptionOptions contains the optional parameters for the WorkspacesClient.NewListBySubscriptionPager method.
func (*WorkspacesClient) Update ¶
func (client *WorkspacesClient) Update(ctx context.Context, resourceGroupName string, playwrightWorkspaceName string, properties WorkspaceUpdate, options *WorkspacesClientUpdateOptions) (WorkspacesClientUpdateResponse, error)
Update - Updates a Playwright workspace resource synchronously. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2025-09-01
- resourceGroupName - The name of the resource group. The name is case insensitive.
- playwrightWorkspaceName - The name of the PlaywrightWorkspace
- properties - The resource properties to be updated.
- options - WorkspacesClientUpdateOptions contains the optional parameters for the WorkspacesClient.Update method.
Example ¶
Generated from example definition: 2025-09-01/PlaywrightWorkspaces_Update.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/playwright/armplaywright"
"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 := armplaywright.NewClientFactory("00000000-0000-0000-0000-000000000000", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewWorkspacesClient().Update(ctx, "dummyrg", "myWorkspace", armplaywright.WorkspaceUpdate{
Tags: map[string]*string{
"Team": to.Ptr("Dev Exp"),
"Division": to.Ptr("LT"),
},
Properties: &armplaywright.WorkspaceUpdateProperties{
RegionalAffinity: to.Ptr(armplaywright.EnablementStatusDisabled),
},
}, 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 = armplaywright.WorkspacesClientUpdateResponse{
// Workspace: &armplaywright.Workspace{
// Location: to.Ptr("westus3"),
// Properties: &armplaywright.WorkspaceProperties{
// DataplaneURI: to.Ptr("https://api.dataplane.00000000-0000-0000-0000-000000000000.domain.com"),
// RegionalAffinity: to.Ptr(armplaywright.EnablementStatusDisabled),
// LocalAuth: to.Ptr(armplaywright.EnablementStatusEnabled),
// WorkspaceID: to.Ptr("00000000-0000-0000-0000-000000000000"),
// ProvisioningState: to.Ptr(armplaywright.ProvisioningStateSucceeded),
// },
// ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.LoadTestService/PlaywrightWorkspaces/myWorkspace"),
// Name: to.Ptr("myWorkspace"),
// Type: to.Ptr("Microsoft.LoadTestService/PlaywrightWorkspaces"),
// Tags: map[string]*string{
// "Team": to.Ptr("Dev Exp"),
// "Division": to.Ptr("LT"),
// },
// SystemData: &armplaywright.SystemData{
// CreatedBy: to.Ptr("userId1001"),
// CreatedByType: to.Ptr(armplaywright.CreatedByTypeUser),
// CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-09-28T12:32:33Z"); return t}()),
// LastModifiedBy: to.Ptr("userId1001"),
// LastModifiedByType: to.Ptr(armplaywright.CreatedByTypeUser),
// LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-09-28T12:32:33Z"); return t}()),
// },
// },
// }
}
type WorkspacesClientBeginCreateOrUpdateOptions ¶
type WorkspacesClientBeginCreateOrUpdateOptions struct {
// Resumes the long-running operation from the provided token.
ResumeToken string
}
WorkspacesClientBeginCreateOrUpdateOptions contains the optional parameters for the WorkspacesClient.BeginCreateOrUpdate method.
type WorkspacesClientBeginDeleteOptions ¶
type WorkspacesClientBeginDeleteOptions struct {
// Resumes the long-running operation from the provided token.
ResumeToken string
}
WorkspacesClientBeginDeleteOptions contains the optional parameters for the WorkspacesClient.BeginDelete method.
type WorkspacesClientCheckNameAvailabilityOptions ¶
type WorkspacesClientCheckNameAvailabilityOptions struct {
}
WorkspacesClientCheckNameAvailabilityOptions contains the optional parameters for the WorkspacesClient.CheckNameAvailability method.
type WorkspacesClientCheckNameAvailabilityResponse ¶
type WorkspacesClientCheckNameAvailabilityResponse struct {
// The check availability result.
CheckNameAvailabilityResponse
}
WorkspacesClientCheckNameAvailabilityResponse contains the response from method WorkspacesClient.CheckNameAvailability.
type WorkspacesClientCreateOrUpdateResponse ¶
type WorkspacesClientCreateOrUpdateResponse struct {
// Playwright workspace resource.
Workspace
}
WorkspacesClientCreateOrUpdateResponse contains the response from method WorkspacesClient.BeginCreateOrUpdate.
type WorkspacesClientDeleteResponse ¶
type WorkspacesClientDeleteResponse struct {
}
WorkspacesClientDeleteResponse contains the response from method WorkspacesClient.BeginDelete.
type WorkspacesClientGetOptions ¶
type WorkspacesClientGetOptions struct {
}
WorkspacesClientGetOptions contains the optional parameters for the WorkspacesClient.Get method.
type WorkspacesClientGetResponse ¶
type WorkspacesClientGetResponse struct {
// Playwright workspace resource.
Workspace
}
WorkspacesClientGetResponse contains the response from method WorkspacesClient.Get.
type WorkspacesClientListByResourceGroupOptions ¶
type WorkspacesClientListByResourceGroupOptions struct {
}
WorkspacesClientListByResourceGroupOptions contains the optional parameters for the WorkspacesClient.NewListByResourceGroupPager method.
type WorkspacesClientListByResourceGroupResponse ¶
type WorkspacesClientListByResourceGroupResponse struct {
// The response of a PlaywrightWorkspace list operation.
WorkspaceListResult
}
WorkspacesClientListByResourceGroupResponse contains the response from method WorkspacesClient.NewListByResourceGroupPager.
type WorkspacesClientListBySubscriptionOptions ¶
type WorkspacesClientListBySubscriptionOptions struct {
}
WorkspacesClientListBySubscriptionOptions contains the optional parameters for the WorkspacesClient.NewListBySubscriptionPager method.
type WorkspacesClientListBySubscriptionResponse ¶
type WorkspacesClientListBySubscriptionResponse struct {
// The response of a PlaywrightWorkspace list operation.
WorkspaceListResult
}
WorkspacesClientListBySubscriptionResponse contains the response from method WorkspacesClient.NewListBySubscriptionPager.
type WorkspacesClientUpdateOptions ¶
type WorkspacesClientUpdateOptions struct {
}
WorkspacesClientUpdateOptions contains the optional parameters for the WorkspacesClient.Update method.
type WorkspacesClientUpdateResponse ¶
type WorkspacesClientUpdateResponse struct {
// Playwright workspace resource.
Workspace
}
WorkspacesClientUpdateResponse contains the response from method WorkspacesClient.Update.