@azure/arm-playwright 1.0.0-beta.1 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/browser/api/operations/operations.d.ts +1 -1
- package/dist/browser/api/operations/operations.js +9 -4
- package/dist/browser/api/operations/operations.js.map +1 -1
- package/dist/browser/api/playwrightManagementContext.d.ts +5 -2
- package/dist/browser/api/playwrightManagementContext.js +19 -12
- package/dist/browser/api/playwrightManagementContext.js.map +1 -1
- package/dist/browser/api/playwrightQuotas/operations.d.ts +3 -3
- package/dist/browser/api/playwrightQuotas/operations.js +19 -9
- package/dist/browser/api/playwrightQuotas/operations.js.map +1 -1
- package/dist/browser/api/playwrightWorkspaceQuotas/operations.d.ts +3 -3
- package/dist/browser/api/playwrightWorkspaceQuotas/operations.js +19 -9
- package/dist/browser/api/playwrightWorkspaceQuotas/operations.js.map +1 -1
- package/dist/browser/api/playwrightWorkspaces/operations.d.ts +4 -4
- package/dist/browser/api/playwrightWorkspaces/operations.js +66 -31
- package/dist/browser/api/playwrightWorkspaces/operations.js.map +1 -1
- package/dist/browser/classic/operations/index.d.ts +1 -1
- package/dist/browser/classic/operations/index.js +3 -1
- package/dist/browser/classic/operations/index.js.map +1 -1
- package/dist/browser/classic/playwrightQuotas/index.d.ts +3 -3
- package/dist/browser/classic/playwrightQuotas/index.js +3 -1
- package/dist/browser/classic/playwrightQuotas/index.js.map +1 -1
- package/dist/browser/classic/playwrightWorkspaceQuotas/index.d.ts +3 -3
- package/dist/browser/classic/playwrightWorkspaceQuotas/index.js +3 -1
- package/dist/browser/classic/playwrightWorkspaceQuotas/index.js.map +1 -1
- package/dist/browser/classic/playwrightWorkspaces/index.d.ts +4 -4
- package/dist/browser/classic/playwrightWorkspaces/index.js +3 -1
- package/dist/browser/classic/playwrightWorkspaces/index.js.map +1 -1
- package/dist/browser/index.d.ts +2 -0
- package/dist/browser/index.js +2 -0
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/models/models.d.ts +41 -39
- package/dist/browser/models/models.js +14 -13
- package/dist/browser/models/models.js.map +1 -1
- package/dist/browser/playwrightManagementClient.d.ts +4 -4
- package/dist/browser/playwrightManagementClient.js +19 -6
- package/dist/browser/playwrightManagementClient.js.map +1 -1
- package/dist/browser/restorePollerHelpers.js +12 -14
- package/dist/browser/restorePollerHelpers.js.map +1 -1
- package/dist/browser/static-helpers/cloudSettingHelpers.d.ts +13 -0
- package/dist/browser/static-helpers/cloudSettingHelpers.js +29 -0
- package/dist/browser/static-helpers/cloudSettingHelpers.js.map +1 -0
- package/dist/browser/static-helpers/pagingHelpers.js +31 -50
- package/dist/browser/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/browser/static-helpers/pollingHelpers.js +14 -11
- package/dist/browser/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/browser/static-helpers/urlTemplate.js +4 -3
- package/dist/browser/static-helpers/urlTemplate.js.map +1 -1
- package/dist/commonjs/api/operations/operations.d.ts +1 -1
- package/dist/commonjs/api/operations/operations.js +9 -4
- package/dist/commonjs/api/operations/operations.js.map +1 -1
- package/dist/commonjs/api/playwrightManagementContext.d.ts +5 -2
- package/dist/commonjs/api/playwrightManagementContext.js +19 -12
- package/dist/commonjs/api/playwrightManagementContext.js.map +1 -1
- package/dist/commonjs/api/playwrightQuotas/operations.d.ts +3 -3
- package/dist/commonjs/api/playwrightQuotas/operations.js +19 -9
- package/dist/commonjs/api/playwrightQuotas/operations.js.map +1 -1
- package/dist/commonjs/api/playwrightWorkspaceQuotas/operations.d.ts +3 -3
- package/dist/commonjs/api/playwrightWorkspaceQuotas/operations.js +19 -9
- package/dist/commonjs/api/playwrightWorkspaceQuotas/operations.js.map +1 -1
- package/dist/commonjs/api/playwrightWorkspaces/operations.d.ts +4 -4
- package/dist/commonjs/api/playwrightWorkspaces/operations.js +66 -31
- package/dist/commonjs/api/playwrightWorkspaces/operations.js.map +1 -1
- package/dist/commonjs/classic/operations/index.d.ts +1 -1
- package/dist/commonjs/classic/operations/index.js +3 -1
- package/dist/commonjs/classic/operations/index.js.map +1 -1
- package/dist/commonjs/classic/playwrightQuotas/index.d.ts +3 -3
- package/dist/commonjs/classic/playwrightQuotas/index.js +3 -1
- package/dist/commonjs/classic/playwrightQuotas/index.js.map +1 -1
- package/dist/commonjs/classic/playwrightWorkspaceQuotas/index.d.ts +3 -3
- package/dist/commonjs/classic/playwrightWorkspaceQuotas/index.js +3 -1
- package/dist/commonjs/classic/playwrightWorkspaceQuotas/index.js.map +1 -1
- package/dist/commonjs/classic/playwrightWorkspaces/index.d.ts +4 -4
- package/dist/commonjs/classic/playwrightWorkspaces/index.js +3 -1
- package/dist/commonjs/classic/playwrightWorkspaces/index.js.map +1 -1
- package/dist/commonjs/index.d.ts +2 -0
- package/dist/commonjs/index.js +3 -1
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/models/models.d.ts +41 -39
- package/dist/commonjs/models/models.js +14 -13
- package/dist/commonjs/models/models.js.map +1 -1
- package/dist/commonjs/playwrightManagementClient.d.ts +4 -4
- package/dist/commonjs/playwrightManagementClient.js +23 -10
- package/dist/commonjs/playwrightManagementClient.js.map +1 -1
- package/dist/commonjs/restorePollerHelpers.js +12 -14
- package/dist/commonjs/restorePollerHelpers.js.map +1 -1
- package/dist/commonjs/static-helpers/cloudSettingHelpers.d.ts +13 -0
- package/dist/commonjs/static-helpers/cloudSettingHelpers.js +33 -0
- package/dist/commonjs/static-helpers/cloudSettingHelpers.js.map +1 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js +31 -50
- package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/commonjs/static-helpers/pollingHelpers.js +14 -11
- package/dist/commonjs/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/commonjs/static-helpers/urlTemplate.js +4 -3
- package/dist/commonjs/static-helpers/urlTemplate.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/api/operations/operations.d.ts +1 -1
- package/dist/esm/api/operations/operations.js +9 -4
- package/dist/esm/api/operations/operations.js.map +1 -1
- package/dist/esm/api/playwrightManagementContext.d.ts +5 -2
- package/dist/esm/api/playwrightManagementContext.js +19 -12
- package/dist/esm/api/playwrightManagementContext.js.map +1 -1
- package/dist/esm/api/playwrightQuotas/operations.d.ts +3 -3
- package/dist/esm/api/playwrightQuotas/operations.js +19 -9
- package/dist/esm/api/playwrightQuotas/operations.js.map +1 -1
- package/dist/esm/api/playwrightWorkspaceQuotas/operations.d.ts +3 -3
- package/dist/esm/api/playwrightWorkspaceQuotas/operations.js +19 -9
- package/dist/esm/api/playwrightWorkspaceQuotas/operations.js.map +1 -1
- package/dist/esm/api/playwrightWorkspaces/operations.d.ts +4 -4
- package/dist/esm/api/playwrightWorkspaces/operations.js +66 -31
- package/dist/esm/api/playwrightWorkspaces/operations.js.map +1 -1
- package/dist/esm/classic/operations/index.d.ts +1 -1
- package/dist/esm/classic/operations/index.js +3 -1
- package/dist/esm/classic/operations/index.js.map +1 -1
- package/dist/esm/classic/playwrightQuotas/index.d.ts +3 -3
- package/dist/esm/classic/playwrightQuotas/index.js +3 -1
- package/dist/esm/classic/playwrightQuotas/index.js.map +1 -1
- package/dist/esm/classic/playwrightWorkspaceQuotas/index.d.ts +3 -3
- package/dist/esm/classic/playwrightWorkspaceQuotas/index.js +3 -1
- package/dist/esm/classic/playwrightWorkspaceQuotas/index.js.map +1 -1
- package/dist/esm/classic/playwrightWorkspaces/index.d.ts +4 -4
- package/dist/esm/classic/playwrightWorkspaces/index.js +3 -1
- package/dist/esm/classic/playwrightWorkspaces/index.js.map +1 -1
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/models/models.d.ts +41 -39
- package/dist/esm/models/models.js +14 -13
- package/dist/esm/models/models.js.map +1 -1
- package/dist/esm/playwrightManagementClient.d.ts +4 -4
- package/dist/esm/playwrightManagementClient.js +19 -6
- package/dist/esm/playwrightManagementClient.js.map +1 -1
- package/dist/esm/restorePollerHelpers.js +12 -14
- package/dist/esm/restorePollerHelpers.js.map +1 -1
- package/dist/esm/static-helpers/cloudSettingHelpers.d.ts +13 -0
- package/dist/esm/static-helpers/cloudSettingHelpers.js +29 -0
- package/dist/esm/static-helpers/cloudSettingHelpers.js.map +1 -0
- package/dist/esm/static-helpers/pagingHelpers.js +31 -50
- package/dist/esm/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/esm/static-helpers/pollingHelpers.js +14 -11
- package/dist/esm/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/esm/static-helpers/urlTemplate.js +4 -3
- package/dist/esm/static-helpers/urlTemplate.js.map +1 -1
- package/dist/react-native/api/operations/operations.d.ts +1 -1
- package/dist/react-native/api/operations/operations.js +9 -4
- package/dist/react-native/api/operations/operations.js.map +1 -1
- package/dist/react-native/api/playwrightManagementContext.d.ts +5 -2
- package/dist/react-native/api/playwrightManagementContext.js +19 -12
- package/dist/react-native/api/playwrightManagementContext.js.map +1 -1
- package/dist/react-native/api/playwrightQuotas/operations.d.ts +3 -3
- package/dist/react-native/api/playwrightQuotas/operations.js +19 -9
- package/dist/react-native/api/playwrightQuotas/operations.js.map +1 -1
- package/dist/react-native/api/playwrightWorkspaceQuotas/operations.d.ts +3 -3
- package/dist/react-native/api/playwrightWorkspaceQuotas/operations.js +19 -9
- package/dist/react-native/api/playwrightWorkspaceQuotas/operations.js.map +1 -1
- package/dist/react-native/api/playwrightWorkspaces/operations.d.ts +4 -4
- package/dist/react-native/api/playwrightWorkspaces/operations.js +66 -31
- package/dist/react-native/api/playwrightWorkspaces/operations.js.map +1 -1
- package/dist/react-native/classic/operations/index.d.ts +1 -1
- package/dist/react-native/classic/operations/index.js +3 -1
- package/dist/react-native/classic/operations/index.js.map +1 -1
- package/dist/react-native/classic/playwrightQuotas/index.d.ts +3 -3
- package/dist/react-native/classic/playwrightQuotas/index.js +3 -1
- package/dist/react-native/classic/playwrightQuotas/index.js.map +1 -1
- package/dist/react-native/classic/playwrightWorkspaceQuotas/index.d.ts +3 -3
- package/dist/react-native/classic/playwrightWorkspaceQuotas/index.js +3 -1
- package/dist/react-native/classic/playwrightWorkspaceQuotas/index.js.map +1 -1
- package/dist/react-native/classic/playwrightWorkspaces/index.d.ts +4 -4
- package/dist/react-native/classic/playwrightWorkspaces/index.js +3 -1
- package/dist/react-native/classic/playwrightWorkspaces/index.js.map +1 -1
- package/dist/react-native/index.d.ts +2 -0
- package/dist/react-native/index.js +2 -0
- package/dist/react-native/index.js.map +1 -1
- package/dist/react-native/models/models.d.ts +41 -39
- package/dist/react-native/models/models.js +14 -13
- package/dist/react-native/models/models.js.map +1 -1
- package/dist/react-native/playwrightManagementClient.d.ts +4 -4
- package/dist/react-native/playwrightManagementClient.js +19 -6
- package/dist/react-native/playwrightManagementClient.js.map +1 -1
- package/dist/react-native/restorePollerHelpers.js +12 -14
- package/dist/react-native/restorePollerHelpers.js.map +1 -1
- package/dist/react-native/static-helpers/cloudSettingHelpers.d.ts +13 -0
- package/dist/react-native/static-helpers/cloudSettingHelpers.js +29 -0
- package/dist/react-native/static-helpers/cloudSettingHelpers.js.map +1 -0
- package/dist/react-native/static-helpers/pagingHelpers.js +31 -50
- package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/react-native/static-helpers/pollingHelpers.js +14 -11
- package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/react-native/static-helpers/urlTemplate.js +4 -3
- package/dist/react-native/static-helpers/urlTemplate.js.map +1 -1
- package/package.json +40 -42
- package/CHANGELOG.md +0 -7
- package/review/arm-playwright-api-operations.api.md +0 -19
- package/review/arm-playwright-api-playwrightQuotas.api.md +0 -26
- package/review/arm-playwright-api-playwrightWorkspaceQuotas.api.md +0 -26
- package/review/arm-playwright-api-playwrightWorkspaces.api.md +0 -65
- package/review/arm-playwright-api.api.md +0 -27
- package/review/arm-playwright-models.api.md +0 -232
- package/review/arm-playwright.api.md +0 -361
|
@@ -151,6 +151,7 @@ function playwrightWorkspacePropertiesDeserializer(item) {
|
|
|
151
151
|
dataplaneUri: item["dataplaneUri"],
|
|
152
152
|
regionalAffinity: item["regionalAffinity"],
|
|
153
153
|
localAuth: item["localAuth"],
|
|
154
|
+
workspaceId: item["workspaceId"],
|
|
154
155
|
};
|
|
155
156
|
}
|
|
156
157
|
/** The status of the last resource operation. */
|
|
@@ -162,19 +163,19 @@ var KnownProvisioningState;
|
|
|
162
163
|
KnownProvisioningState["Failed"] = "Failed";
|
|
163
164
|
/** Resource creation was canceled. */
|
|
164
165
|
KnownProvisioningState["Canceled"] = "Canceled";
|
|
165
|
-
/**
|
|
166
|
+
/** Resource creation is in progress. */
|
|
166
167
|
KnownProvisioningState["Creating"] = "Creating";
|
|
167
|
-
/**
|
|
168
|
+
/** Resource deletion is in progress. */
|
|
168
169
|
KnownProvisioningState["Deleting"] = "Deleting";
|
|
169
|
-
/** Request accepted for processing
|
|
170
|
+
/** Request has been accepted for processing. */
|
|
170
171
|
KnownProvisioningState["Accepted"] = "Accepted";
|
|
171
172
|
})(KnownProvisioningState || (exports.KnownProvisioningState = KnownProvisioningState = {}));
|
|
172
173
|
/** The enablement status of a feature. */
|
|
173
174
|
var KnownEnablementStatus;
|
|
174
175
|
(function (KnownEnablementStatus) {
|
|
175
|
-
/** The feature is
|
|
176
|
+
/** The feature is enabled. */
|
|
176
177
|
KnownEnablementStatus["Enabled"] = "Enabled";
|
|
177
|
-
/** The feature is
|
|
178
|
+
/** The feature is disabled. */
|
|
178
179
|
KnownEnablementStatus["Disabled"] = "Disabled";
|
|
179
180
|
})(KnownEnablementStatus || (exports.KnownEnablementStatus = KnownEnablementStatus = {}));
|
|
180
181
|
function trackedResourceSerializer(item) {
|
|
@@ -304,17 +305,17 @@ function freeTrialPropertiesDeserializer(item) {
|
|
|
304
305
|
state: item["state"],
|
|
305
306
|
};
|
|
306
307
|
}
|
|
307
|
-
/** The free
|
|
308
|
+
/** The free trial state. */
|
|
308
309
|
var KnownFreeTrialState;
|
|
309
310
|
(function (KnownFreeTrialState) {
|
|
310
|
-
/** The free
|
|
311
|
+
/** The free trial is active and available for use. */
|
|
311
312
|
KnownFreeTrialState["Active"] = "Active";
|
|
312
|
-
/** The free
|
|
313
|
+
/** The free trial has expired and is no longer available. */
|
|
313
314
|
KnownFreeTrialState["Expired"] = "Expired";
|
|
314
|
-
/** The free
|
|
315
|
+
/** The free trial is not applicable for this resource. */
|
|
315
316
|
KnownFreeTrialState["NotApplicable"] = "NotApplicable";
|
|
316
317
|
})(KnownFreeTrialState || (exports.KnownFreeTrialState = KnownFreeTrialState = {}));
|
|
317
|
-
/** Playwright quota
|
|
318
|
+
/** Available Playwright quota types. */
|
|
318
319
|
var KnownQuotaName;
|
|
319
320
|
(function (KnownQuotaName) {
|
|
320
321
|
/** Quota for execution duration in minutes. */
|
|
@@ -382,10 +383,10 @@ function playwrightWorkspaceQuotaArrayDeserializer(result) {
|
|
|
382
383
|
return playwrightWorkspaceQuotaDeserializer(item);
|
|
383
384
|
});
|
|
384
385
|
}
|
|
385
|
-
/** Playwright
|
|
386
|
+
/** Available versions of the Playwright Service Management API. */
|
|
386
387
|
var KnownVersions;
|
|
387
388
|
(function (KnownVersions) {
|
|
388
|
-
/** 2025-
|
|
389
|
-
KnownVersions["
|
|
389
|
+
/** Stable version 2025-09-01 with general availability features for Playwright workspace management. */
|
|
390
|
+
KnownVersions["V20250901"] = "2025-09-01";
|
|
390
391
|
})(KnownVersions || (exports.KnownVersions = KnownVersions = {}));
|
|
391
392
|
//# sourceMappingURL=models.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAUlC,4EAKC;AAED,gEAIC;AAgBD,sDAQC;AAcD,oEAOC;AA4CD,8DAIC;AAgBD,0DAUC;AAED,oEAIC;AAED,oFAIC;AAUD,0EAKC;AAQ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D,SAAgB,+CAA+C,CAC7D,IAAS;IAET,OAAO;QACL,KAAK,EAAE,yCAAyC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC/D,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;KAC3B,CAAC;AACJ,CAAC;AAED,SAAgB,yCAAyC,CACvD,MAAuC;IAEvC,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACzB,OAAO,oCAAoC,CAAC,IAAI,CAAC,CAAC;IACpD,CAAC,CAAC,CAAC;AACL,CAAC;AAED,kDAAkD;AAClD,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,iCAAiC;IACjC,wDAAuC,CAAA;AACzC,CAAC,EAHW,aAAa,6BAAb,aAAa,QAGxB","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */\nexport interface _OperationListResult {\n /** The Operation items on this page */\n value: Operation[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _operationListResultDeserializer(item: any): _OperationListResult {\n return {\n value: operationArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function operationArrayDeserializer(result: Array<Operation>): any[] {\n return result.map((item) => {\n return operationDeserializer(item);\n });\n}\n\n/** Details of a REST API operation, returned from the Resource Provider Operations API */\nexport interface Operation {\n /** The name of the operation, as per Resource-Based Access Control (RBAC). Examples: \"Microsoft.Compute/virtualMachines/write\", \"Microsoft.Compute/virtualMachines/capture/action\" */\n readonly name?: string;\n /** Whether the operation applies to data-plane. This is \"true\" for data-plane operations and \"false\" for Azure Resource Manager/control-plane operations. */\n readonly isDataAction?: boolean;\n /** Localized display information for this particular operation. */\n display?: OperationDisplay;\n /** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" */\n readonly origin?: Origin;\n /** Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. */\n readonly actionType?: ActionType;\n}\n\nexport function operationDeserializer(item: any): Operation {\n return {\n name: item[\"name\"],\n isDataAction: item[\"isDataAction\"],\n display: !item[\"display\"] ? item[\"display\"] : operationDisplayDeserializer(item[\"display\"]),\n origin: item[\"origin\"],\n actionType: item[\"actionType\"],\n };\n}\n\n/** Localized display information for and operation. */\nexport interface OperationDisplay {\n /** The localized friendly form of the resource provider name, e.g. \"Microsoft Monitoring Insights\" or \"Microsoft Compute\". */\n readonly provider?: string;\n /** The localized friendly name of the resource type related to this operation. E.g. \"Virtual Machines\" or \"Job Schedule Collections\". */\n readonly resource?: string;\n /** The concise, localized friendly name for the operation; suitable for dropdowns. E.g. \"Create or Update Virtual Machine\", \"Restart Virtual Machine\". */\n readonly operation?: string;\n /** The short, localized friendly description of the operation; suitable for tool tips and detailed views. */\n readonly description?: string;\n}\n\nexport function operationDisplayDeserializer(item: any): OperationDisplay {\n return {\n provider: item[\"provider\"],\n resource: item[\"resource\"],\n operation: item[\"operation\"],\n description: item[\"description\"],\n };\n}\n\n/** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" */\nexport enum KnownOrigin {\n /** Indicates the operation is initiated by a user. */\n User = \"user\",\n /** Indicates the operation is initiated by a system. */\n System = \"system\",\n /** Indicates the operation is initiated by a user or system. */\n UserSystem = \"user,system\",\n}\n\n/**\n * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" \\\n * {@link KnownOrigin} can be used interchangeably with Origin,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **user**: Indicates the operation is initiated by a user. \\\n * **system**: Indicates the operation is initiated by a system. \\\n * **user,system**: Indicates the operation is initiated by a user or system.\n */\nexport type Origin = string;\n\n/** Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. */\nexport enum KnownActionType {\n /** Actions are for internal-only APIs. */\n Internal = \"Internal\",\n}\n\n/**\n * Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. \\\n * {@link KnownActionType} can be used interchangeably with ActionType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Internal**: Actions are for internal-only APIs.\n */\nexport type ActionType = string;\n\n/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. */\nexport interface ErrorResponse {\n /** The error object. */\n error?: ErrorDetail;\n}\n\nexport function errorResponseDeserializer(item: any): ErrorResponse {\n return {\n error: !item[\"error\"] ? item[\"error\"] : errorDetailDeserializer(item[\"error\"]),\n };\n}\n\n/** The error detail. */\nexport interface ErrorDetail {\n /** The error code. */\n readonly code?: string;\n /** The error message. */\n readonly message?: string;\n /** The error target. */\n readonly target?: string;\n /** The error details. */\n readonly details?: ErrorDetail[];\n /** The error additional info. */\n readonly additionalInfo?: ErrorAdditionalInfo[];\n}\n\nexport function errorDetailDeserializer(item: any): ErrorDetail {\n return {\n code: item[\"code\"],\n message: item[\"message\"],\n target: item[\"target\"],\n details: !item[\"details\"] ? item[\"details\"] : errorDetailArrayDeserializer(item[\"details\"]),\n additionalInfo: !item[\"additionalInfo\"]\n ? item[\"additionalInfo\"]\n : errorAdditionalInfoArrayDeserializer(item[\"additionalInfo\"]),\n };\n}\n\nexport function errorDetailArrayDeserializer(result: Array<ErrorDetail>): any[] {\n return result.map((item) => {\n return errorDetailDeserializer(item);\n });\n}\n\nexport function errorAdditionalInfoArrayDeserializer(result: Array<ErrorAdditionalInfo>): any[] {\n return result.map((item) => {\n return errorAdditionalInfoDeserializer(item);\n });\n}\n\n/** The resource management error additional info. */\nexport interface ErrorAdditionalInfo {\n /** The additional info type. */\n readonly type?: string;\n /** The additional info. */\n readonly info?: any;\n}\n\nexport function errorAdditionalInfoDeserializer(item: any): ErrorAdditionalInfo {\n return {\n type: item[\"type\"],\n info: item[\"info\"],\n };\n}\n\n/** Playwright workspace resource. */\nexport interface PlaywrightWorkspace extends TrackedResource {\n /** The resource-specific properties for this resource. */\n properties?: PlaywrightWorkspaceProperties;\n}\n\nexport function playwrightWorkspaceSerializer(item: PlaywrightWorkspace): any {\n return {\n tags: item[\"tags\"],\n location: item[\"location\"],\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : playwrightWorkspacePropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function playwrightWorkspaceDeserializer(item: any): PlaywrightWorkspace {\n return {\n tags: item[\"tags\"],\n location: item[\"location\"],\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : playwrightWorkspacePropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Playwright workspace resource properties. */\nexport interface PlaywrightWorkspaceProperties {\n /** The status of the last resource operation. */\n readonly provisioningState?: ProvisioningState;\n /** The workspace data plane URI. */\n readonly dataplaneUri?: string;\n /** This property sets the connection region for client workers to cloud-hosted browsers. If enabled, workers connect to browsers in the closest Azure region, ensuring lower latency. If disabled, workers connect to browsers in the Azure region in which the workspace was initially created. */\n regionalAffinity?: EnablementStatus;\n /** When enabled, this feature allows the workspace to use local auth (through service access token) for executing operations. */\n localAuth?: EnablementStatus;\n}\n\nexport function playwrightWorkspacePropertiesSerializer(item: PlaywrightWorkspaceProperties): any {\n return {\n regionalAffinity: item[\"regionalAffinity\"],\n localAuth: item[\"localAuth\"],\n };\n}\n\nexport function playwrightWorkspacePropertiesDeserializer(\n item: any,\n): PlaywrightWorkspaceProperties {\n return {\n provisioningState: item[\"provisioningState\"],\n dataplaneUri: item[\"dataplaneUri\"],\n regionalAffinity: item[\"regionalAffinity\"],\n localAuth: item[\"localAuth\"],\n };\n}\n\n/** The status of the last resource operation. */\nexport enum KnownProvisioningState {\n /** Resource has been created. */\n Succeeded = \"Succeeded\",\n /** Resource creation failed. */\n Failed = \"Failed\",\n /** Resource creation was canceled. */\n Canceled = \"Canceled\",\n /** Creation in progress.. */\n Creating = \"Creating\",\n /** Deletion in progress.. */\n Deleting = \"Deleting\",\n /** Request accepted for processing.. */\n Accepted = \"Accepted\",\n}\n\n/**\n * The status of the last resource operation. \\\n * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Succeeded**: Resource has been created. \\\n * **Failed**: Resource creation failed. \\\n * **Canceled**: Resource creation was canceled. \\\n * **Creating**: Creation in progress.. \\\n * **Deleting**: Deletion in progress.. \\\n * **Accepted**: Request accepted for processing..\n */\nexport type ProvisioningState = string;\n\n/** The enablement status of a feature. */\nexport enum KnownEnablementStatus {\n /** The feature is Enabled. */\n Enabled = \"Enabled\",\n /** The feature is Disabled. */\n Disabled = \"Disabled\",\n}\n\n/**\n * The enablement status of a feature. \\\n * {@link KnownEnablementStatus} can be used interchangeably with EnablementStatus,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Enabled**: The feature is Enabled. \\\n * **Disabled**: The feature is Disabled.\n */\nexport type EnablementStatus = string;\n\n/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */\nexport interface TrackedResource extends Resource {\n /** Resource tags. */\n tags?: Record<string, string>;\n /** The geo-location where the resource lives */\n location: string;\n}\n\nexport function trackedResourceSerializer(item: TrackedResource): any {\n return { tags: item[\"tags\"], location: item[\"location\"] };\n}\n\nexport function trackedResourceDeserializer(item: any): TrackedResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n tags: item[\"tags\"],\n location: item[\"location\"],\n };\n}\n\n/** Common fields that are returned in the response for all Azure Resource Manager resources */\nexport interface Resource {\n /** Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */\n readonly id?: string;\n /** The name of the resource */\n readonly name?: string;\n /** The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\" */\n readonly type?: string;\n /** Azure Resource Manager metadata containing createdBy and modifiedBy information. */\n readonly systemData?: SystemData;\n}\n\nexport function resourceSerializer(item: Resource): any {\n return item;\n}\n\nexport function resourceDeserializer(item: any): Resource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n };\n}\n\n/** Metadata pertaining to creation and last modification of the resource. */\nexport interface SystemData {\n /** The identity that created the resource. */\n createdBy?: string;\n /** The type of identity that created the resource. */\n createdByType?: CreatedByType;\n /** The timestamp of resource creation (UTC). */\n createdAt?: Date;\n /** The identity that last modified the resource. */\n lastModifiedBy?: string;\n /** The type of identity that last modified the resource. */\n lastModifiedByType?: CreatedByType;\n /** The timestamp of resource last modification (UTC) */\n lastModifiedAt?: Date;\n}\n\nexport function systemDataDeserializer(item: any): SystemData {\n return {\n createdBy: item[\"createdBy\"],\n createdByType: item[\"createdByType\"],\n createdAt: !item[\"createdAt\"] ? item[\"createdAt\"] : new Date(item[\"createdAt\"]),\n lastModifiedBy: item[\"lastModifiedBy\"],\n lastModifiedByType: item[\"lastModifiedByType\"],\n lastModifiedAt: !item[\"lastModifiedAt\"]\n ? item[\"lastModifiedAt\"]\n : new Date(item[\"lastModifiedAt\"]),\n };\n}\n\n/** The kind of entity that created the resource. */\nexport enum KnownCreatedByType {\n /** The entity was created by a user. */\n User = \"User\",\n /** The entity was created by an application. */\n Application = \"Application\",\n /** The entity was created by a managed identity. */\n ManagedIdentity = \"ManagedIdentity\",\n /** The entity was created by a key. */\n Key = \"Key\",\n}\n\n/**\n * The kind of entity that created the resource. \\\n * {@link KnowncreatedByType} can be used interchangeably with createdByType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **User**: The entity was created by a user. \\\n * **Application**: The entity was created by an application. \\\n * **ManagedIdentity**: The entity was created by a managed identity. \\\n * **Key**: The entity was created by a key.\n */\nexport type CreatedByType = string;\n\n/** The type used for update operations of the PlaywrightWorkspace. */\nexport interface PlaywrightWorkspaceUpdate {\n /** Resource tags. */\n tags?: Record<string, string>;\n /** The resource-specific properties for this resource. */\n properties?: PlaywrightWorkspaceUpdateProperties;\n}\n\nexport function playwrightWorkspaceUpdateSerializer(item: PlaywrightWorkspaceUpdate): any {\n return {\n tags: item[\"tags\"],\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : playwrightWorkspaceUpdatePropertiesSerializer(item[\"properties\"]),\n };\n}\n\n/** The updatable properties of the PlaywrightWorkspace. */\nexport interface PlaywrightWorkspaceUpdateProperties {\n /** This property sets the connection region for client workers to cloud-hosted browsers. If enabled, workers connect to browsers in the closest Azure region, ensuring lower latency. If disabled, workers connect to browsers in the Azure region in which the workspace was initially created. */\n regionalAffinity?: EnablementStatus;\n /** When enabled, this feature allows the workspace to use local auth (through service access token) for executing operations. */\n localAuth?: EnablementStatus;\n}\n\nexport function playwrightWorkspaceUpdatePropertiesSerializer(\n item: PlaywrightWorkspaceUpdateProperties,\n): any {\n return {\n regionalAffinity: item[\"regionalAffinity\"],\n localAuth: item[\"localAuth\"],\n };\n}\n\n/** The response of a PlaywrightWorkspace list operation. */\nexport interface _PlaywrightWorkspaceListResult {\n /** The PlaywrightWorkspace items on this page */\n value: PlaywrightWorkspace[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _playwrightWorkspaceListResultDeserializer(\n item: any,\n): _PlaywrightWorkspaceListResult {\n return {\n value: playwrightWorkspaceArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function playwrightWorkspaceArraySerializer(result: Array<PlaywrightWorkspace>): any[] {\n return result.map((item) => {\n return playwrightWorkspaceSerializer(item);\n });\n}\n\nexport function playwrightWorkspaceArrayDeserializer(result: Array<PlaywrightWorkspace>): any[] {\n return result.map((item) => {\n return playwrightWorkspaceDeserializer(item);\n });\n}\n\n/** The check availability request body. */\nexport interface CheckNameAvailabilityRequest {\n /** The name of the resource for which availability needs to be checked. */\n name?: string;\n /** The resource type. */\n type?: string;\n}\n\nexport function checkNameAvailabilityRequestSerializer(item: CheckNameAvailabilityRequest): any {\n return { name: item[\"name\"], type: item[\"type\"] };\n}\n\n/** The check availability result. */\nexport interface CheckNameAvailabilityResponse {\n /** Indicates if the resource name is available. */\n nameAvailable?: boolean;\n /** The reason why the given name is not available. */\n reason?: CheckNameAvailabilityReason;\n /** Detailed reason why the given name is not available. */\n message?: string;\n}\n\nexport function checkNameAvailabilityResponseDeserializer(\n item: any,\n): CheckNameAvailabilityResponse {\n return {\n nameAvailable: item[\"nameAvailable\"],\n reason: item[\"reason\"],\n message: item[\"message\"],\n };\n}\n\n/** Possible reasons for a name not being available. */\nexport enum KnownCheckNameAvailabilityReason {\n /** Name is invalid. */\n Invalid = \"Invalid\",\n /** Name already exists. */\n AlreadyExists = \"AlreadyExists\",\n}\n\n/**\n * Possible reasons for a name not being available. \\\n * {@link KnownCheckNameAvailabilityReason} can be used interchangeably with CheckNameAvailabilityReason,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Invalid**: Name is invalid. \\\n * **AlreadyExists**: Name already exists.\n */\nexport type CheckNameAvailabilityReason = string;\n\n/** Subscription-level location-based Playwright quota resource. */\nexport interface PlaywrightQuota extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: PlaywrightQuotaProperties;\n}\n\nexport function playwrightQuotaDeserializer(item: any): PlaywrightQuota {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : playwrightQuotaPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Subscription-level location-based Playwright quota resource properties. */\nexport interface PlaywrightQuotaProperties {\n /** The subscription-level location-based Playwright quota resource free-trial properties. */\n readonly freeTrial?: FreeTrialProperties;\n /** The status of the last resource operation. */\n readonly provisioningState?: ProvisioningState;\n}\n\nexport function playwrightQuotaPropertiesDeserializer(item: any): PlaywrightQuotaProperties {\n return {\n freeTrial: !item[\"freeTrial\"]\n ? item[\"freeTrial\"]\n : freeTrialPropertiesDeserializer(item[\"freeTrial\"]),\n provisioningState: item[\"provisioningState\"],\n };\n}\n\n/** Subscription-level location-based Playwright quota resource free-trial properties. */\nexport interface FreeTrialProperties {\n /** Playwright workspace-id that has free-trial in the subscription. */\n readonly workspaceId: string;\n /** The free-trial state. */\n readonly state: FreeTrialState;\n}\n\nexport function freeTrialPropertiesDeserializer(item: any): FreeTrialProperties {\n return {\n workspaceId: item[\"workspaceId\"],\n state: item[\"state\"],\n };\n}\n\n/** The free-trial state. */\nexport enum KnownFreeTrialState {\n /** The free-trial is Active. */\n Active = \"Active\",\n /** The free-trial is Expired. */\n Expired = \"Expired\",\n /** The free-trial is Not Applicable. */\n NotApplicable = \"NotApplicable\",\n}\n\n/**\n * The free-trial state. \\\n * {@link KnownFreeTrialState} can be used interchangeably with FreeTrialState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Active**: The free-trial is Active. \\\n * **Expired**: The free-trial is Expired. \\\n * **NotApplicable**: The free-trial is Not Applicable.\n */\nexport type FreeTrialState = string;\n\n/** Playwright quota names. */\nexport enum KnownQuotaName {\n /** Quota for execution duration in minutes. */\n ExecutionMinutes = \"ExecutionMinutes\",\n}\n\n/**\n * Playwright quota names. \\\n * {@link KnownQuotaName} can be used interchangeably with QuotaName,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **ExecutionMinutes**: Quota for execution duration in minutes.\n */\nexport type QuotaName = string;\n\n/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */\nexport interface ProxyResource extends Resource {}\n\nexport function proxyResourceDeserializer(item: any): ProxyResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n };\n}\n\n/** The response of a PlaywrightQuota list operation. */\nexport interface _PlaywrightQuotaListResult {\n /** The PlaywrightQuota items on this page */\n value: PlaywrightQuota[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _playwrightQuotaListResultDeserializer(item: any): _PlaywrightQuotaListResult {\n return {\n value: playwrightQuotaArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function playwrightQuotaArrayDeserializer(result: Array<PlaywrightQuota>): any[] {\n return result.map((item) => {\n return playwrightQuotaDeserializer(item);\n });\n}\n\n/** Playwright workspace quota resource. */\nexport interface PlaywrightWorkspaceQuota extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: PlaywrightWorkspaceQuotaProperties;\n}\n\nexport function playwrightWorkspaceQuotaDeserializer(item: any): PlaywrightWorkspaceQuota {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : playwrightWorkspaceQuotaPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Playwright workspace quota resource properties. */\nexport interface PlaywrightWorkspaceQuotaProperties {\n /** The Playwright workspace quota resource free-trial properties. */\n readonly freeTrial?: PlaywrightWorkspaceFreeTrialProperties;\n /** The status of the last resource operation. */\n readonly provisioningState?: ProvisioningState;\n}\n\nexport function playwrightWorkspaceQuotaPropertiesDeserializer(\n item: any,\n): PlaywrightWorkspaceQuotaProperties {\n return {\n freeTrial: !item[\"freeTrial\"]\n ? item[\"freeTrial\"]\n : playwrightWorkspaceFreeTrialPropertiesDeserializer(item[\"freeTrial\"]),\n provisioningState: item[\"provisioningState\"],\n };\n}\n\n/** Playwright workspace quota resource resource free-trial properties. */\nexport interface PlaywrightWorkspaceFreeTrialProperties {\n /** The free-trial createdAt utcDateTime. */\n readonly createdAt: Date;\n /** The free-trial expiryAt utcDateTime. */\n readonly expiryAt: Date;\n /** The free-trial allocated limit value eg. allocated free execution minutes. */\n readonly allocatedValue: number;\n /** The free-trial used value eg. used free execution minutes. */\n readonly usedValue: number;\n /** The free-trial percentage used. */\n readonly percentageUsed: number;\n}\n\nexport function playwrightWorkspaceFreeTrialPropertiesDeserializer(\n item: any,\n): PlaywrightWorkspaceFreeTrialProperties {\n return {\n createdAt: new Date(item[\"createdAt\"]),\n expiryAt: new Date(item[\"expiryAt\"]),\n allocatedValue: item[\"allocatedValue\"],\n usedValue: item[\"usedValue\"],\n percentageUsed: item[\"percentageUsed\"],\n };\n}\n\n/** The response of a PlaywrightWorkspaceQuota list operation. */\nexport interface _PlaywrightWorkspaceQuotaListResult {\n /** The PlaywrightWorkspaceQuota items on this page */\n value: PlaywrightWorkspaceQuota[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _playwrightWorkspaceQuotaListResultDeserializer(\n item: any,\n): _PlaywrightWorkspaceQuotaListResult {\n return {\n value: playwrightWorkspaceQuotaArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function playwrightWorkspaceQuotaArrayDeserializer(\n result: Array<PlaywrightWorkspaceQuota>,\n): any[] {\n return result.map((item) => {\n return playwrightWorkspaceQuotaDeserializer(item);\n });\n}\n\n/** Playwright service Management API Versions. */\nexport enum KnownVersions {\n /** 2025-07-01-preview version */\n V20250701Preview = \"2025-07-01-preview\",\n}\n"]}
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAUlC,4EAKC;AAED,gEAIC;AAgBD,sDAQC;AAcD,oEAOC;AA4CD,8DAIC;AAgBD,0DAUC;AAED,oEAIC;AAED,oFAIC;AAUD,0EAKC;AAQD,sEAQC;AAED,0EAcC;AAgBD,0FAKC;AAED,8FAUC;AA0DD,8DAEC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,CAC7D,IAAS;IAET,OAAO;QACL,KAAK,EAAE,yCAAyC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC/D,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;KAC3B,CAAC;AACJ,CAAC;AAED,SAAgB,yCAAyC,CACvD,MAAuC;IAEvC,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACzB,OAAO,oCAAoC,CAAC,IAAI,CAAC,CAAC;IACpD,CAAC,CAAC,CAAC;AACL,CAAC;AAED,mEAAmE;AACnE,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,wGAAwG;IACxG,yCAAwB,CAAA;AAC1B,CAAC,EAHW,aAAa,6BAAb,aAAa,QAGxB","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */\nexport interface _OperationListResult {\n /** The Operation items on this page */\n value: Operation[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _operationListResultDeserializer(item: any): _OperationListResult {\n return {\n value: operationArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function operationArrayDeserializer(result: Array<Operation>): any[] {\n return result.map((item) => {\n return operationDeserializer(item);\n });\n}\n\n/** Details of a REST API operation, returned from the Resource Provider Operations API */\nexport interface Operation {\n /** The name of the operation, as per Resource-Based Access Control (RBAC). Examples: \"Microsoft.Compute/virtualMachines/write\", \"Microsoft.Compute/virtualMachines/capture/action\" */\n readonly name?: string;\n /** Whether the operation applies to data-plane. This is \"true\" for data-plane operations and \"false\" for Azure Resource Manager/control-plane operations. */\n readonly isDataAction?: boolean;\n /** Localized display information for this particular operation. */\n display?: OperationDisplay;\n /** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" */\n readonly origin?: Origin;\n /** Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. */\n readonly actionType?: ActionType;\n}\n\nexport function operationDeserializer(item: any): Operation {\n return {\n name: item[\"name\"],\n isDataAction: item[\"isDataAction\"],\n display: !item[\"display\"] ? item[\"display\"] : operationDisplayDeserializer(item[\"display\"]),\n origin: item[\"origin\"],\n actionType: item[\"actionType\"],\n };\n}\n\n/** Localized display information for and operation. */\nexport interface OperationDisplay {\n /** The localized friendly form of the resource provider name, e.g. \"Microsoft Monitoring Insights\" or \"Microsoft Compute\". */\n readonly provider?: string;\n /** The localized friendly name of the resource type related to this operation. E.g. \"Virtual Machines\" or \"Job Schedule Collections\". */\n readonly resource?: string;\n /** The concise, localized friendly name for the operation; suitable for dropdowns. E.g. \"Create or Update Virtual Machine\", \"Restart Virtual Machine\". */\n readonly operation?: string;\n /** The short, localized friendly description of the operation; suitable for tool tips and detailed views. */\n readonly description?: string;\n}\n\nexport function operationDisplayDeserializer(item: any): OperationDisplay {\n return {\n provider: item[\"provider\"],\n resource: item[\"resource\"],\n operation: item[\"operation\"],\n description: item[\"description\"],\n };\n}\n\n/** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" */\nexport enum KnownOrigin {\n /** Indicates the operation is initiated by a user. */\n User = \"user\",\n /** Indicates the operation is initiated by a system. */\n System = \"system\",\n /** Indicates the operation is initiated by a user or system. */\n UserSystem = \"user,system\",\n}\n\n/**\n * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" \\\n * {@link KnownOrigin} can be used interchangeably with Origin,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **user**: Indicates the operation is initiated by a user. \\\n * **system**: Indicates the operation is initiated by a system. \\\n * **user,system**: Indicates the operation is initiated by a user or system.\n */\nexport type Origin = string;\n\n/** Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. */\nexport enum KnownActionType {\n /** Actions are for internal-only APIs. */\n Internal = \"Internal\",\n}\n\n/**\n * Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. \\\n * {@link KnownActionType} can be used interchangeably with ActionType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Internal**: Actions are for internal-only APIs.\n */\nexport type ActionType = string;\n\n/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. */\nexport interface ErrorResponse {\n /** The error object. */\n error?: ErrorDetail;\n}\n\nexport function errorResponseDeserializer(item: any): ErrorResponse {\n return {\n error: !item[\"error\"] ? item[\"error\"] : errorDetailDeserializer(item[\"error\"]),\n };\n}\n\n/** The error detail. */\nexport interface ErrorDetail {\n /** The error code. */\n readonly code?: string;\n /** The error message. */\n readonly message?: string;\n /** The error target. */\n readonly target?: string;\n /** The error details. */\n readonly details?: ErrorDetail[];\n /** The error additional info. */\n readonly additionalInfo?: ErrorAdditionalInfo[];\n}\n\nexport function errorDetailDeserializer(item: any): ErrorDetail {\n return {\n code: item[\"code\"],\n message: item[\"message\"],\n target: item[\"target\"],\n details: !item[\"details\"] ? item[\"details\"] : errorDetailArrayDeserializer(item[\"details\"]),\n additionalInfo: !item[\"additionalInfo\"]\n ? item[\"additionalInfo\"]\n : errorAdditionalInfoArrayDeserializer(item[\"additionalInfo\"]),\n };\n}\n\nexport function errorDetailArrayDeserializer(result: Array<ErrorDetail>): any[] {\n return result.map((item) => {\n return errorDetailDeserializer(item);\n });\n}\n\nexport function errorAdditionalInfoArrayDeserializer(result: Array<ErrorAdditionalInfo>): any[] {\n return result.map((item) => {\n return errorAdditionalInfoDeserializer(item);\n });\n}\n\n/** The resource management error additional info. */\nexport interface ErrorAdditionalInfo {\n /** The additional info type. */\n readonly type?: string;\n /** The additional info. */\n readonly info?: any;\n}\n\nexport function errorAdditionalInfoDeserializer(item: any): ErrorAdditionalInfo {\n return {\n type: item[\"type\"],\n info: item[\"info\"],\n };\n}\n\n/** Playwright workspace resource. */\nexport interface PlaywrightWorkspace extends TrackedResource {\n /** The resource-specific properties for this resource. */\n properties?: PlaywrightWorkspaceProperties;\n}\n\nexport function playwrightWorkspaceSerializer(item: PlaywrightWorkspace): any {\n return {\n tags: item[\"tags\"],\n location: item[\"location\"],\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : playwrightWorkspacePropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function playwrightWorkspaceDeserializer(item: any): PlaywrightWorkspace {\n return {\n tags: item[\"tags\"],\n location: item[\"location\"],\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : playwrightWorkspacePropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Playwright workspace resource properties. */\nexport interface PlaywrightWorkspaceProperties {\n /** The status of the last resource operation. */\n readonly provisioningState?: ProvisioningState;\n /** The workspace data plane service API URI. */\n readonly dataplaneUri?: string;\n /** 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. */\n regionalAffinity?: EnablementStatus;\n /** Enables the workspace to use local authentication through service access tokens for operations. */\n localAuth?: EnablementStatus;\n /** The workspace ID in GUID format. */\n readonly workspaceId?: string;\n}\n\nexport function playwrightWorkspacePropertiesSerializer(item: PlaywrightWorkspaceProperties): any {\n return {\n regionalAffinity: item[\"regionalAffinity\"],\n localAuth: item[\"localAuth\"],\n };\n}\n\nexport function playwrightWorkspacePropertiesDeserializer(\n item: any,\n): PlaywrightWorkspaceProperties {\n return {\n provisioningState: item[\"provisioningState\"],\n dataplaneUri: item[\"dataplaneUri\"],\n regionalAffinity: item[\"regionalAffinity\"],\n localAuth: item[\"localAuth\"],\n workspaceId: item[\"workspaceId\"],\n };\n}\n\n/** The status of the last resource operation. */\nexport enum KnownProvisioningState {\n /** Resource has been created. */\n Succeeded = \"Succeeded\",\n /** Resource creation failed. */\n Failed = \"Failed\",\n /** Resource creation was canceled. */\n Canceled = \"Canceled\",\n /** Resource creation is in progress. */\n Creating = \"Creating\",\n /** Resource deletion is in progress. */\n Deleting = \"Deleting\",\n /** Request has been accepted for processing. */\n Accepted = \"Accepted\",\n}\n\n/**\n * The status of the last resource operation. \\\n * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Succeeded**: Resource has been created. \\\n * **Failed**: Resource creation failed. \\\n * **Canceled**: Resource creation was canceled. \\\n * **Creating**: Resource creation is in progress. \\\n * **Deleting**: Resource deletion is in progress. \\\n * **Accepted**: Request has been accepted for processing.\n */\nexport type ProvisioningState = string;\n\n/** The enablement status of a feature. */\nexport enum KnownEnablementStatus {\n /** The feature is enabled. */\n Enabled = \"Enabled\",\n /** The feature is disabled. */\n Disabled = \"Disabled\",\n}\n\n/**\n * The enablement status of a feature. \\\n * {@link KnownEnablementStatus} can be used interchangeably with EnablementStatus,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Enabled**: The feature is enabled. \\\n * **Disabled**: The feature is disabled.\n */\nexport type EnablementStatus = string;\n\n/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */\nexport interface TrackedResource extends Resource {\n /** Resource tags. */\n tags?: Record<string, string>;\n /** The geo-location where the resource lives */\n location: string;\n}\n\nexport function trackedResourceSerializer(item: TrackedResource): any {\n return { tags: item[\"tags\"], location: item[\"location\"] };\n}\n\nexport function trackedResourceDeserializer(item: any): TrackedResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n tags: item[\"tags\"],\n location: item[\"location\"],\n };\n}\n\n/** Common fields that are returned in the response for all Azure Resource Manager resources */\nexport interface Resource {\n /** Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */\n readonly id?: string;\n /** The name of the resource */\n readonly name?: string;\n /** The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\" */\n readonly type?: string;\n /** Azure Resource Manager metadata containing createdBy and modifiedBy information. */\n readonly systemData?: SystemData;\n}\n\nexport function resourceSerializer(item: Resource): any {\n return item;\n}\n\nexport function resourceDeserializer(item: any): Resource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n };\n}\n\n/** Metadata pertaining to creation and last modification of the resource. */\nexport interface SystemData {\n /** The identity that created the resource. */\n createdBy?: string;\n /** The type of identity that created the resource. */\n createdByType?: CreatedByType;\n /** The timestamp of resource creation (UTC). */\n createdAt?: Date;\n /** The identity that last modified the resource. */\n lastModifiedBy?: string;\n /** The type of identity that last modified the resource. */\n lastModifiedByType?: CreatedByType;\n /** The timestamp of resource last modification (UTC) */\n lastModifiedAt?: Date;\n}\n\nexport function systemDataDeserializer(item: any): SystemData {\n return {\n createdBy: item[\"createdBy\"],\n createdByType: item[\"createdByType\"],\n createdAt: !item[\"createdAt\"] ? item[\"createdAt\"] : new Date(item[\"createdAt\"]),\n lastModifiedBy: item[\"lastModifiedBy\"],\n lastModifiedByType: item[\"lastModifiedByType\"],\n lastModifiedAt: !item[\"lastModifiedAt\"]\n ? item[\"lastModifiedAt\"]\n : new Date(item[\"lastModifiedAt\"]),\n };\n}\n\n/** The kind of entity that created the resource. */\nexport enum KnownCreatedByType {\n /** The entity was created by a user. */\n User = \"User\",\n /** The entity was created by an application. */\n Application = \"Application\",\n /** The entity was created by a managed identity. */\n ManagedIdentity = \"ManagedIdentity\",\n /** The entity was created by a key. */\n Key = \"Key\",\n}\n\n/**\n * The kind of entity that created the resource. \\\n * {@link KnowncreatedByType} can be used interchangeably with createdByType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **User**: The entity was created by a user. \\\n * **Application**: The entity was created by an application. \\\n * **ManagedIdentity**: The entity was created by a managed identity. \\\n * **Key**: The entity was created by a key.\n */\nexport type CreatedByType = string;\n\n/** The type used for update operations of the PlaywrightWorkspace. */\nexport interface PlaywrightWorkspaceUpdate {\n /** Resource tags. */\n tags?: Record<string, string>;\n /** The resource-specific properties for this resource. */\n properties?: PlaywrightWorkspaceUpdateProperties;\n}\n\nexport function playwrightWorkspaceUpdateSerializer(item: PlaywrightWorkspaceUpdate): any {\n return {\n tags: item[\"tags\"],\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : playwrightWorkspaceUpdatePropertiesSerializer(item[\"properties\"]),\n };\n}\n\n/** The updatable properties of the PlaywrightWorkspace. */\nexport interface PlaywrightWorkspaceUpdateProperties {\n /** 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. */\n regionalAffinity?: EnablementStatus;\n /** Enables the workspace to use local authentication through service access tokens for operations. */\n localAuth?: EnablementStatus;\n}\n\nexport function playwrightWorkspaceUpdatePropertiesSerializer(\n item: PlaywrightWorkspaceUpdateProperties,\n): any {\n return {\n regionalAffinity: item[\"regionalAffinity\"],\n localAuth: item[\"localAuth\"],\n };\n}\n\n/** The response of a PlaywrightWorkspace list operation. */\nexport interface _PlaywrightWorkspaceListResult {\n /** The PlaywrightWorkspace items on this page */\n value: PlaywrightWorkspace[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _playwrightWorkspaceListResultDeserializer(\n item: any,\n): _PlaywrightWorkspaceListResult {\n return {\n value: playwrightWorkspaceArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function playwrightWorkspaceArraySerializer(result: Array<PlaywrightWorkspace>): any[] {\n return result.map((item) => {\n return playwrightWorkspaceSerializer(item);\n });\n}\n\nexport function playwrightWorkspaceArrayDeserializer(result: Array<PlaywrightWorkspace>): any[] {\n return result.map((item) => {\n return playwrightWorkspaceDeserializer(item);\n });\n}\n\n/** The check availability request body. */\nexport interface CheckNameAvailabilityRequest {\n /** The name of the resource for which availability needs to be checked. */\n name?: string;\n /** The resource type. */\n type?: string;\n}\n\nexport function checkNameAvailabilityRequestSerializer(item: CheckNameAvailabilityRequest): any {\n return { name: item[\"name\"], type: item[\"type\"] };\n}\n\n/** The check availability result. */\nexport interface CheckNameAvailabilityResponse {\n /** Indicates if the resource name is available. */\n nameAvailable?: boolean;\n /** The reason why the given name is not available. */\n reason?: CheckNameAvailabilityReason;\n /** Detailed reason why the given name is not available. */\n message?: string;\n}\n\nexport function checkNameAvailabilityResponseDeserializer(\n item: any,\n): CheckNameAvailabilityResponse {\n return {\n nameAvailable: item[\"nameAvailable\"],\n reason: item[\"reason\"],\n message: item[\"message\"],\n };\n}\n\n/** Possible reasons for a name not being available. */\nexport enum KnownCheckNameAvailabilityReason {\n /** Name is invalid. */\n Invalid = \"Invalid\",\n /** Name already exists. */\n AlreadyExists = \"AlreadyExists\",\n}\n\n/**\n * Possible reasons for a name not being available. \\\n * {@link KnownCheckNameAvailabilityReason} can be used interchangeably with CheckNameAvailabilityReason,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Invalid**: Name is invalid. \\\n * **AlreadyExists**: Name already exists.\n */\nexport type CheckNameAvailabilityReason = string;\n\n/** Subscription-level location-based Playwright quota resource. */\nexport interface PlaywrightQuota extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: PlaywrightQuotaProperties;\n}\n\nexport function playwrightQuotaDeserializer(item: any): PlaywrightQuota {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : playwrightQuotaPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Subscription-level location-based Playwright quota resource properties. */\nexport interface PlaywrightQuotaProperties {\n /** The subscription-level location-based Playwright quota free trial properties. */\n readonly freeTrial?: FreeTrialProperties;\n /** The status of the last resource operation. */\n readonly provisioningState?: ProvisioningState;\n}\n\nexport function playwrightQuotaPropertiesDeserializer(item: any): PlaywrightQuotaProperties {\n return {\n freeTrial: !item[\"freeTrial\"]\n ? item[\"freeTrial\"]\n : freeTrialPropertiesDeserializer(item[\"freeTrial\"]),\n provisioningState: item[\"provisioningState\"],\n };\n}\n\n/** Subscription-level location-based Playwright quota free trial properties. */\nexport interface FreeTrialProperties {\n /** The workspace ID in GUID format that has free trial enabled in the subscription. */\n readonly workspaceId: string;\n /** The free trial state. */\n readonly state: FreeTrialState;\n}\n\nexport function freeTrialPropertiesDeserializer(item: any): FreeTrialProperties {\n return {\n workspaceId: item[\"workspaceId\"],\n state: item[\"state\"],\n };\n}\n\n/** The free trial state. */\nexport enum KnownFreeTrialState {\n /** The free trial is active and available for use. */\n Active = \"Active\",\n /** The free trial has expired and is no longer available. */\n Expired = \"Expired\",\n /** The free trial is not applicable for this resource. */\n NotApplicable = \"NotApplicable\",\n}\n\n/**\n * The free trial state. \\\n * {@link KnownFreeTrialState} can be used interchangeably with FreeTrialState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Active**: The free trial is active and available for use. \\\n * **Expired**: The free trial has expired and is no longer available. \\\n * **NotApplicable**: The free trial is not applicable for this resource.\n */\nexport type FreeTrialState = string;\n\n/** Available Playwright quota types. */\nexport enum KnownQuotaName {\n /** Quota for execution duration in minutes. */\n ExecutionMinutes = \"ExecutionMinutes\",\n}\n\n/**\n * Available Playwright quota types. \\\n * {@link KnownQuotaName} can be used interchangeably with QuotaName,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **ExecutionMinutes**: Quota for execution duration in minutes.\n */\nexport type QuotaName = string;\n\n/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */\nexport interface ProxyResource extends Resource {}\n\nexport function proxyResourceDeserializer(item: any): ProxyResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n };\n}\n\n/** The response of a PlaywrightQuota list operation. */\nexport interface _PlaywrightQuotaListResult {\n /** The PlaywrightQuota items on this page */\n value: PlaywrightQuota[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _playwrightQuotaListResultDeserializer(item: any): _PlaywrightQuotaListResult {\n return {\n value: playwrightQuotaArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function playwrightQuotaArrayDeserializer(result: Array<PlaywrightQuota>): any[] {\n return result.map((item) => {\n return playwrightQuotaDeserializer(item);\n });\n}\n\n/** Playwright workspace quota resource. */\nexport interface PlaywrightWorkspaceQuota extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: PlaywrightWorkspaceQuotaProperties;\n}\n\nexport function playwrightWorkspaceQuotaDeserializer(item: any): PlaywrightWorkspaceQuota {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : playwrightWorkspaceQuotaPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Playwright workspace quota resource properties. */\nexport interface PlaywrightWorkspaceQuotaProperties {\n /** The Playwright workspace quota free trial properties. */\n readonly freeTrial?: PlaywrightWorkspaceFreeTrialProperties;\n /** The status of the last resource operation. */\n readonly provisioningState?: ProvisioningState;\n}\n\nexport function playwrightWorkspaceQuotaPropertiesDeserializer(\n item: any,\n): PlaywrightWorkspaceQuotaProperties {\n return {\n freeTrial: !item[\"freeTrial\"]\n ? item[\"freeTrial\"]\n : playwrightWorkspaceFreeTrialPropertiesDeserializer(item[\"freeTrial\"]),\n provisioningState: item[\"provisioningState\"],\n };\n}\n\n/** Playwright workspace quota free trial properties. */\nexport interface PlaywrightWorkspaceFreeTrialProperties {\n /** The free trial creation timestamp in UTC. */\n readonly createdAt: Date;\n /** The free trial expiration timestamp in UTC. */\n readonly expiryAt: Date;\n /** The allocated limit value (e.g., allocated free execution minutes). */\n readonly allocatedValue: number;\n /** The used value (e.g., used free execution minutes). */\n readonly usedValue: number;\n /** The percentage of the free trial quota used. */\n readonly percentageUsed: number;\n}\n\nexport function playwrightWorkspaceFreeTrialPropertiesDeserializer(\n item: any,\n): PlaywrightWorkspaceFreeTrialProperties {\n return {\n createdAt: new Date(item[\"createdAt\"]),\n expiryAt: new Date(item[\"expiryAt\"]),\n allocatedValue: item[\"allocatedValue\"],\n usedValue: item[\"usedValue\"],\n percentageUsed: item[\"percentageUsed\"],\n };\n}\n\n/** The response of a PlaywrightWorkspaceQuota list operation. */\nexport interface _PlaywrightWorkspaceQuotaListResult {\n /** The PlaywrightWorkspaceQuota items on this page */\n value: PlaywrightWorkspaceQuota[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _playwrightWorkspaceQuotaListResultDeserializer(\n item: any,\n): _PlaywrightWorkspaceQuotaListResult {\n return {\n value: playwrightWorkspaceQuotaArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function playwrightWorkspaceQuotaArrayDeserializer(\n result: Array<PlaywrightWorkspaceQuota>,\n): any[] {\n return result.map((item) => {\n return playwrightWorkspaceQuotaDeserializer(item);\n });\n}\n\n/** Available versions of the Playwright Service Management API. */\nexport enum KnownVersions {\n /** Stable version 2025-09-01 with general availability features for Playwright workspace management. */\n V20250901 = \"2025-09-01\",\n}\n"]}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { PlaywrightManagementClientOptionalParams } from "./api/index.js";
|
|
2
|
-
import {
|
|
2
|
+
import { OperationsOperations } from "./classic/operations/index.js";
|
|
3
3
|
import { PlaywrightQuotasOperations } from "./classic/playwrightQuotas/index.js";
|
|
4
|
+
import { PlaywrightWorkspaceQuotasOperations } from "./classic/playwrightWorkspaceQuotas/index.js";
|
|
4
5
|
import { PlaywrightWorkspacesOperations } from "./classic/playwrightWorkspaces/index.js";
|
|
5
|
-
import { OperationsOperations } from "./classic/operations/index.js";
|
|
6
|
-
import { Pipeline } from "@azure/core-rest-pipeline";
|
|
7
6
|
import { TokenCredential } from "@azure/core-auth";
|
|
7
|
+
import { Pipeline } from "@azure/core-rest-pipeline";
|
|
8
8
|
export { PlaywrightManagementClientOptionalParams } from "./api/playwrightManagementContext.js";
|
|
9
9
|
export declare class PlaywrightManagementClient {
|
|
10
10
|
private _client;
|
|
11
11
|
/** The pipeline used by this client to make requests */
|
|
12
12
|
readonly pipeline: Pipeline;
|
|
13
|
-
/** Playwright
|
|
13
|
+
/** Playwright Service Management API provides access to Playwright workspace resources and their operations through Azure Resource Manager. */
|
|
14
14
|
constructor(credential: TokenCredential, subscriptionId: string, options?: PlaywrightManagementClientOptionalParams);
|
|
15
15
|
/** The operation groups for playwrightWorkspaceQuotas */
|
|
16
16
|
readonly playwrightWorkspaceQuotas: PlaywrightWorkspaceQuotasOperations;
|
|
@@ -4,25 +4,38 @@
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.PlaywrightManagementClient = void 0;
|
|
6
6
|
const index_js_1 = require("./api/index.js");
|
|
7
|
-
const index_js_2 = require("./classic/
|
|
7
|
+
const index_js_2 = require("./classic/operations/index.js");
|
|
8
8
|
const index_js_3 = require("./classic/playwrightQuotas/index.js");
|
|
9
|
-
const index_js_4 = require("./classic/
|
|
10
|
-
const index_js_5 = require("./classic/
|
|
9
|
+
const index_js_4 = require("./classic/playwrightWorkspaceQuotas/index.js");
|
|
10
|
+
const index_js_5 = require("./classic/playwrightWorkspaces/index.js");
|
|
11
11
|
class PlaywrightManagementClient {
|
|
12
|
-
|
|
12
|
+
_client;
|
|
13
|
+
/** The pipeline used by this client to make requests */
|
|
14
|
+
pipeline;
|
|
15
|
+
/** Playwright Service Management API provides access to Playwright workspace resources and their operations through Azure Resource Manager. */
|
|
13
16
|
constructor(credential, subscriptionId, options = {}) {
|
|
14
|
-
|
|
15
|
-
const prefixFromOptions = (_a = options === null || options === void 0 ? void 0 : options.userAgentOptions) === null || _a === void 0 ? void 0 : _a.userAgentPrefix;
|
|
17
|
+
const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;
|
|
16
18
|
const userAgentPrefix = prefixFromOptions
|
|
17
19
|
? `${prefixFromOptions} azsdk-js-client`
|
|
18
20
|
: `azsdk-js-client`;
|
|
19
|
-
this._client = (0, index_js_1.createPlaywrightManagement)(credential, subscriptionId,
|
|
21
|
+
this._client = (0, index_js_1.createPlaywrightManagement)(credential, subscriptionId, {
|
|
22
|
+
...options,
|
|
23
|
+
userAgentOptions: { userAgentPrefix },
|
|
24
|
+
});
|
|
20
25
|
this.pipeline = this._client.pipeline;
|
|
21
|
-
this.playwrightWorkspaceQuotas = (0,
|
|
26
|
+
this.playwrightWorkspaceQuotas = (0, index_js_4._getPlaywrightWorkspaceQuotasOperations)(this._client);
|
|
22
27
|
this.playwrightQuotas = (0, index_js_3._getPlaywrightQuotasOperations)(this._client);
|
|
23
|
-
this.playwrightWorkspaces = (0,
|
|
24
|
-
this.operations = (0,
|
|
28
|
+
this.playwrightWorkspaces = (0, index_js_5._getPlaywrightWorkspacesOperations)(this._client);
|
|
29
|
+
this.operations = (0, index_js_2._getOperationsOperations)(this._client);
|
|
25
30
|
}
|
|
31
|
+
/** The operation groups for playwrightWorkspaceQuotas */
|
|
32
|
+
playwrightWorkspaceQuotas;
|
|
33
|
+
/** The operation groups for playwrightQuotas */
|
|
34
|
+
playwrightQuotas;
|
|
35
|
+
/** The operation groups for playwrightWorkspaces */
|
|
36
|
+
playwrightWorkspaces;
|
|
37
|
+
/** The operation groups for operations */
|
|
38
|
+
operations;
|
|
26
39
|
}
|
|
27
40
|
exports.PlaywrightManagementClient = PlaywrightManagementClient;
|
|
28
41
|
//# sourceMappingURL=playwrightManagementClient.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playwrightManagementClient.js","sourceRoot":"","sources":["../../src/playwrightManagementClient.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,6CAIwB;AACxB,
|
|
1
|
+
{"version":3,"file":"playwrightManagementClient.js","sourceRoot":"","sources":["../../src/playwrightManagementClient.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,6CAIwB;AACxB,4DAA+F;AAC/F,kEAG6C;AAC7C,2EAGsD;AACtD,sEAGiD;AAMjD,MAAa,0BAA0B;IAC7B,OAAO,CAA8B;IAC7C,wDAAwD;IACxC,QAAQ,CAAW;IAEnC,+IAA+I;IAC/I,YACE,UAA2B,EAC3B,cAAsB,EACtB,UAAoD,EAAE;QAEtD,MAAM,iBAAiB,GAAG,OAAO,EAAE,gBAAgB,EAAE,eAAe,CAAC;QACrE,MAAM,eAAe,GAAG,iBAAiB;YACvC,CAAC,CAAC,GAAG,iBAAiB,kBAAkB;YACxC,CAAC,CAAC,iBAAiB,CAAC;QACtB,IAAI,CAAC,OAAO,GAAG,IAAA,qCAA0B,EAAC,UAAU,EAAE,cAAc,EAAE;YACpE,GAAG,OAAO;YACV,gBAAgB,EAAE,EAAE,eAAe,EAAE;SACtC,CAAC,CAAC;QACH,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC;QACtC,IAAI,CAAC,yBAAyB,GAAG,IAAA,kDAAuC,EAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvF,IAAI,CAAC,gBAAgB,GAAG,IAAA,yCAA8B,EAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACrE,IAAI,CAAC,oBAAoB,GAAG,IAAA,6CAAkC,EAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,IAAI,CAAC,UAAU,GAAG,IAAA,mCAAwB,EAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC3D,CAAC;IAED,yDAAyD;IACzC,yBAAyB,CAAsC;IAC/E,gDAAgD;IAChC,gBAAgB,CAA6B;IAC7D,oDAAoD;IACpC,oBAAoB,CAAiC;IACrE,0CAA0C;IAC1B,UAAU,CAAuB;CAClD;AAlCD,gEAkCC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n createPlaywrightManagement,\n PlaywrightManagementContext,\n PlaywrightManagementClientOptionalParams,\n} from \"./api/index.js\";\nimport { OperationsOperations, _getOperationsOperations } from \"./classic/operations/index.js\";\nimport {\n PlaywrightQuotasOperations,\n _getPlaywrightQuotasOperations,\n} from \"./classic/playwrightQuotas/index.js\";\nimport {\n PlaywrightWorkspaceQuotasOperations,\n _getPlaywrightWorkspaceQuotasOperations,\n} from \"./classic/playwrightWorkspaceQuotas/index.js\";\nimport {\n PlaywrightWorkspacesOperations,\n _getPlaywrightWorkspacesOperations,\n} from \"./classic/playwrightWorkspaces/index.js\";\nimport { TokenCredential } from \"@azure/core-auth\";\nimport { Pipeline } from \"@azure/core-rest-pipeline\";\n\nexport { PlaywrightManagementClientOptionalParams } from \"./api/playwrightManagementContext.js\";\n\nexport class PlaywrightManagementClient {\n private _client: PlaywrightManagementContext;\n /** The pipeline used by this client to make requests */\n public readonly pipeline: Pipeline;\n\n /** Playwright Service Management API provides access to Playwright workspace resources and their operations through Azure Resource Manager. */\n constructor(\n credential: TokenCredential,\n subscriptionId: string,\n options: PlaywrightManagementClientOptionalParams = {},\n ) {\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-client`\n : `azsdk-js-client`;\n this._client = createPlaywrightManagement(credential, subscriptionId, {\n ...options,\n userAgentOptions: { userAgentPrefix },\n });\n this.pipeline = this._client.pipeline;\n this.playwrightWorkspaceQuotas = _getPlaywrightWorkspaceQuotasOperations(this._client);\n this.playwrightQuotas = _getPlaywrightQuotasOperations(this._client);\n this.playwrightWorkspaces = _getPlaywrightWorkspacesOperations(this._client);\n this.operations = _getOperationsOperations(this._client);\n }\n\n /** The operation groups for playwrightWorkspaceQuotas */\n public readonly playwrightWorkspaceQuotas: PlaywrightWorkspaceQuotasOperations;\n /** The operation groups for playwrightQuotas */\n public readonly playwrightQuotas: PlaywrightQuotasOperations;\n /** The operation groups for playwrightWorkspaces */\n public readonly playwrightWorkspaces: PlaywrightWorkspacesOperations;\n /** The operation groups for operations */\n public readonly operations: OperationsOperations;\n}\n"]}
|
|
@@ -12,21 +12,20 @@ const core_lro_1 = require("@azure/core-lro");
|
|
|
12
12
|
* needs to be constructed after the original one is not in scope.
|
|
13
13
|
*/
|
|
14
14
|
function restorePoller(client, serializedState, sourceOperation, options) {
|
|
15
|
-
var _a, _b, _c;
|
|
16
15
|
const pollerConfig = (0, core_lro_1.deserializeState)(serializedState).config;
|
|
17
16
|
const { initialRequestUrl, requestMethod, metadata } = pollerConfig;
|
|
18
17
|
if (!initialRequestUrl || !requestMethod) {
|
|
19
|
-
throw new Error(`Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation
|
|
18
|
+
throw new Error(`Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation?.name}`);
|
|
20
19
|
}
|
|
21
|
-
const resourceLocationConfig = metadata
|
|
22
|
-
const { deserializer, expectedStatuses = [] } =
|
|
23
|
-
const deserializeHelper =
|
|
20
|
+
const resourceLocationConfig = metadata?.["resourceLocationConfig"];
|
|
21
|
+
const { deserializer, expectedStatuses = [] } = getDeserializationHelper(initialRequestUrl, requestMethod) ?? {};
|
|
22
|
+
const deserializeHelper = options?.processResponseBody ?? deserializer;
|
|
24
23
|
if (!deserializeHelper) {
|
|
25
|
-
throw new Error(`Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation
|
|
24
|
+
throw new Error(`Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation?.name}.`);
|
|
26
25
|
}
|
|
27
|
-
return (0, pollingHelpers_js_1.getLongRunningPoller)(
|
|
28
|
-
updateIntervalInMs: options
|
|
29
|
-
abortSignal: options
|
|
26
|
+
return (0, pollingHelpers_js_1.getLongRunningPoller)(client["_client"] ?? client, deserializeHelper, expectedStatuses, {
|
|
27
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
28
|
+
abortSignal: options?.abortSignal,
|
|
30
29
|
resourceLocationConfig,
|
|
31
30
|
restoreFrom: serializedState,
|
|
32
31
|
initialRequestUrl,
|
|
@@ -39,11 +38,10 @@ const deserializeMap = {
|
|
|
39
38
|
},
|
|
40
39
|
"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/playwrightWorkspaces/{playwrightWorkspaceName}": {
|
|
41
40
|
deserializer: operations_js_1._createOrUpdateDeserialize,
|
|
42
|
-
expectedStatuses: ["200", "201"],
|
|
41
|
+
expectedStatuses: ["200", "201", "202"],
|
|
43
42
|
},
|
|
44
43
|
};
|
|
45
44
|
function getDeserializationHelper(urlStr, method) {
|
|
46
|
-
var _a, _b, _c, _d;
|
|
47
45
|
const path = new URL(urlStr).pathname;
|
|
48
46
|
const pathParts = path.split("/");
|
|
49
47
|
// Traverse list to match the longest candidate
|
|
@@ -63,13 +61,13 @@ function getDeserializationHelper(urlStr, method) {
|
|
|
63
61
|
// track if we have found a match to return the values found.
|
|
64
62
|
let found = true;
|
|
65
63
|
for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {
|
|
66
|
-
if (
|
|
67
|
-
const start = candidateParts[i].indexOf("}") + 1, end =
|
|
64
|
+
if (candidateParts[i]?.startsWith("{") && candidateParts[i]?.indexOf("}") !== -1) {
|
|
65
|
+
const start = candidateParts[i].indexOf("}") + 1, end = candidateParts[i]?.length;
|
|
68
66
|
// If the current part of the candidate is a "template" part
|
|
69
67
|
// Try to use the suffix of pattern to match the path
|
|
70
68
|
// {guid} ==> $
|
|
71
69
|
// {guid}:export ==> :export$
|
|
72
|
-
const isMatched = new RegExp(`${
|
|
70
|
+
const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(pathParts[j] || "");
|
|
73
71
|
if (!isMatched) {
|
|
74
72
|
found = false;
|
|
75
73
|
break;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"restorePollerHelpers.js","sourceRoot":"","sources":["../../src/restorePollerHelpers.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAoClC,sCAoCC;AArED,4EAGkD;AAClD,0EAA0E;AAG1E,8CAKyB;AAgBzB;;;;GAIG;AACH,SAAgB,aAAa,CAC3B,MAAkC,EAClC,eAAuB,EACvB,eAAiF,EACjF,OAAuC
|
|
1
|
+
{"version":3,"file":"restorePollerHelpers.js","sourceRoot":"","sources":["../../src/restorePollerHelpers.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAoClC,sCAoCC;AArED,4EAGkD;AAClD,0EAA0E;AAG1E,8CAKyB;AAgBzB;;;;GAIG;AACH,SAAgB,aAAa,CAC3B,MAAkC,EAClC,eAAuB,EACvB,eAAiF,EACjF,OAAuC;IAEvC,MAAM,YAAY,GAAG,IAAA,2BAAgB,EAAC,eAAe,CAAC,CAAC,MAAM,CAAC;IAC9D,MAAM,EAAE,iBAAiB,EAAE,aAAa,EAAE,QAAQ,EAAE,GAAG,YAAY,CAAC;IACpE,IAAI,CAAC,iBAAiB,IAAI,CAAC,aAAa,EAAE,CAAC;QACzC,MAAM,IAAI,KAAK,CACb,6BAA6B,eAAe,wBAAwB,eAAe,EAAE,IAAI,EAAE,CAC5F,CAAC;IACJ,CAAC;IACD,MAAM,sBAAsB,GAAG,QAAQ,EAAE,CAAC,wBAAwB,CAErD,CAAC;IACd,MAAM,EAAE,YAAY,EAAE,gBAAgB,GAAG,EAAE,EAAE,GAC3C,wBAAwB,CAAC,iBAAiB,EAAE,aAAa,CAAC,IAAI,EAAE,CAAC;IACnE,MAAM,iBAAiB,GAAG,OAAO,EAAE,mBAAmB,IAAI,YAAY,CAAC;IACvE,IAA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ACtE,IAAI,KAAK,IAAI,aAAa,CAAC,MAAM,GAAG,UAAU,EAAE,CAAC;YAC/C,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC;YAClC,YAAY,GAAG,KAAK,CAAC;QACvB,CAAC;IACH,CAAC;IAED,OAAO,YAAY,CAAC;AACtB,CAAC;AAED,SAAS,iBAAiB,CAAC,MAAc;IACvC,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACtC,OAAO,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { PlaywrightManagementClient } from \"./playwrightManagementClient.js\";\nimport {\n _$deleteDeserialize,\n _createOrUpdateDeserialize,\n} from \"./api/playwrightWorkspaces/operations.js\";\nimport { getLongRunningPoller } from \"./static-helpers/pollingHelpers.js\";\nimport { OperationOptions, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport {\n PollerLike,\n OperationState,\n deserializeState,\n ResourceLocationConfig,\n} from \"@azure/core-lro\";\n\nexport interface RestorePollerOptions<\n TResult,\n TResponse extends PathUncheckedResponse = PathUncheckedResponse,\n> extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /**\n * The signal which can be used to abort requests.\n */\n abortSignal?: AbortSignalLike;\n /** Deserialization function for raw response body */\n processResponseBody?: (result: TResponse) => Promise<TResult>;\n}\n\n/**\n * Creates a poller from the serialized state of another poller. This can be\n * useful when you want to create pollers on a different host or a poller\n * needs to be constructed after the original one is not in scope.\n */\nexport function restorePoller<TResponse extends PathUncheckedResponse, TResult>(\n client: PlaywrightManagementClient,\n serializedState: string,\n sourceOperation: (...args: any[]) => PollerLike<OperationState<TResult>, TResult>,\n options?: RestorePollerOptions<TResult>,\n): PollerLike<OperationState<TResult>, TResult> {\n const pollerConfig = deserializeState(serializedState).config;\n const { initialRequestUrl, requestMethod, metadata } = pollerConfig;\n if (!initialRequestUrl || !requestMethod) {\n throw new Error(\n `Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation?.name}`,\n );\n }\n const resourceLocationConfig = metadata?.[\"resourceLocationConfig\"] as\n | ResourceLocationConfig\n | undefined;\n const { deserializer, expectedStatuses = [] } =\n getDeserializationHelper(initialRequestUrl, requestMethod) ?? {};\n const deserializeHelper = options?.processResponseBody ?? deserializer;\n if (!deserializeHelper) {\n throw new Error(\n `Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation?.name}.`,\n );\n }\n return getLongRunningPoller(\n (client as any)[\"_client\"] ?? client,\n deserializeHelper as (result: TResponse) => Promise<TResult>,\n expectedStatuses,\n {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n resourceLocationConfig,\n restoreFrom: serializedState,\n initialRequestUrl,\n },\n );\n}\n\ninterface DeserializationHelper {\n deserializer: Function;\n expectedStatuses: string[];\n}\n\nconst deserializeMap: Record<string, DeserializationHelper> = {\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/playwrightWorkspaces/{playwrightWorkspaceName}\":\n {\n deserializer: _$deleteDeserialize,\n expectedStatuses: [\"202\", \"204\", \"200\"],\n },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/playwrightWorkspaces/{playwrightWorkspaceName}\":\n {\n deserializer: _createOrUpdateDeserialize,\n expectedStatuses: [\"200\", \"201\", \"202\"],\n },\n};\n\nfunction getDeserializationHelper(\n urlStr: string,\n method: string,\n): DeserializationHelper | undefined {\n const path = new URL(urlStr).pathname;\n const pathParts = path.split(\"/\");\n\n // Traverse list to match the longest candidate\n // matchedLen: the length of candidate path\n // matchedValue: the matched status code array\n let matchedLen = -1,\n matchedValue: DeserializationHelper | undefined;\n\n // Iterate the responseMap to find a match\n for (const [key, value] of Object.entries(deserializeMap)) {\n // Extracting the path from the map key which is in format\n // GET /path/foo\n if (!key.startsWith(method)) {\n continue;\n }\n const candidatePath = getPathFromMapKey(key);\n // Get each part of the url path\n const candidateParts = candidatePath.split(\"/\");\n\n // track if we have found a match to return the values found.\n let found = true;\n for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {\n if (candidateParts[i]?.startsWith(\"{\") && candidateParts[i]?.indexOf(\"}\") !== -1) {\n const start = candidateParts[i]!.indexOf(\"}\") + 1,\n end = candidateParts[i]?.length;\n // If the current part of the candidate is a \"template\" part\n // Try to use the suffix of pattern to match the path\n // {guid} ==> $\n // {guid}:export ==> :export$\n const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(\n pathParts[j] || \"\",\n );\n\n if (!isMatched) {\n found = false;\n break;\n }\n continue;\n }\n\n // If the candidate part is not a template and\n // the parts don't match mark the candidate as not found\n // to move on with the next candidate path.\n if (candidateParts[i] !== pathParts[j]) {\n found = false;\n break;\n }\n }\n\n // We finished evaluating the current candidate parts\n // Update the matched value if and only if we found the longer pattern\n if (found && candidatePath.length > matchedLen) {\n matchedLen = candidatePath.length;\n matchedValue = value;\n }\n }\n\n return matchedValue;\n}\n\nfunction getPathFromMapKey(mapKey: string): string {\n const pathStart = mapKey.indexOf(\"/\");\n return mapKey.slice(pathStart);\n}\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** An enum to describe Azure Cloud. */
|
|
2
|
+
export declare enum AzureClouds {
|
|
3
|
+
/** Azure public cloud, which is the default cloud for Azure SDKs. */
|
|
4
|
+
AZURE_PUBLIC_CLOUD = "AZURE_PUBLIC_CLOUD",
|
|
5
|
+
/** Azure China cloud */
|
|
6
|
+
AZURE_CHINA_CLOUD = "AZURE_CHINA_CLOUD",
|
|
7
|
+
/** Azure US government cloud */
|
|
8
|
+
AZURE_US_GOVERNMENT = "AZURE_US_GOVERNMENT"
|
|
9
|
+
}
|
|
10
|
+
/** The supported values for cloud setting as a string literal type */
|
|
11
|
+
export type AzureSupportedClouds = `${AzureClouds}`;
|
|
12
|
+
export declare function getArmEndpoint(cloudSetting?: AzureSupportedClouds): string | undefined;
|
|
13
|
+
//# sourceMappingURL=cloudSettingHelpers.d.ts.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT License.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.AzureClouds = void 0;
|
|
6
|
+
exports.getArmEndpoint = getArmEndpoint;
|
|
7
|
+
/** An enum to describe Azure Cloud. */
|
|
8
|
+
var AzureClouds;
|
|
9
|
+
(function (AzureClouds) {
|
|
10
|
+
/** Azure public cloud, which is the default cloud for Azure SDKs. */
|
|
11
|
+
AzureClouds["AZURE_PUBLIC_CLOUD"] = "AZURE_PUBLIC_CLOUD";
|
|
12
|
+
/** Azure China cloud */
|
|
13
|
+
AzureClouds["AZURE_CHINA_CLOUD"] = "AZURE_CHINA_CLOUD";
|
|
14
|
+
/** Azure US government cloud */
|
|
15
|
+
AzureClouds["AZURE_US_GOVERNMENT"] = "AZURE_US_GOVERNMENT";
|
|
16
|
+
})(AzureClouds || (exports.AzureClouds = AzureClouds = {}));
|
|
17
|
+
function getArmEndpoint(cloudSetting) {
|
|
18
|
+
if (cloudSetting === undefined) {
|
|
19
|
+
return undefined;
|
|
20
|
+
}
|
|
21
|
+
const cloudEndpoints = {
|
|
22
|
+
AZURE_CHINA_CLOUD: "https://management.chinacloudapi.cn/",
|
|
23
|
+
AZURE_US_GOVERNMENT: "https://management.usgovcloudapi.net/",
|
|
24
|
+
AZURE_PUBLIC_CLOUD: "https://management.azure.com/",
|
|
25
|
+
};
|
|
26
|
+
if (cloudSetting in cloudEndpoints) {
|
|
27
|
+
return cloudEndpoints[cloudSetting];
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
throw new Error(`Unknown cloud setting: ${cloudSetting}. Please refer to the enum AzureClouds for possible values.`);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=cloudSettingHelpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cloudSettingHelpers.js","sourceRoot":"","sources":["../../../src/static-helpers/cloudSettingHelpers.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAelC,wCAgBC;AA7BD,uCAAuC;AACvC,IAAY,WAOX;AAPD,WAAY,WAAW;IACrB,qEAAqE;IACrE,wDAAyC,CAAA;IACzC,wBAAwB;IACxB,sDAAuC,CAAA;IACvC,gCAAgC;IAChC,0DAA2C,CAAA;AAC7C,CAAC,EAPW,WAAW,2BAAX,WAAW,QAOtB;AAKD,SAAgB,cAAc,CAAC,YAAmC;IAChE,IAAI,YAAY,KAAK,SAAS,EAAE,CAAC;QAC/B,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,MAAM,cAAc,GAA6C;QAC/D,iBAAiB,EAAE,sCAAsC;QACzD,mBAAmB,EAAE,uCAAuC;QAC5D,kBAAkB,EAAE,+BAA+B;KACpD,CAAC;IACF,IAAI,YAAY,IAAI,cAAc,EAAE,CAAC;QACnC,OAAO,cAAc,CAAC,YAAY,CAAC,CAAC;IACtC,CAAC;SAAM,CAAC;QACN,MAAM,IAAI,KAAK,CACb,0BAA0B,YAAY,6DAA6D,CACpG,CAAC;IACJ,CAAC;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/** An enum to describe Azure Cloud. */\nexport enum AzureClouds {\n /** Azure public cloud, which is the default cloud for Azure SDKs. */\n AZURE_PUBLIC_CLOUD = \"AZURE_PUBLIC_CLOUD\",\n /** Azure China cloud */\n AZURE_CHINA_CLOUD = \"AZURE_CHINA_CLOUD\",\n /** Azure US government cloud */\n AZURE_US_GOVERNMENT = \"AZURE_US_GOVERNMENT\",\n}\n\n/** The supported values for cloud setting as a string literal type */\nexport type AzureSupportedClouds = `${AzureClouds}`;\n\nexport function getArmEndpoint(cloudSetting?: AzureSupportedClouds): string | undefined {\n if (cloudSetting === undefined) {\n return undefined;\n }\n const cloudEndpoints: Record<keyof typeof AzureClouds, string> = {\n AZURE_CHINA_CLOUD: \"https://management.chinacloudapi.cn/\",\n AZURE_US_GOVERNMENT: \"https://management.usgovcloudapi.net/\",\n AZURE_PUBLIC_CLOUD: \"https://management.azure.com/\",\n };\n if (cloudSetting in cloudEndpoints) {\n return cloudEndpoints[cloudSetting];\n } else {\n throw new Error(\n `Unknown cloud setting: ${cloudSetting}. Please refer to the enum AzureClouds for possible values.`,\n );\n }\n}\n"]}
|