// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Code generated by Microsoft (R) Go Code Generator. DO NOT EDIT.

package armplaywright

import "time"

// CheckNameAvailabilityRequest - The check availability request body.
type CheckNameAvailabilityRequest struct {
	// The name of the resource for which availability needs to be checked.
	Name *string

	// The resource type.
	Type *string
}

// CheckNameAvailabilityResponse - The check availability result.
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
}

// FreeTrialProperties - Subscription-level location-based Playwright quota free trial properties.
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
}

// Operation - REST API Operation
//
// Details of a REST API operation, returned from the Resource Provider Operations API
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
}

// OperationDisplay - Localized display information for and operation.
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
}

// OperationListResult - A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to
// get the next set of results.
type OperationListResult struct {
	// REQUIRED; The Operation items on this page
	Value []*Operation

	// The link to the next page of items
	NextLink *string
}

// Quota - Subscription-level location-based Playwright quota resource.
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
}

// QuotaListResult - The response of a PlaywrightQuota list operation.
type QuotaListResult struct {
	// REQUIRED; The PlaywrightQuota items on this page
	Value []*Quota

	// The link to the next page of items
	NextLink *string
}

// QuotaProperties - Subscription-level location-based Playwright quota resource properties.
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
}

// SystemData - Metadata pertaining to creation and last modification of the resource.
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
}

// Workspace - Playwright workspace resource.
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
}

// WorkspaceFreeTrialProperties - Playwright workspace quota free trial properties.
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
}

// WorkspaceListResult - The response of a PlaywrightWorkspace list operation.
type WorkspaceListResult struct {
	// REQUIRED; The PlaywrightWorkspace items on this page
	Value []*Workspace

	// The link to the next page of items
	NextLink *string
}

// WorkspaceProperties - Playwright workspace resource properties.
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
}

// WorkspaceQuota - Playwright workspace quota resource.
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
}

// WorkspaceQuotaListResult - The response of a PlaywrightWorkspaceQuota list operation.
type WorkspaceQuotaListResult struct {
	// REQUIRED; The PlaywrightWorkspaceQuota items on this page
	Value []*WorkspaceQuota

	// The link to the next page of items
	NextLink *string
}

// WorkspaceQuotaProperties - Playwright workspace quota resource properties.
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
}

// WorkspaceUpdate - The type used for update operations of the PlaywrightWorkspace.
type WorkspaceUpdate struct {
	// The resource-specific properties for this resource.
	Properties *WorkspaceUpdateProperties

	// Resource tags.
	Tags map[string]*string
}

// WorkspaceUpdateProperties - The updatable properties of the PlaywrightWorkspace.
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
}
