diff --git a/sdk/databoxedge/arm-databoxedge/LICENSE.txt b/sdk/databoxedge/arm-databoxedge/LICENSE.txt index ea8fb1516028..2d3163745319 100644 --- a/sdk/databoxedge/arm-databoxedge/LICENSE.txt +++ b/sdk/databoxedge/arm-databoxedge/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2020 Microsoft +Copyright (c) 2021 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/databoxedge/arm-databoxedge/README.md b/sdk/databoxedge/arm-databoxedge/README.md index 53816f7385fa..f1e033e31dcb 100644 --- a/sdk/databoxedge/arm-databoxedge/README.md +++ b/sdk/databoxedge/arm-databoxedge/README.md @@ -1,11 +1,11 @@ ## Azure DataBoxEdgeManagementClient SDK for JavaScript -This package contains an isomorphic SDK (runs both in Node.js and in browsers) for DataBoxEdgeManagementClient. +This package contains an isomorphic SDK (runs both in node.js and in browsers) for DataBoxEdgeManagementClient. ### Currently supported environments - [LTS versions of Node.js](https://nodejs.org/about/releases/) -- Latest versions of Safari, Chrome, Edge, and Firefox. +- Latest versions of Safari, Chrome, Edge and Firefox. ### Prerequisites @@ -21,7 +21,6 @@ Install both packages using the below command: ```bash npm install --save @azure/arm-databoxedge @azure/identity ``` - > **Note**: You may have used either `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` in the past. These packages are in maintenance mode receiving critical bug fixes, but no new features. If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options. @@ -37,7 +36,6 @@ If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/ In the below samples, we pass the credential and the Azure subscription id to instantiate the client. Once the client is created, explore the operations on it either in your favorite editor or in our [API reference documentation](https://docs.microsoft.com/javascript/api) to get started. - #### nodejs - Authentication, client creation, and list operations as an example written in JavaScript. ##### Sample code @@ -51,7 +49,6 @@ const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; // Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. const creds = new DefaultAzureCredential(); const client = new DataBoxEdgeManagementClient(creds, subscriptionId); - client.operations.list().then((result) => { console.log("The result is:"); console.log(result); @@ -86,7 +83,7 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t const credential = new InteractiveBrowserCredential( { clientId: "", - tenantId: "" + tenant: "" }); const client = new Azure.ArmDataboxedge.DataBoxEdgeManagementClient(creds, subscriptionId); client.operations.list().then((result) => { diff --git a/sdk/databoxedge/arm-databoxedge/package.json b/sdk/databoxedge/arm-databoxedge/package.json index 3d5554ad9b95..d3307f921932 100644 --- a/sdk/databoxedge/arm-databoxedge/package.json +++ b/sdk/databoxedge/arm-databoxedge/package.json @@ -27,7 +27,7 @@ "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.6.0" }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/feature/v4/sdk/databoxedge/arm-databoxedge", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/databoxedge/arm-databoxedge", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" diff --git a/sdk/databoxedge/arm-databoxedge/rollup.config.js b/sdk/databoxedge/arm-databoxedge/rollup.config.js index 2076ead7e852..b182f3e911be 100644 --- a/sdk/databoxedge/arm-databoxedge/rollup.config.js +++ b/sdk/databoxedge/arm-databoxedge/rollup.config.js @@ -21,8 +21,8 @@ const config = { "@azure/ms-rest-azure-js": "msRestAzure" }, banner: `/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/databoxedge/arm-databoxedge/src/dataBoxEdgeManagementClient.ts b/sdk/databoxedge/arm-databoxedge/src/dataBoxEdgeManagementClient.ts index 5c59037970dc..b454de54d359 100644 --- a/sdk/databoxedge/arm-databoxedge/src/dataBoxEdgeManagementClient.ts +++ b/sdk/databoxedge/arm-databoxedge/src/dataBoxEdgeManagementClient.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -19,21 +18,25 @@ import { DataBoxEdgeManagementClientContext } from "./dataBoxEdgeManagementClien class DataBoxEdgeManagementClient extends DataBoxEdgeManagementClientContext { // Operation groups operations: operations.Operations; + availableSkus: operations.AvailableSkus; devices: operations.Devices; alerts: operations.Alerts; bandwidthSchedules: operations.BandwidthSchedules; + diagnosticSettings: operations.DiagnosticSettings; jobs: operations.Jobs; nodes: operations.Nodes; operationsStatus: operations.OperationsStatus; orders: operations.Orders; roles: operations.Roles; + addons: operations.Addons; + monitoringConfig: operations.MonitoringConfig; shares: operations.Shares; storageAccountCredentials: operations.StorageAccountCredentials; storageAccounts: operations.StorageAccounts; containers: operations.Containers; triggers: operations.Triggers; + supportPackages: operations.SupportPackages; users: operations.Users; - skus: operations.Skus; /** * Initializes a new instance of the DataBoxEdgeManagementClient class. @@ -49,21 +52,25 @@ class DataBoxEdgeManagementClient extends DataBoxEdgeManagementClientContext { constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.DataBoxEdgeManagementClientOptions) { super(credentials, subscriptionId, options); this.operations = new operations.Operations(this); + this.availableSkus = new operations.AvailableSkus(this); this.devices = new operations.Devices(this); this.alerts = new operations.Alerts(this); this.bandwidthSchedules = new operations.BandwidthSchedules(this); + this.diagnosticSettings = new operations.DiagnosticSettings(this); this.jobs = new operations.Jobs(this); this.nodes = new operations.Nodes(this); this.operationsStatus = new operations.OperationsStatus(this); this.orders = new operations.Orders(this); this.roles = new operations.Roles(this); + this.addons = new operations.Addons(this); + this.monitoringConfig = new operations.MonitoringConfig(this); this.shares = new operations.Shares(this); this.storageAccountCredentials = new operations.StorageAccountCredentials(this); this.storageAccounts = new operations.StorageAccounts(this); this.containers = new operations.Containers(this); this.triggers = new operations.Triggers(this); + this.supportPackages = new operations.SupportPackages(this); this.users = new operations.Users(this); - this.skus = new operations.Skus(this); } } diff --git a/sdk/databoxedge/arm-databoxedge/src/dataBoxEdgeManagementClientContext.ts b/sdk/databoxedge/arm-databoxedge/src/dataBoxEdgeManagementClientContext.ts index b78bdc1822cd..7e8a763582d9 100644 --- a/sdk/databoxedge/arm-databoxedge/src/dataBoxEdgeManagementClientContext.ts +++ b/sdk/databoxedge/arm-databoxedge/src/dataBoxEdgeManagementClientContext.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -10,8 +9,8 @@ import * as Models from "./models"; import * as msRest from "@azure/ms-rest-js"; -import { TokenCredential } from "@azure/core-auth"; import * as msRestAzure from "@azure/ms-rest-azure-js"; +import { TokenCredential } from "@azure/core-auth"; const packageName = "@azure/arm-databoxedge"; const packageVersion = "1.1.1"; @@ -50,7 +49,7 @@ export class DataBoxEdgeManagementClientContext extends msRestAzure.AzureService super(credentials, options); - this.apiVersion = '2019-08-01'; + this.apiVersion = '2021-06-01'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; diff --git a/sdk/databoxedge/arm-databoxedge/src/models/addonsMappers.ts b/sdk/databoxedge/arm-databoxedge/src/models/addonsMappers.ts new file mode 100644 index 000000000000..586492071507 --- /dev/null +++ b/sdk/databoxedge/arm-databoxedge/src/models/addonsMappers.ts @@ -0,0 +1,95 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + Addon, + AddonList, + Address, + Alert, + AlertErrorDetails, + ArcAddon, + ARMBaseModel, + AsymmetricEncryptedSecret, + Authentication, + AzureContainerInfo, + BandwidthSchedule, + BaseResource, + ClientAccessRight, + CloudEdgeManagementRole, + CloudError, + CniConfig, + ComputeResource, + ContactDetails, + Container, + DataBoxEdgeDevice, + DataBoxEdgeDeviceExtendedInfo, + DataResidency, + DiagnosticProactiveLogCollectionSettings, + DiagnosticRemoteSupportSettings, + EdgeProfile, + EdgeProfileSubscription, + EtcdInfo, + FileEventTrigger, + FileSourceInfo, + ImageRepositoryCredential, + IoTAddon, + IoTDeviceInfo, + IoTEdgeAgentInfo, + IoTRole, + Ipv4Config, + Ipv6Config, + KubernetesClusterInfo, + KubernetesIPConfiguration, + KubernetesRole, + KubernetesRoleCompute, + KubernetesRoleNetwork, + KubernetesRoleResources, + KubernetesRoleStorage, + KubernetesRoleStorageClassInfo, + LoadBalancerConfig, + MECRole, + MetricConfiguration, + MetricCounter, + MetricCounterSet, + MetricDimension, + MonitoringMetricConfiguration, + MountPointMap, + NetworkAdapter, + NetworkAdapterPosition, + NetworkSettings, + Node, + NodeInfo, + Order, + OrderStatus, + PeriodicTimerEventTrigger, + PeriodicTimerSourceInfo, + RefreshDetails, + RemoteSupportSettings, + ResourceIdentity, + ResourceMoveDetails, + Role, + RoleSinkInfo, + Secret, + SecuritySettings, + Share, + ShareAccessRight, + Sku, + StorageAccount, + StorageAccountCredential, + SubscriptionRegisteredFeatures, + SymmetricKey, + SystemData, + TrackingInfo, + Trigger, + TriggerSupportPackageRequest, + UpdateDetails, + UpdateSummary, + User, + UserAccessRight +} from "../models/mappers"; diff --git a/sdk/databoxedge/arm-databoxedge/src/models/alertsMappers.ts b/sdk/databoxedge/arm-databoxedge/src/models/alertsMappers.ts index fd3bcdf1b586..6b396398eeb4 100644 --- a/sdk/databoxedge/arm-databoxedge/src/models/alertsMappers.ts +++ b/sdk/databoxedge/arm-databoxedge/src/models/alertsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,10 +8,12 @@ export { discriminators, + Addon, Address, Alert, AlertErrorDetails, AlertList, + ArcAddon, ARMBaseModel, AsymmetricEncryptedSecret, Authentication, @@ -19,38 +21,74 @@ export { BandwidthSchedule, BaseResource, ClientAccessRight, + CloudEdgeManagementRole, CloudError, + CniConfig, + ComputeResource, ContactDetails, Container, DataBoxEdgeDevice, DataBoxEdgeDeviceExtendedInfo, + DataResidency, + DiagnosticProactiveLogCollectionSettings, + DiagnosticRemoteSupportSettings, + EdgeProfile, + EdgeProfileSubscription, + EtcdInfo, FileEventTrigger, FileSourceInfo, + ImageRepositoryCredential, + IoTAddon, IoTDeviceInfo, + IoTEdgeAgentInfo, IoTRole, Ipv4Config, Ipv6Config, + KubernetesClusterInfo, + KubernetesIPConfiguration, + KubernetesRole, + KubernetesRoleCompute, + KubernetesRoleNetwork, + KubernetesRoleResources, + KubernetesRoleStorage, + KubernetesRoleStorageClassInfo, + LoadBalancerConfig, + MECRole, + MetricConfiguration, + MetricCounter, + MetricCounterSet, + MetricDimension, + MonitoringMetricConfiguration, MountPointMap, NetworkAdapter, NetworkAdapterPosition, NetworkSettings, Node, + NodeInfo, Order, OrderStatus, PeriodicTimerEventTrigger, PeriodicTimerSourceInfo, RefreshDetails, + RemoteSupportSettings, + ResourceIdentity, + ResourceMoveDetails, Role, RoleSinkInfo, + Secret, SecuritySettings, Share, ShareAccessRight, Sku, StorageAccount, StorageAccountCredential, + SubscriptionRegisteredFeatures, SymmetricKey, + SystemData, TrackingInfo, Trigger, + TriggerSupportPackageRequest, + UpdateDetails, UpdateSummary, User, UserAccessRight diff --git a/sdk/databoxedge/arm-databoxedge/src/models/availableSkusMappers.ts b/sdk/databoxedge/arm-databoxedge/src/models/availableSkusMappers.ts new file mode 100644 index 000000000000..ddfe7ab11aa3 --- /dev/null +++ b/sdk/databoxedge/arm-databoxedge/src/models/availableSkusMappers.ts @@ -0,0 +1,17 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + CloudError, + DataBoxEdgeSku, + DataBoxEdgeSkuList, + SkuCapability, + SkuCost, + SkuLocationInfo +} from "../models/mappers"; diff --git a/sdk/databoxedge/arm-databoxedge/src/models/bandwidthSchedulesMappers.ts b/sdk/databoxedge/arm-databoxedge/src/models/bandwidthSchedulesMappers.ts index f915bde43738..e980e4957a54 100644 --- a/sdk/databoxedge/arm-databoxedge/src/models/bandwidthSchedulesMappers.ts +++ b/sdk/databoxedge/arm-databoxedge/src/models/bandwidthSchedulesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,9 +8,11 @@ export { discriminators, + Addon, Address, Alert, AlertErrorDetails, + ArcAddon, ARMBaseModel, AsymmetricEncryptedSecret, Authentication, @@ -19,38 +21,74 @@ export { BandwidthSchedulesList, BaseResource, ClientAccessRight, + CloudEdgeManagementRole, CloudError, + CniConfig, + ComputeResource, ContactDetails, Container, DataBoxEdgeDevice, DataBoxEdgeDeviceExtendedInfo, + DataResidency, + DiagnosticProactiveLogCollectionSettings, + DiagnosticRemoteSupportSettings, + EdgeProfile, + EdgeProfileSubscription, + EtcdInfo, FileEventTrigger, FileSourceInfo, + ImageRepositoryCredential, + IoTAddon, IoTDeviceInfo, + IoTEdgeAgentInfo, IoTRole, Ipv4Config, Ipv6Config, + KubernetesClusterInfo, + KubernetesIPConfiguration, + KubernetesRole, + KubernetesRoleCompute, + KubernetesRoleNetwork, + KubernetesRoleResources, + KubernetesRoleStorage, + KubernetesRoleStorageClassInfo, + LoadBalancerConfig, + MECRole, + MetricConfiguration, + MetricCounter, + MetricCounterSet, + MetricDimension, + MonitoringMetricConfiguration, MountPointMap, NetworkAdapter, NetworkAdapterPosition, NetworkSettings, Node, + NodeInfo, Order, OrderStatus, PeriodicTimerEventTrigger, PeriodicTimerSourceInfo, RefreshDetails, + RemoteSupportSettings, + ResourceIdentity, + ResourceMoveDetails, Role, RoleSinkInfo, + Secret, SecuritySettings, Share, ShareAccessRight, Sku, StorageAccount, StorageAccountCredential, + SubscriptionRegisteredFeatures, SymmetricKey, + SystemData, TrackingInfo, Trigger, + TriggerSupportPackageRequest, + UpdateDetails, UpdateSummary, User, UserAccessRight diff --git a/sdk/databoxedge/arm-databoxedge/src/models/containersMappers.ts b/sdk/databoxedge/arm-databoxedge/src/models/containersMappers.ts index 8540a4f43389..050d99a4e23d 100644 --- a/sdk/databoxedge/arm-databoxedge/src/models/containersMappers.ts +++ b/sdk/databoxedge/arm-databoxedge/src/models/containersMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,9 +8,11 @@ export { discriminators, + Addon, Address, Alert, AlertErrorDetails, + ArcAddon, ARMBaseModel, AsymmetricEncryptedSecret, Authentication, @@ -18,39 +20,75 @@ export { BandwidthSchedule, BaseResource, ClientAccessRight, + CloudEdgeManagementRole, CloudError, + CniConfig, + ComputeResource, ContactDetails, Container, ContainerList, DataBoxEdgeDevice, DataBoxEdgeDeviceExtendedInfo, + DataResidency, + DiagnosticProactiveLogCollectionSettings, + DiagnosticRemoteSupportSettings, + EdgeProfile, + EdgeProfileSubscription, + EtcdInfo, FileEventTrigger, FileSourceInfo, + ImageRepositoryCredential, + IoTAddon, IoTDeviceInfo, + IoTEdgeAgentInfo, IoTRole, Ipv4Config, Ipv6Config, + KubernetesClusterInfo, + KubernetesIPConfiguration, + KubernetesRole, + KubernetesRoleCompute, + KubernetesRoleNetwork, + KubernetesRoleResources, + KubernetesRoleStorage, + KubernetesRoleStorageClassInfo, + LoadBalancerConfig, + MECRole, + MetricConfiguration, + MetricCounter, + MetricCounterSet, + MetricDimension, + MonitoringMetricConfiguration, MountPointMap, NetworkAdapter, NetworkAdapterPosition, NetworkSettings, Node, + NodeInfo, Order, OrderStatus, PeriodicTimerEventTrigger, PeriodicTimerSourceInfo, RefreshDetails, + RemoteSupportSettings, + ResourceIdentity, + ResourceMoveDetails, Role, RoleSinkInfo, + Secret, SecuritySettings, Share, ShareAccessRight, Sku, StorageAccount, StorageAccountCredential, + SubscriptionRegisteredFeatures, SymmetricKey, + SystemData, TrackingInfo, Trigger, + TriggerSupportPackageRequest, + UpdateDetails, UpdateSummary, User, UserAccessRight diff --git a/sdk/databoxedge/arm-databoxedge/src/models/devicesMappers.ts b/sdk/databoxedge/arm-databoxedge/src/models/devicesMappers.ts index e4686b1116a5..33800fc323b1 100644 --- a/sdk/databoxedge/arm-databoxedge/src/models/devicesMappers.ts +++ b/sdk/databoxedge/arm-databoxedge/src/models/devicesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,9 +8,11 @@ export { discriminators, + Addon, Address, Alert, AlertErrorDetails, + ArcAddon, ARMBaseModel, AsymmetricEncryptedSecret, Authentication, @@ -18,40 +20,80 @@ export { BandwidthSchedule, BaseResource, ClientAccessRight, + CloudEdgeManagementRole, CloudError, + CniConfig, + ComputeResource, ContactDetails, Container, DataBoxEdgeDevice, DataBoxEdgeDeviceExtendedInfo, + DataBoxEdgeDeviceExtendedInfoPatch, DataBoxEdgeDeviceList, DataBoxEdgeDevicePatch, + DataResidency, + DiagnosticProactiveLogCollectionSettings, + DiagnosticRemoteSupportSettings, + EdgeProfile, + EdgeProfilePatch, + EdgeProfileSubscription, + EdgeProfileSubscriptionPatch, + EtcdInfo, FileEventTrigger, FileSourceInfo, + GenerateCertResponse, + ImageRepositoryCredential, + IoTAddon, IoTDeviceInfo, + IoTEdgeAgentInfo, IoTRole, Ipv4Config, Ipv6Config, + KubernetesClusterInfo, + KubernetesIPConfiguration, + KubernetesRole, + KubernetesRoleCompute, + KubernetesRoleNetwork, + KubernetesRoleResources, + KubernetesRoleStorage, + KubernetesRoleStorageClassInfo, + LoadBalancerConfig, + MECRole, + MetricConfiguration, + MetricCounter, + MetricCounterSet, + MetricDimension, + MonitoringMetricConfiguration, MountPointMap, NetworkAdapter, NetworkAdapterPosition, NetworkSettings, Node, + NodeInfo, Order, OrderStatus, PeriodicTimerEventTrigger, PeriodicTimerSourceInfo, RefreshDetails, + RemoteSupportSettings, + ResourceIdentity, + ResourceMoveDetails, Role, RoleSinkInfo, + Secret, SecuritySettings, Share, ShareAccessRight, Sku, StorageAccount, StorageAccountCredential, + SubscriptionRegisteredFeatures, SymmetricKey, + SystemData, TrackingInfo, Trigger, + TriggerSupportPackageRequest, + UpdateDetails, UpdateSummary, UploadCertificateRequest, UploadCertificateResponse, diff --git a/sdk/databoxedge/arm-databoxedge/src/models/diagnosticSettingsMappers.ts b/sdk/databoxedge/arm-databoxedge/src/models/diagnosticSettingsMappers.ts new file mode 100644 index 000000000000..0446a73dd9e1 --- /dev/null +++ b/sdk/databoxedge/arm-databoxedge/src/models/diagnosticSettingsMappers.ts @@ -0,0 +1,94 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + Addon, + Address, + Alert, + AlertErrorDetails, + ArcAddon, + ARMBaseModel, + AsymmetricEncryptedSecret, + Authentication, + AzureContainerInfo, + BandwidthSchedule, + BaseResource, + ClientAccessRight, + CloudEdgeManagementRole, + CloudError, + CniConfig, + ComputeResource, + ContactDetails, + Container, + DataBoxEdgeDevice, + DataBoxEdgeDeviceExtendedInfo, + DataResidency, + DiagnosticProactiveLogCollectionSettings, + DiagnosticRemoteSupportSettings, + EdgeProfile, + EdgeProfileSubscription, + EtcdInfo, + FileEventTrigger, + FileSourceInfo, + ImageRepositoryCredential, + IoTAddon, + IoTDeviceInfo, + IoTEdgeAgentInfo, + IoTRole, + Ipv4Config, + Ipv6Config, + KubernetesClusterInfo, + KubernetesIPConfiguration, + KubernetesRole, + KubernetesRoleCompute, + KubernetesRoleNetwork, + KubernetesRoleResources, + KubernetesRoleStorage, + KubernetesRoleStorageClassInfo, + LoadBalancerConfig, + MECRole, + MetricConfiguration, + MetricCounter, + MetricCounterSet, + MetricDimension, + MonitoringMetricConfiguration, + MountPointMap, + NetworkAdapter, + NetworkAdapterPosition, + NetworkSettings, + Node, + NodeInfo, + Order, + OrderStatus, + PeriodicTimerEventTrigger, + PeriodicTimerSourceInfo, + RefreshDetails, + RemoteSupportSettings, + ResourceIdentity, + ResourceMoveDetails, + Role, + RoleSinkInfo, + Secret, + SecuritySettings, + Share, + ShareAccessRight, + Sku, + StorageAccount, + StorageAccountCredential, + SubscriptionRegisteredFeatures, + SymmetricKey, + SystemData, + TrackingInfo, + Trigger, + TriggerSupportPackageRequest, + UpdateDetails, + UpdateSummary, + User, + UserAccessRight +} from "../models/mappers"; diff --git a/sdk/databoxedge/arm-databoxedge/src/models/index.ts b/sdk/databoxedge/arm-databoxedge/src/models/index.ts index 32d02574968f..69c17333417f 100644 --- a/sdk/databoxedge/arm-databoxedge/src/models/index.ts +++ b/sdk/databoxedge/arm-databoxedge/src/models/index.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -11,6 +11,93 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; +/** + * Metadata pertaining to creation and last modification of the resource. + */ +export interface SystemData { + /** + * The identity that created the resource. + */ + createdBy?: string; + /** + * The type of identity that created the resource. Possible values include: 'User', + * 'Application', 'ManagedIdentity', 'Key' + */ + createdByType?: CreatedByType; + /** + * The timestamp of resource creation (UTC). + */ + createdAt?: Date; + /** + * The identity that last modified the resource. + */ + lastModifiedBy?: string; + /** + * The type of identity that last modified the resource. Possible values include: 'User', + * 'Application', 'ManagedIdentity', 'Key' + */ + lastModifiedByType?: CreatedByType; + /** + * The type of identity that last modified the resource. + */ + lastModifiedAt?: Date; +} + +/** + * Represents the base class for all object models. + */ +export interface ARMBaseModel extends BaseResource { + /** + * The path ID that uniquely identifies the object. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * The object name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * The hierarchical type of the object. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; +} + +/** + * Contains the possible cases for Addon. + */ +export type AddonUnion = Addon | ArcAddon | IoTAddon; + +/** + * Role Addon + */ +export interface Addon { + /** + * Polymorphic Discriminator + */ + kind: "Addon"; + /** + * The path ID that uniquely identifies the object. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * The object name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * The hierarchical type of the object. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * Addon type + */ + systemData?: SystemData; +} + /** * The shipping address of the customer. */ @@ -18,7 +105,7 @@ export interface Address { /** * The address line1. */ - addressLine1: string; + addressLine1?: string; /** * The address line2. */ @@ -30,15 +117,15 @@ export interface Address { /** * The postal code. */ - postalCode: string; + postalCode?: string; /** * The city name. */ - city: string; + city?: string; /** * The state name. */ - state: string; + state?: string; /** * The country name. */ @@ -66,31 +153,14 @@ export interface AlertErrorDetails { readonly occurrences?: number; } -/** - * Represents the base class for all object models. - */ -export interface ARMBaseModel extends BaseResource { - /** - * The path ID that uniquely identifies the object. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly id?: string; - /** - * The object name. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; - /** - * The hierarchical type of the object. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly type?: string; -} - /** * Alert on the data box edge/gateway device. */ export interface Alert extends ARMBaseModel { + /** + * Alert generated in the resource + */ + systemData?: SystemData; /** * Alert title. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -128,6 +198,72 @@ export interface Alert extends ARMBaseModel { readonly detailedInformation?: { [propertyName: string]: string }; } +/** + * Arc Addon. + */ +export interface ArcAddon { + /** + * Polymorphic Discriminator + */ + kind: "ArcForKubernetes"; + /** + * The path ID that uniquely identifies the object. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * The object name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * The hierarchical type of the object. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * Addon type + */ + systemData?: SystemData; + /** + * Arc resource subscription Id + */ + subscriptionId: string; + /** + * Arc resource group name + */ + resourceGroupName: string; + /** + * Arc resource Name + */ + resourceName: string; + /** + * Arc resource location + */ + resourceLocation: string; + /** + * Arc resource version + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly version?: string; + /** + * Host OS supported by the Arc addon. Possible values include: 'Windows', 'Linux' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly hostPlatform?: PlatformType; + /** + * Platform where the runtime is hosted. Possible values include: 'KubernetesCluster', 'LinuxVM' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly hostPlatformType?: HostPlatformType; + /** + * Addon Provisioning State. Possible values include: 'Invalid', 'Creating', 'Created', + * 'Updating', 'Reconfiguring', 'Failed', 'Deleting' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: AddonState; +} + /** * Represent the secrets intended for encryption with asymmetric key pair. */ @@ -192,6 +328,10 @@ export interface AzureContainerInfo { * The bandwidth schedule details. */ export interface BandwidthSchedule extends ARMBaseModel { + /** + * Bandwidth object related to ASE resource + */ + systemData?: SystemData; /** * The start time of the schedule in UTC. */ @@ -225,6 +365,166 @@ export interface ClientAccessRight { accessPermission: ClientPermissionType; } +/** + * An interface representing SubscriptionRegisteredFeatures. + */ +export interface SubscriptionRegisteredFeatures { + name?: string; + state?: string; +} + +/** + * Subscription details for the Edge Profile + */ +export interface EdgeProfileSubscription { + /** + * Edge Subscription Registration ID + */ + registrationId?: string; + /** + * ARM ID of the subscription + */ + id?: string; + /** + * Possible values include: 'Registered', 'Warned', 'Suspended', 'Deleted', 'Unregistered' + */ + state?: SubscriptionState; + registrationDate?: string; + subscriptionId?: string; + tenantId?: string; + locationPlacementId?: string; + quotaId?: string; + serializedDetails?: string; + registeredFeatures?: SubscriptionRegisteredFeatures[]; +} + +/** + * Details about Edge Profile for the resource + */ +export interface EdgeProfile { + /** + * Edge Profile Subscription + */ + subscription?: EdgeProfileSubscription; +} + +/** + * Contains the possible cases for Role. + */ +export type RoleUnion = Role | CloudEdgeManagementRole | IoTRole | KubernetesRole | MECRole; + +/** + * Compute role. + */ +export interface Role { + /** + * Polymorphic Discriminator + */ + kind: "Role"; + /** + * The path ID that uniquely identifies the object. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * The object name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * The hierarchical type of the object. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * Role configured on ASE resource + */ + systemData?: SystemData; +} + +/** + * CloudEdgeManagementRole role. + */ +export interface CloudEdgeManagementRole { + /** + * Polymorphic Discriminator + */ + kind: "CloudEdgeManagement"; + /** + * The path ID that uniquely identifies the object. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * The object name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * The hierarchical type of the object. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * Role configured on ASE resource + */ + systemData?: SystemData; + /** + * Local Edge Management Status. Possible values include: 'Enabled', 'Disabled' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly localManagementStatus?: RoleStatus; + /** + * Edge Profile of the resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly edgeProfile?: EdgeProfile; + /** + * Role status. Possible values include: 'Enabled', 'Disabled' + */ + roleStatus: RoleStatus; +} + +/** + * Cni configuration + */ +export interface CniConfig { + /** + * Cni type + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * Cni version + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly version?: string; + /** + * Pod Subnet + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly podSubnet?: string; + /** + * Service subnet + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly serviceSubnet?: string; +} + +/** + * Compute infrastructure Resource + */ +export interface ComputeResource { + /** + * Processor count + */ + processorCount: number; + /** + * Memory in GB + */ + memoryInGB: number; +} + /** * Contains all the contact details of the customer. */ @@ -277,6 +577,10 @@ export interface RefreshDetails { * Represents a container on the Data Box Edge/Gateway device. */ export interface Container extends ARMBaseModel { + /** + * Container in DataBoxEdge Resource + */ + systemData?: SystemData; /** * Current status of the container. Possible values include: 'OK', 'Offline', 'Unknown', * 'Updating', 'NeedsAttention' @@ -305,7 +609,10 @@ export interface Container extends ARMBaseModel { export interface Sku { /** * SKU name. Possible values include: 'Gateway', 'Edge', 'TEA_1Node', 'TEA_1Node_UPS', - * 'TEA_1Node_Heater', 'TEA_1Node_UPS_Heater', 'TEA_4Node_Heater', 'TEA_4Node_UPS_Heater', 'TMA' + * 'TEA_1Node_Heater', 'TEA_1Node_UPS_Heater', 'TEA_4Node_Heater', 'TEA_4Node_UPS_Heater', 'TMA', + * 'TDC', 'TCA_Small', 'GPU', 'TCA_Large', 'EdgeP_Base', 'EdgeP_High', 'EdgePR_Base', + * 'EdgePR_Base_UPS', 'EP2_64_1VPU_W', 'EP2_128_1T4_Mx1_W', 'EP2_256_2T4_W', 'EdgeMR_Mini', + * 'RCA_Small', 'RCA_Large', 'RDC', 'Management' */ name?: SkuName; /** @@ -315,19 +622,65 @@ export interface Sku { } /** - * The Data Box Edge/Gateway device. + * Msi identity details of the resource */ -export interface DataBoxEdgeDevice extends ARMBaseModel { +export interface ResourceIdentity { /** - * The location of the device. This is a supported and registered Azure geographical region (for - * example, West US, East US, or Southeast Asia). The geographical region of a device cannot be - * changed once it is created, but if an identical geographical region is specified on update, - * the request will succeed. + * Identity type. Possible values include: 'None', 'SystemAssigned', 'UserAssigned' */ - location: string; + type?: MsiIdentityType; /** - * The list of tags that describe the device. These tags can be used to view and group this - * device (across resource groups). + * Service Principal Id backing the Msi + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly principalId?: string; + /** + * Home Tenant Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly tenantId?: string; +} + +/** + * Fields for tracking resource move + */ +export interface ResourceMoveDetails { + /** + * Denotes whether move operation is in progress. Possible values include: 'None', + * 'ResourceMoveInProgress', 'ResourceMoveFailed' + */ + operationInProgress?: ResourceMoveStatus; + /** + * Denotes the timeout of the operation to finish + */ + operationInProgressLockTimeoutInUTC?: Date; +} + +/** + * Wraps data-residency related information for edge-resource and this should be used with ARM + * layer. + */ +export interface DataResidency { + /** + * DataResidencyType enum. Possible values include: 'GeoZoneReplication', 'ZoneReplication' + */ + type?: DataResidencyType; +} + +/** + * The Data Box Edge/Gateway device. + */ +export interface DataBoxEdgeDevice extends ARMBaseModel { + /** + * The location of the device. This is a supported and registered Azure geographical region (for + * example, West US, East US, or Southeast Asia). The geographical region of a device cannot be + * changed once it is created, but if an identical geographical region is specified on update, + * the request will succeed. + */ + location: string; + /** + * The list of tags that describe the device. These tags can be used to view and group this + * device (across resource groups). */ tags?: { [propertyName: string]: string }; /** @@ -338,6 +691,23 @@ export interface DataBoxEdgeDevice extends ARMBaseModel { * The etag for the devices. */ etag?: string; + /** + * Msi identity of the resource + */ + identity?: ResourceIdentity; + /** + * The kind of the device. Possible values include: 'AzureDataBoxGateway', 'AzureStackEdge', + * 'AzureStackHub', 'AzureModularDataCentre' + */ + kind?: DataBoxEdgeDeviceKind; + /** + * DataBoxEdge Resource + */ + systemData?: SystemData; + /** + * DataBoxEdge Device Properties + */ + systemData1?: SystemData; /** * The status of the Data Box Edge/Gateway device. Possible values include: 'ReadyToSetup', * 'Online', 'Offline', 'NeedsAttention', 'Disconnected', 'PartiallyDisconnected', 'Maintenance' @@ -350,12 +720,14 @@ export interface DataBoxEdgeDevice extends ARMBaseModel { readonly serialNumber?: string; /** * The Description of the Data Box Edge/Gateway device. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - description?: string; + readonly description?: string; /** * The description of the Data Box Edge/Gateway device model. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - modelDescription?: string; + readonly modelDescription?: string; /** * The type of the Data Box Edge/Gateway device. Possible values include: 'DataBoxEdgeDevice' * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -363,8 +735,9 @@ export interface DataBoxEdgeDevice extends ARMBaseModel { readonly deviceType?: DeviceType; /** * The Data Box Edge/Gateway device name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - friendlyName?: string; + readonly friendlyName?: string; /** * The Data Box Edge/Gateway device culture. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -405,6 +778,35 @@ export interface DataBoxEdgeDevice extends ARMBaseModel { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly nodeCount?: number; + /** + * The details of the move operation on this resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly resourceMoveDetails?: ResourceMoveDetails; + /** + * The details of Edge Profile for this resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly edgeProfile?: EdgeProfile; + /** + * The details of data-residency related properties for this resource + */ + dataResidency?: DataResidency; +} + +/** + * Holds device secret either as a KeyVault reference or as an encrypted value. + */ +export interface Secret { + /** + * Encrypted (using device public key) secret value. + */ + encryptedSecret?: AsymmetricEncryptedSecret; + /** + * Id of the Key-Vault where secret is stored (ex: + * secrets/AuthClientSecret/82ef4346187a4033a10d629cde07d740). + */ + keyVaultId?: string; } /** @@ -424,382 +826,401 @@ export interface DataBoxEdgeDeviceExtendedInfo extends ARMBaseModel { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly resourceKey?: string; + /** + * The Key Vault ARM Id for client secrets + */ + clientSecretStoreId?: string; + /** + * The url to access the Client Key Vault + */ + clientSecretStoreUrl?: string; + /** + * The name of Channel Integrity Key stored in the Client Key Vault + */ + channelIntegrityKeyName?: string; + /** + * The version of Channel Integrity Key stored in the Client Key Vault + */ + channelIntegrityKeyVersion?: string; + /** + * Key vault sync status. Possible values include: 'KeyVaultSynced', 'KeyVaultSyncFailed', + * 'KeyVaultNotConfigured', 'KeyVaultSyncPending', 'KeyVaultSyncing', 'KeyVaultNotSynced' + */ + keyVaultSyncStatus?: KeyVaultSyncStatus; + /** + * Device secrets, will be returned only with ODataFilter $expand=deviceSecrets + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly deviceSecrets?: { [propertyName: string]: Secret }; } /** - * The Data Box Edge/Gateway device patch. + * The Data Box Edge/Gateway device extended info patch. */ -export interface DataBoxEdgeDevicePatch { +export interface DataBoxEdgeDeviceExtendedInfoPatch { /** - * The tags attached to the Data Box Edge/Gateway resource. + * The Key Vault ARM Id for client secrets */ - tags?: { [propertyName: string]: string }; + clientSecretStoreId?: string; + /** + * The url to access the Client Key Vault + */ + clientSecretStoreUrl?: string; + /** + * The name for Channel Integrity Key stored in the Client Key Vault + */ + channelIntegrityKeyName?: string; + /** + * The version of Channel Integrity Key stored in the Client Key Vault + */ + channelIntegrityKeyVersion?: string; + /** + * For changing or to initiate the resync to key-vault set the status to KeyVaultSyncPending, + * rest of the status will not be applicable. Possible values include: 'KeyVaultSynced', + * 'KeyVaultSyncFailed', 'KeyVaultNotConfigured', 'KeyVaultSyncPending', 'KeyVaultSyncing', + * 'KeyVaultNotSynced' + */ + syncStatus?: KeyVaultSyncStatus; } /** - * File source details. + * The Data Box Edge/Gateway Edge Profile Subscription patch. */ -export interface FileSourceInfo { +export interface EdgeProfileSubscriptionPatch { /** - * File share ID. + * The path ID that uniquely identifies the subscription of the edge profile. */ - shareId: string; + id?: string; } /** - * Compute role against which events will be raised. + * The Data Box Edge/Gateway Edge Profile patch. */ -export interface RoleSinkInfo { +export interface EdgeProfilePatch { /** - * Compute role ID. + * The Data Box Edge/Gateway Edge Profile Subscription patch */ - roleId: string; + subscription?: EdgeProfileSubscriptionPatch; } /** - * Contains the possible cases for Trigger. - */ -export type TriggerUnion = Trigger | FileEventTrigger | PeriodicTimerEventTrigger; - -/** - * Trigger details. + * The Data Box Edge/Gateway device patch. */ -export interface Trigger { - /** - * Polymorphic Discriminator - */ - kind: "Trigger"; +export interface DataBoxEdgeDevicePatch { /** - * The path ID that uniquely identifies the object. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The tags attached to the Data Box Edge/Gateway resource. */ - readonly id?: string; + tags?: { [propertyName: string]: string }; /** - * The object name. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Msi identity of the resource */ - readonly name?: string; + identity?: ResourceIdentity; /** - * The hierarchical type of the object. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Edge Profile property of the Data Box Edge/Gateway device */ - readonly type?: string; + edgeProfile?: EdgeProfilePatch; } /** - * Trigger details. + * Resource Move details */ -export interface FileEventTrigger { +export interface DataBoxEdgeMoveRequest { /** - * Polymorphic Discriminator + * Target resource group ARMId */ - kind: "FileEvent"; + targetResourceGroup: string; /** - * The path ID that uniquely identifies the object. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * List of resources to be moved */ - readonly id?: string; + resources: string[]; +} + +/** + * The location info. + */ +export interface SkuLocationInfo { /** - * The object name. + * The location. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly name?: string; + readonly location?: string; /** - * The hierarchical type of the object. + * The zones. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly type?: string; - /** - * File event source details. - */ - sourceInfo: FileSourceInfo; - /** - * Role sink info. - */ - sinkInfo: RoleSinkInfo; + readonly zones?: string[]; /** - * A custom context tag typically used to correlate the trigger against its usage. For example, - * if a periodic timer trigger is intended for certain specific IoT modules in the device, the - * tag can be the name or the image URL of the module. + * The sites. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - customContextTag?: string; + readonly sites?: string[]; } /** - * Metadata of IoT device/IoT Edge device to be configured. + * The metadata for retrieving price info. */ -export interface IoTDeviceInfo { - /** - * ID of the IoT device/edge device. - */ - deviceId: string; +export interface SkuCost { /** - * Host name for the IoT hub associated to the device. + * Used for querying price from commerce. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - ioTHostHub: string; + readonly meterId?: string; /** - * Id for the IoT hub associated to the device. + * The cost quantity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - ioTHostHubId?: string; + readonly quantity?: number; /** - * IoT device authentication info. + * The extended unit. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - authentication?: Authentication; + readonly extendedUnit?: string; } /** - * The share mount point. + * The metadata to describe the capability. */ -export interface MountPointMap { +export interface SkuCapability { /** - * ID of the share mounted to the role VM. + * An invariant to describe the feature. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - shareId: string; + readonly name?: string; /** - * ID of the role to which share is mounted. + * An invariant if the feature is measured by quantity. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly roleId?: string; + readonly value?: string; +} + +/** + * The Sku information. + */ +export interface DataBoxEdgeSku { /** - * Mount point for the share. + * The type of the resource. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly mountPoint?: string; + readonly resourceType?: string; /** - * Role type. Possible values include: 'IOT', 'ASA', 'Functions', 'Cognitive' + * The Sku name. Possible values include: 'Gateway', 'Edge', 'TEA_1Node', 'TEA_1Node_UPS', + * 'TEA_1Node_Heater', 'TEA_1Node_UPS_Heater', 'TEA_4Node_Heater', 'TEA_4Node_UPS_Heater', 'TMA', + * 'TDC', 'TCA_Small', 'GPU', 'TCA_Large', 'EdgeP_Base', 'EdgeP_High', 'EdgePR_Base', + * 'EdgePR_Base_UPS', 'EP2_64_1VPU_W', 'EP2_128_1T4_Mx1_W', 'EP2_256_2T4_W', 'EdgeMR_Mini', + * 'RCA_Small', 'RCA_Large', 'RDC', 'Management' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly roleType?: RoleTypes; -} - -/** - * Contains the possible cases for Role. - */ -export type RoleUnion = Role | IoTRole; - -/** - * Compute role. - */ -export interface Role { + readonly name?: SkuName; /** - * Polymorphic Discriminator + * The Sku kind. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - kind: "Role"; + readonly kind?: string; /** - * The path ID that uniquely identifies the object. + * The Sku tier. Possible values include: 'Standard' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly id?: string; + readonly tier?: SkuTier; /** - * The object name. + * The Sku kind. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly name?: string; + readonly size?: string; /** - * The hierarchical type of the object. + * The Sku family. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly type?: string; -} - -/** - * Compute role. - */ -export interface IoTRole { + readonly family?: string; /** - * Polymorphic Discriminator + * Availability of the Sku for the region. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - kind: "IOT"; + readonly locations?: string[]; /** - * The path ID that uniquely identifies the object. + * The API versions in which Sku is available. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly id?: string; + readonly apiVersions?: string[]; /** - * The object name. + * Availability of the Sku for the location/zone/site. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly name?: string; + readonly locationInfo?: SkuLocationInfo[]; /** - * The hierarchical type of the object. + * The pricing info of the Sku. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly type?: string; + readonly costs?: SkuCost[]; /** - * Host OS supported by the IoT role. Possible values include: 'Windows', 'Linux' + * Sku can be signed up by customer or not. Possible values include: 'None', 'Available' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - hostPlatform: PlatformType; + readonly signupOption?: SkuSignupOption; /** - * IoT device metadata to which data box edge device needs to be connected. + * Availability of the Sku as preview/stable. Possible values include: 'Stable', 'Preview' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - ioTDeviceDetails: IoTDeviceInfo; + readonly version?: SkuVersion; /** - * IoT edge device to which the IoT role needs to be configured. + * Links to the next set of results. Possible values include: 'Available', 'Unavailable' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - ioTEdgeDeviceDetails: IoTDeviceInfo; + readonly availability?: SkuAvailability; /** - * Mount points of shares in role(s). + * List of Shipment Types supported by this SKU + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - shareMappings?: MountPointMap[]; + readonly shipmentTypes?: ShipmentType[]; /** - * Role status. Possible values include: 'Enabled', 'Disabled' + * The capability info of the SKU. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - roleStatus: RoleStatus; + readonly capabilities?: SkuCapability[]; } /** - * Details related to the IPv4 address configuration. + * DC Access code in the case of Self Managed Shipping. */ -export interface Ipv4Config { +export interface DCAccessCode { /** - * The IPv4 address of the network adapter. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * DCAccess Code for the Self Managed shipment. */ - readonly ipAddress?: string; + authCode?: string; +} + +/** + * The diagnostic proactive log collection settings of a device. + */ +export interface DiagnosticProactiveLogCollectionSettings extends ARMBaseModel { /** - * The IPv4 subnet of the network adapter. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * DiagnosticProactiveLogCollectionSettings */ - readonly subnet?: string; + systemData?: SystemData; /** - * The IPv4 gateway of the network adapter. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Proactive diagnostic collection consent flag. Possible values include: 'Enabled', 'Disabled' */ - readonly gateway?: string; + userConsent: ProactiveDiagnosticsConsent; } /** - * Details related to the IPv6 address configuration. + * RemoteApplicationType for which remote support settings is being modified */ -export interface Ipv6Config { +export interface RemoteSupportSettings { /** - * The IPv6 address of the network adapter. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Remote application type. Possible values include: 'Powershell', 'WAC', 'LocalUI', + * 'AllApplications' */ - readonly ipAddress?: string; + remoteApplicationType?: RemoteApplicationType; /** - * The IPv6 prefix of the network adapter. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Access level allowed for this remote application type. Possible values include: 'None', + * 'ReadOnly', 'ReadWrite', 'FullAccess' */ - readonly prefixLength?: number; + accessLevel?: AccessLevel; /** - * The IPv6 gateway of the network adapter. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Expiration time stamp */ - readonly gateway?: string; + expirationTimeStampInUTC?: Date; } /** - * The job error items. + * The remote support settings of a device. */ -export interface JobErrorItem { +export interface DiagnosticRemoteSupportSettings extends ARMBaseModel { /** - * The recommended actions. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly recommendations?: string[]; - /** - * The code intended for programmatic access. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * DiagnosticRemoteSupportSettings */ - readonly code?: string; + systemData?: SystemData; /** - * The message that describes the error in detail. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Remote support settings list according to the RemoteApplicationType */ - readonly message?: string; + remoteSupportSettingsList?: RemoteSupportSettings[]; } /** - * The job error information containing the list of job errors. + * Etcd configuration */ -export interface JobErrorDetails { +export interface EtcdInfo { /** - * The error details. + * Etcd type * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly errorDetails?: JobErrorItem[]; + readonly type?: string; /** - * The code intended for programmatic access. + * Etcd version * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly code?: string; + readonly version?: string; +} + +/** + * File source details. + */ +export interface FileSourceInfo { /** - * The message that describes the error in detail. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * File share ID. */ - readonly message?: string; + shareId: string; } /** - * Details about the download progress of update. + * Compute role against which events will be raised. */ -export interface UpdateDownloadProgress { +export interface RoleSinkInfo { /** - * The download phase. Possible values include: 'Unknown', 'Initializing', 'Downloading', - * 'Verifying' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Compute role ID. */ - readonly downloadPhase?: DownloadPhase; + roleId: string; +} + +/** + * Contains the possible cases for Trigger. + */ +export type TriggerUnion = Trigger | FileEventTrigger | PeriodicTimerEventTrigger; + +/** + * Trigger details. + */ +export interface Trigger { /** - * Percentage of completion. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Polymorphic Discriminator */ - readonly percentComplete?: number; + kind: "Trigger"; /** - * Total bytes to download. + * The path ID that uniquely identifies the object. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly totalBytesToDownload?: number; + readonly id?: string; /** - * Total bytes downloaded. + * The object name. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly totalBytesDownloaded?: number; + readonly name?: string; /** - * Number of updates to download. + * The hierarchical type of the object. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly numberOfUpdatesToDownload?: number; + readonly type?: string; /** - * Number of updates downloaded. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Trigger in DataBoxEdge Resource */ - readonly numberOfUpdatesDownloaded?: number; + systemData?: SystemData; } /** - * Progress details during installation of updates. + * Trigger details. */ -export interface UpdateInstallProgress { - /** - * Percentage completed. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly percentComplete?: number; - /** - * Number of updates to install. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly numberOfUpdatesToInstall?: number; +export interface FileEventTrigger { /** - * Number of updates installed. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Polymorphic Discriminator */ - readonly numberOfUpdatesInstalled?: number; -} - -/** - * A device job. - */ -export interface Job { + kind: "FileEvent"; /** * The path ID that uniquely identifies the object. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * The name of the object. + * The object name. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; @@ -809,1546 +1230,3071 @@ export interface Job { */ readonly type?: string; /** - * The current status of the job. Possible values include: 'Invalid', 'Running', 'Succeeded', - * 'Failed', 'Canceled', 'Paused', 'Scheduled' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly status?: JobStatus; - /** - * The UTC date and time at which the job started. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly startTime?: Date; - /** - * The UTC date and time at which the job completed. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly endTime?: Date; - /** - * The percentage of the job that is complete. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Trigger in DataBoxEdge Resource */ - readonly percentComplete?: number; + systemData?: SystemData; /** - * The error details. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * File event source details. */ - readonly error?: JobErrorDetails; + sourceInfo: FileSourceInfo; /** - * The type of the job. Possible values include: 'Invalid', 'ScanForUpdates', 'DownloadUpdates', - * 'InstallUpdates', 'RefreshShare', 'RefreshContainer' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Role sink info. */ - readonly jobType?: JobType; + sinkInfo: RoleSinkInfo; /** - * Current stage of the update operation. Possible values include: 'Unknown', 'Initial', - * 'ScanStarted', 'ScanComplete', 'ScanFailed', 'DownloadStarted', 'DownloadComplete', - * 'DownloadFailed', 'InstallStarted', 'InstallComplete', 'InstallFailed', 'RebootInitiated', - * 'Success', 'Failure', 'RescanStarted', 'RescanComplete', 'RescanFailed' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * A custom context tag typically used to correlate the trigger against its usage. For example, + * if a periodic timer trigger is intended for certain specific IoT modules in the device, the + * tag can be the name or the image URL of the module. */ - readonly currentStage?: UpdateOperationStage; + customContextTag?: string; +} + +/** + * Used in activation key generation flow. + */ +export interface GenerateCertResponse { /** - * The download progress. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Gets or sets base64 encoded certificate raw data, + * this is the public part needed to be uploaded to cert vault */ - readonly downloadProgress?: UpdateDownloadProgress; + publicKey?: string; /** - * The install progress. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Gets or sets base64 encoded private part of the certificate, + * needed to form the activation key */ - readonly installProgress?: UpdateInstallProgress; + privateKey?: string; /** - * Total number of errors encountered during the refresh process. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Gets or sets expiry time in UTC */ - readonly totalRefreshErrors?: number; + expiryTimeInUTC?: string; +} + +/** + * Image repository credential. + */ +export interface ImageRepositoryCredential { /** - * Local share/remote container relative path to the error manifest file of the refresh. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Image repository url (e.g.: mcr.microsoft.com). */ - readonly errorManifestFile?: string; + imageRepositoryUrl: string; /** - * ARM ID of the entity that was refreshed. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Repository user name. */ - readonly refreshedEntityId?: string; + userName: string; /** - * If only subfolders need to be refreshed, then the subfolder path inside the share or - * container. (The path is empty if there are no subfolders.) + * Repository user password. */ - folder?: string; + password?: AsymmetricEncryptedSecret; } /** - * Metric Dimension v1. + * Metadata of IoT device/IoT Edge device to be configured. */ -export interface MetricDimensionV1 { +export interface IoTDeviceInfo { /** - * Name of the metrics dimension. + * ID of the IoT device/edge device. */ - name?: string; + deviceId: string; /** - * Display name of the metrics dimension. + * Host name for the IoT hub associated to the device. */ - displayName?: string; + ioTHostHub: string; /** - * To be exported to shoe box. + * Id for the IoT hub associated to the device. */ - toBeExportedForShoebox?: boolean; + ioTHostHubId?: string; + /** + * Encrypted IoT device/IoT edge device connection string. + */ + authentication?: Authentication; } /** - * Metric specification version 1. + * IoT Addon. */ -export interface MetricSpecificationV1 { +export interface IoTAddon { /** - * Name of the metric. + * Polymorphic Discriminator */ - name?: string; + kind: "IotEdge"; /** - * Display name of the metric. + * The path ID that uniquely identifies the object. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - displayName?: string; + readonly id?: string; /** - * Description of the metric to be displayed. + * The object name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - displayDescription?: string; + readonly name?: string; /** - * Metric units. Possible values include: 'NotSpecified', 'Percent', 'Count', 'Seconds', - * 'Milliseconds', 'Bytes', 'BytesPerSecond', 'CountPerSecond' + * The hierarchical type of the object. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - unit?: MetricUnit; + readonly type?: string; /** - * Metric aggregation type. Possible values include: 'NotSpecified', 'None', 'Average', - * 'Minimum', 'Maximum', 'Total', 'Count' + * Addon type */ - aggregationType?: MetricAggregationType; + systemData?: SystemData; /** - * Metric dimensions, other than default dimension which is resource. + * IoT device metadata to which appliance needs to be connected. */ - dimensions?: MetricDimensionV1[]; + ioTDeviceDetails: IoTDeviceInfo; /** - * Set true to fill the gaps with zero. + * IoT edge device to which the IoT Addon needs to be configured. */ - fillGapWithZero?: boolean; + ioTEdgeDeviceDetails: IoTDeviceInfo; /** - * Metric category. Possible values include: 'Capacity', 'Transaction' + * Version of IoT running on the appliance. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - category?: MetricCategory; + readonly version?: string; /** - * Resource name override. + * Host OS supported by the IoT addon. Possible values include: 'Windows', 'Linux' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - resourceIdDimensionNameOverride?: string; + readonly hostPlatform?: PlatformType; /** - * Support granularity of metrics. + * Platform where the runtime is hosted. Possible values include: 'KubernetesCluster', 'LinuxVM' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - supportedTimeGrainTypes?: TimeGrain[]; + readonly hostPlatformType?: HostPlatformType; /** - * Support metric aggregation type. + * Addon Provisioning State. Possible values include: 'Invalid', 'Creating', 'Created', + * 'Updating', 'Reconfiguring', 'Failed', 'Deleting' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - supportedAggregationTypes?: MetricAggregationType[]; + readonly provisioningState?: AddonState; } /** - * The network adapter position. + * IoT edge agent details is optional, this will be used for download system Agent module while + * bootstrapping IoT Role if specified. */ -export interface NetworkAdapterPosition { +export interface IoTEdgeAgentInfo { /** - * The network group. Possible values include: 'None', 'NonRDMA', 'RDMA' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Name of the IoT edge agent image. */ - readonly networkGroup?: NetworkGroup; + imageName: string; /** - * The port. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Image Tag. */ - readonly port?: number; -} + tag: string; + /** + * Image repository details. + */ + imageRepository?: ImageRepositoryCredential; +} /** - * Represents the networkAdapter on a device. + * The share mount point. */ -export interface NetworkAdapter { +export interface MountPointMap { /** - * Instance ID of network adapter. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * ID of the share mounted to the role VM. */ - readonly adapterId?: string; + shareId: string; /** - * Hardware position of network adapter. + * ID of the role to which share is mounted. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly adapterPosition?: NetworkAdapterPosition; + readonly roleId?: string; /** - * Logical index of the adapter. + * Mount point for the share. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly index?: number; + readonly mountPoint?: string; /** - * Node ID of the network adapter. + * Mounting type. Possible values include: 'Volume', 'HostPath' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nodeId?: string; + readonly mountType?: MountType; /** - * Network adapter name. + * Role type. Possible values include: 'IOT', 'ASA', 'Functions', 'Cognitive', 'MEC', + * 'CloudEdgeManagement', 'Kubernetes' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly networkAdapterName?: string; + readonly roleType?: RoleTypes; +} + +/** + * Compute role. + */ +export interface IoTRole { /** - * Hardware label for the adapter. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Polymorphic Discriminator */ - readonly label?: string; + kind: "IOT"; /** - * MAC address. + * The path ID that uniquely identifies the object. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly macAddress?: string; + readonly id?: string; /** - * Link speed. + * The object name. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly linkSpeed?: number; + readonly name?: string; /** - * Value indicating whether this adapter is valid. Possible values include: 'Inactive', 'Active' + * The hierarchical type of the object. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly status?: NetworkAdapterStatus; + readonly type?: string; /** - * Value indicating whether this adapter is RDMA capable. Possible values include: 'Incapable', - * 'Capable' + * Role configured on ASE resource */ - rdmaStatus?: NetworkAdapterRDMAStatus; + systemData?: SystemData; /** - * Value indicating whether this adapter has DHCP enabled. Possible values include: 'Disabled', - * 'Enabled' + * Host OS supported by the IoT role. Possible values include: 'Windows', 'Linux' */ - dhcpStatus?: NetworkAdapterDHCPStatus; + hostPlatform: PlatformType; /** - * The IPv4 configuration of the network adapter. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * IoT device metadata to which data box edge device needs to be connected. */ - readonly ipv4Configuration?: Ipv4Config; + ioTDeviceDetails: IoTDeviceInfo; /** - * The IPv6 configuration of the network adapter. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * IoT edge device to which the IoT role needs to be configured. */ - readonly ipv6Configuration?: Ipv6Config; + ioTEdgeDeviceDetails: IoTDeviceInfo; /** - * The IPv6 local address. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Mount points of shares in role(s). */ - readonly ipv6LinkLocalAddress?: string; + shareMappings?: MountPointMap[]; /** - * The list of DNS Servers of the device. + * Iot edge agent details to download the agent and bootstrap iot runtime. + */ + ioTEdgeAgentInfo?: IoTEdgeAgentInfo; + /** + * Platform where the Iot runtime is hosted. Possible values include: 'KubernetesCluster', + * 'LinuxVM' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly dnsServers?: string[]; + readonly hostPlatformType?: HostPlatformType; + /** + * Resource allocation + */ + computeResource?: ComputeResource; + /** + * Role status. Possible values include: 'Enabled', 'Disabled' + */ + roleStatus: RoleStatus; } /** - * The network settings of a device. + * Details related to the IPv4 address configuration. */ -export interface NetworkSettings extends ARMBaseModel { +export interface Ipv4Config { /** - * The network adapter list on the device. + * The IPv4 address of the network adapter. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly networkAdapters?: NetworkAdapter[]; + readonly ipAddress?: string; + /** + * The IPv4 subnet of the network adapter. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly subnet?: string; + /** + * The IPv4 gateway of the network adapter. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly gateway?: string; } /** - * Represents a single node in a Data box Edge/Gateway device - * Gateway devices, standalone Edge devices and a single node cluster Edge device will all have 1 - * node - * Multi-node Edge devices will have more than 1 nodes + * Details related to the IPv6 address configuration. */ -export interface Node extends ARMBaseModel { - /** - * The current status of the individual node. Possible values include: 'Unknown', 'Up', 'Down', - * 'Rebooting', 'ShuttingDown' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly nodeStatus?: NodeStatus; +export interface Ipv6Config { /** - * Serial number of the Chassis + * The IPv6 address of the network adapter. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nodeChassisSerialNumber?: string; + readonly ipAddress?: string; /** - * Serial number of the individual node + * The IPv6 prefix of the network adapter. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nodeSerialNumber?: string; + readonly prefixLength?: number; /** - * Display Name of the individual node + * The IPv6 gateway of the network adapter. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nodeDisplayName?: string; + readonly gateway?: string; +} + +/** + * The job error items. + */ +export interface JobErrorItem { /** - * Friendly software version name that is currently installed on the node + * The recommended actions. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nodeFriendlySoftwareVersion?: string; + readonly recommendations?: string[]; /** - * HCS version that is currently installed on the node + * The code intended for programmatic access. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nodeHcsVersion?: string; + readonly code?: string; /** - * Guid instance id of the node + * The message that describes the error in detail. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nodeInstanceId?: string; + readonly message?: string; } /** - * Operation display properties. + * The job error information containing the list of job errors. */ -export interface OperationDisplay { - /** - * Provider name. - */ - provider?: string; +export interface JobErrorDetails { /** - * The type of resource in which the operation is performed. + * The error details. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - resource?: string; + readonly errorDetails?: JobErrorItem[]; /** - * Operation to be performed on the resource. + * The code intended for programmatic access. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - operation?: string; + readonly code?: string; /** - * Description of the operation to be performed. + * The message that describes the error in detail. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - description?: string; + readonly message?: string; } /** - * Service specification. + * Details about the download progress of update. */ -export interface ServiceSpecification { +export interface UpdateDownloadProgress { /** - * Metric specification as defined by shoebox. + * The download phase. Possible values include: 'Unknown', 'Initializing', 'Downloading', + * 'Verifying' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - metricSpecifications?: MetricSpecificationV1[]; -} - -/** - * Operations. - */ -export interface Operation { + readonly downloadPhase?: DownloadPhase; /** - * Name of the operation. + * Percentage of completion. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - name?: string; + readonly percentComplete?: number; /** - * Properties displayed for the operation. + * Total bytes to download. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - display?: OperationDisplay; + readonly totalBytesToDownload?: number; /** - * Origin of the operation. + * Total bytes downloaded. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - origin?: string; + readonly totalBytesDownloaded?: number; /** - * Service specification. + * Number of updates to download. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - serviceSpecification?: ServiceSpecification; + readonly numberOfUpdatesToDownload?: number; + /** + * Number of updates downloaded. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly numberOfUpdatesDownloaded?: number; } /** - * Represents a single status change. + * Progress details during installation of updates. */ -export interface OrderStatus { - /** - * Status of the order as per the allowed status types. Possible values include: 'Untracked', - * 'AwaitingFulfilment', 'AwaitingPreparation', 'AwaitingShipment', 'Shipped', 'Arriving', - * 'Delivered', 'ReplacementRequested', 'LostDevice', 'Declined', 'ReturnInitiated', - * 'AwaitingReturnShipment', 'ShippedBack', 'CollectedAtMicrosoft' - */ - status: OrderState; +export interface UpdateInstallProgress { /** - * Time of status update. + * Percentage completed. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly updateDateTime?: Date; + readonly percentComplete?: number; /** - * Comments related to this status change. + * Number of updates to install. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - comments?: string; + readonly numberOfUpdatesToInstall?: number; /** - * Dictionary to hold generic information which is not stored - * by the already existing properties + * Number of updates installed. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly additionalOrderDetails?: { [propertyName: string]: string }; + readonly numberOfUpdatesInstalled?: number; } /** - * Tracking courier information. + * A device job. */ -export interface TrackingInfo { +export interface Job { /** - * Serial number of the device being tracked. + * The path ID that uniquely identifies the object. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - serialNumber?: string; + readonly id?: string; /** - * Name of the carrier used in the delivery. + * The name of the object. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - carrierName?: string; + readonly name?: string; /** - * Tracking ID of the shipment. + * The hierarchical type of the object. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - trackingId?: string; + readonly type?: string; /** - * Tracking URL of the shipment. + * The current status of the job. Possible values include: 'Invalid', 'Running', 'Succeeded', + * 'Failed', 'Canceled', 'Paused', 'Scheduled' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - trackingUrl?: string; -} - -/** - * The order details. - */ -export interface Order extends ARMBaseModel { + readonly status?: JobStatus; /** - * The contact details. + * The UTC date and time at which the job started. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - contactInformation: ContactDetails; + readonly startTime?: Date; /** - * The shipping address. + * The UTC date and time at which the job completed. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - shippingAddress: Address; + readonly endTime?: Date; /** - * Current status of the order. + * The percentage of the job that is complete. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - currentStatus?: OrderStatus; + readonly percentComplete?: number; /** - * List of status changes in the order. + * The error details. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly orderHistory?: OrderStatus[]; + readonly error?: JobErrorDetails; /** - * Serial number of the device. + * The type of the job. Possible values include: 'Invalid', 'ScanForUpdates', 'DownloadUpdates', + * 'InstallUpdates', 'RefreshShare', 'RefreshContainer', 'Backup', 'Restore', + * 'TriggerSupportPackage' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly serialNumber?: string; + readonly jobType?: JobType; /** - * Tracking information for the package delivered to the customer whether it has an original or a - * replacement device. + * Current stage of the update operation. Possible values include: 'Unknown', 'Initial', + * 'ScanStarted', 'ScanComplete', 'ScanFailed', 'DownloadStarted', 'DownloadComplete', + * 'DownloadFailed', 'InstallStarted', 'InstallComplete', 'InstallFailed', 'RebootInitiated', + * 'Success', 'Failure', 'RescanStarted', 'RescanComplete', 'RescanFailed' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly deliveryTrackingInfo?: TrackingInfo[]; + readonly currentStage?: UpdateOperationStage; /** - * Tracking information for the package returned from the customer whether it has an original or - * a replacement device. + * The download progress. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly returnTrackingInfo?: TrackingInfo[]; -} - -/** - * Periodic timer event source. - */ -export interface PeriodicTimerSourceInfo { + readonly downloadProgress?: UpdateDownloadProgress; /** - * The time of the day that results in a valid trigger. Schedule is computed with reference to - * the time specified upto seconds. If timezone is not specified the time will considered to be - * in device timezone. The value will always be returned as UTC time. + * The install progress. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - startTime: Date; + readonly installProgress?: UpdateInstallProgress; /** - * Periodic frequency at which timer event needs to be raised. Supports daily, hourly, minutes, - * and seconds. + * Total number of errors encountered during the refresh process. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - schedule: string; + readonly totalRefreshErrors?: number; /** - * Topic where periodic events are published to IoT device. + * Local share/remote container relative path to the error manifest file of the refresh. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - topic?: string; + readonly errorManifestFile?: string; + /** + * ARM ID of the entity that was refreshed. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly refreshedEntityId?: string; + /** + * If only subfolders need to be refreshed, then the subfolder path inside the share or + * container. (The path is empty if there are no subfolders.) + */ + folder?: string; } /** - * Trigger details. + * Kubernetes node IP configuration */ -export interface PeriodicTimerEventTrigger { +export interface KubernetesIPConfiguration { /** - * Polymorphic Discriminator + * Port of the Kubernetes node. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - kind: "PeriodicTimerEvent"; + readonly port?: string; /** - * The path ID that uniquely identifies the object. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * IP address of the Kubernetes node. */ - readonly id?: string; + ipAddress?: string; +} + +/** + * Kubernetes node info + */ +export interface NodeInfo { /** - * The object name. + * Node name. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * The hierarchical type of the object. + * Node type - Master/Worker. Possible values include: 'Invalid', 'Master', 'Worker' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly type?: string; + readonly type?: KubernetesNodeType; /** - * Periodic timer details. + * IP Configuration of the Kubernetes node. */ - sourceInfo: PeriodicTimerSourceInfo; + ipConfiguration?: KubernetesIPConfiguration[]; +} + +/** + * Kubernetes cluster configuration + */ +export interface KubernetesClusterInfo { /** - * Role Sink information. + * Etcd configuration + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - sinkInfo: RoleSinkInfo; + readonly etcdInfo?: EtcdInfo; /** - * A custom context tag typically used to correlate the trigger against its usage. For example, - * if a periodic timer trigger is intended for certain specific IoT modules in the device, the - * tag can be the name or the image URL of the module. + * Kubernetes cluster nodes + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - customContextTag?: string; + readonly nodes?: NodeInfo[]; + /** + * Kubernetes cluster version + */ + version: string; } /** - * The location info. + * Kubernetes storage class info. */ -export interface SkuLocationInfo { +export interface KubernetesRoleStorageClassInfo { /** - * The location. + * Storage class name. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly location?: string; + readonly name?: string; /** - * The zones. + * Storage class type. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly zones?: string[]; + readonly type?: string; /** - * The sites. + * If provisioned storage is posix compliant. Possible values include: 'Invalid', 'Enabled', + * 'Disabled' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly sites?: string[]; + readonly posixCompliant?: PosixComplianceStatus; } /** - * The metadata for retrieving price info. + * Kubernetes role storage resource */ -export interface SkuCost { - /** - * Used for querying price from commerce. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly meterId?: string; +export interface KubernetesRoleStorage { /** - * The cost quantity. + * Kubernetes storage class info. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly quantity?: number; + readonly storageClasses?: KubernetesRoleStorageClassInfo[]; /** - * Restriction of the SKU for the location/zone - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Mount points of shares in role(s). */ - readonly extendedUnit?: string; + endpoints?: MountPointMap[]; } /** - * The restriction info with locations and zones. + * Kubernetes role compute resource */ -export interface SkuRestrictionInfo { +export interface KubernetesRoleCompute { + /** + * VM profile + */ + vmProfile: string; /** - * The locations. + * Memory in bytes * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly locations?: string[]; + readonly memoryInBytes?: number; /** - * The zones. + * Processor count * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly zones?: string[]; + readonly processorCount?: number; } /** - * The restrictions because of which SKU cannot be used. + * Load balancer configuration */ -export interface SkuRestriction { +export interface LoadBalancerConfig { /** - * The type of the restriction. + * Load balancer type * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: string; /** - * The locations where sku is restricted. + * Load balancer version * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly values?: string[]; + readonly version?: string; +} + +/** + * Kubernetes role network resource + */ +export interface KubernetesRoleNetwork { /** - * The SKU restriction reason. Possible values include: 'NotAvailableForSubscription', 'QuotaId' + * Cni configuration * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly reasonCode?: SkuRestrictionReasonCode; + readonly cniConfig?: CniConfig; /** - * Restriction of the SKU for the location/zone + * Load balancer configuration * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly restrictionInfo?: SkuRestrictionInfo; + readonly loadBalancerConfig?: LoadBalancerConfig; } /** - * SkuInformation object + * Kubernetes role resources */ -export interface ResourceTypeSku { +export interface KubernetesRoleResources { /** - * The type of the resource - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Kubernetes role storage resource */ - readonly resourceType?: string; + storage?: KubernetesRoleStorage; /** - * The Sku name. Possible values include: 'Gateway', 'Edge', 'TEA_1Node', 'TEA_1Node_UPS', - * 'TEA_1Node_Heater', 'TEA_1Node_UPS_Heater', 'TEA_4Node_Heater', 'TEA_4Node_UPS_Heater', 'TMA' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Kubernetes role compute resource */ - readonly name?: SkuName; + compute: KubernetesRoleCompute; /** - * The Sku kind + * Kubernetes role network resource * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly kind?: string; + readonly network?: KubernetesRoleNetwork; +} + +/** + * Kubernetes role. + */ +export interface KubernetesRole { /** - * The Sku tier. Possible values include: 'Standard' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Polymorphic Discriminator */ - readonly tier?: SkuTier; + kind: "Kubernetes"; /** - * The Sku family + * The path ID that uniquely identifies the object. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly family?: string; + readonly id?: string; /** - * Availability of the SKU for the region + * The object name. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly locations?: string[]; + readonly name?: string; /** - * The API versions in which SKU is available + * The hierarchical type of the object. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly apiVersions?: string[]; + readonly type?: string; /** - * Availability of the SKU for the location/zone - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Role configured on ASE resource */ - readonly locationInfo?: SkuLocationInfo[]; + systemData?: SystemData; /** - * The pricing info of the Sku. + * Host OS supported by the Kubernetes role. Possible values include: 'Windows', 'Linux' + */ + hostPlatform: PlatformType; + /** + * State of Kubernetes deployment. Possible values include: 'Invalid', 'Creating', 'Created', + * 'Updating', 'Reconfiguring', 'Failed', 'Deleting' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly costs?: SkuCost[]; + readonly provisioningState?: KubernetesState; /** - * Restrictions of the SKU availability. + * Platform where the runtime is hosted. Possible values include: 'KubernetesCluster', 'LinuxVM' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly restrictions?: SkuRestriction[]; -} - -/** - * The security settings of a device. - */ -export interface SecuritySettings extends ARMBaseModel { + readonly hostPlatformType?: HostPlatformType; /** - * Device administrator password as an encrypted string (encrypted using RSA PKCS #1) is used to - * sign into the local web UI of the device. The Actual password should have at least 8 - * characters that are a combination of uppercase, lowercase, numeric, and special characters. + * Kubernetes cluster configuration */ - deviceAdminPassword: AsymmetricEncryptedSecret; -} - -/** - * The mapping between a particular user and the access type on the SMB share. - */ -export interface UserAccessRight { + kubernetesClusterInfo: KubernetesClusterInfo; /** - * User ID (already existing in the device). + * Kubernetes role resources */ - userId: string; + kubernetesRoleResources: KubernetesRoleResources; /** - * Type of access to be allowed for the user. Possible values include: 'Change', 'Read', 'Custom' + * Role status. Possible values include: 'Enabled', 'Disabled' */ - accessType: ShareAccessType; + roleStatus: RoleStatus; } /** - * Represents a share on the Data Box Edge/Gateway device. + * MEC role. */ -export interface Share extends ARMBaseModel { - /** - * Description for the share. - */ - description?: string; +export interface MECRole { /** - * Current status of the share. Possible values include: 'Offline', 'Unknown', 'OK', 'Updating', - * 'NeedsAttention' + * Polymorphic Discriminator */ - shareStatus: ShareStatus; + kind: "MEC"; /** - * Current monitoring status of the share. Possible values include: 'Enabled', 'Disabled' + * The path ID that uniquely identifies the object. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - monitoringStatus: MonitoringStatus; + readonly id?: string; /** - * Azure container mapping for the share. + * The object name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - azureContainerInfo?: AzureContainerInfo; + readonly name?: string; /** - * Access protocol to be used by the share. Possible values include: 'SMB', 'NFS' + * The hierarchical type of the object. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - accessProtocol: ShareAccessProtocol; + readonly type?: string; /** - * Mapping of users and corresponding access rights on the share (required for SMB protocol). + * Role configured on ASE resource */ - userAccessRights?: UserAccessRight[]; + systemData?: SystemData; /** - * List of IP addresses and corresponding access rights on the share(required for NFS protocol). + * Activation key of the MEC. */ - clientAccessRights?: ClientAccessRight[]; + connectionString?: AsymmetricEncryptedSecret; /** - * Details of the refresh job on this share. + * Controller Endpoint. */ - refreshDetails?: RefreshDetails; + controllerEndpoint?: string; /** - * Share mount point to the role. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Unique Id of the Resource. */ - readonly shareMappings?: MountPointMap[]; + resourceUniqueId?: string; /** - * Data policy of the share. Possible values include: 'Cloud', 'Local' + * Role status. Possible values include: 'Enabled', 'Disabled' */ - dataPolicy?: DataPolicy; + roleStatus: RoleStatus; } /** - * Specifies the mapping between this particular user and the type of access he has on shares on - * this device. + * The metric dimension */ -export interface ShareAccessRight { +export interface MetricDimension { /** - * The share ID. + * The dimension type. */ - shareId: string; + sourceType: string; /** - * Type of access to be allowed on the share for this user. Possible values include: 'Change', - * 'Read', 'Custom' + * The dimension value. */ - accessType: ShareAccessType; + sourceName: string; } /** - * Represents a Storage Account on the Data Box Edge/Gateway device. + * The metric counter */ -export interface StorageAccount extends ARMBaseModel { - /** - * Description for the storage Account. - */ - description?: string; - /** - * Current status of the storage account. Possible values include: 'OK', 'Offline', 'Unknown', - * 'Updating', 'NeedsAttention' - */ - storageAccountStatus?: StorageAccountStatus; +export interface MetricCounter { /** - * Data policy of the storage Account. Possible values include: 'Cloud', 'Local' + * The counter name. */ - dataPolicy?: DataPolicy; + name: string; /** - * Storage Account Credential Id + * The instance from which counter should be collected. */ - storageAccountCredentialId?: string; + instance?: string; /** - * BlobEndpoint of Storage Account - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The dimension filter. */ - readonly blobEndpoint?: string; + dimensionFilter?: MetricDimension[]; /** - * The Container Count. Present only for Storage Accounts with DataPolicy set to Cloud. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The additional dimensions to be added to metric. */ - readonly containerCount?: number; + additionalDimensions?: MetricDimension[]; } /** - * The storage account credential. + * The metric counter set */ -export interface StorageAccountCredential extends ARMBaseModel { +export interface MetricCounterSet { /** - * Alias for the storage account. + * The counters that should be collected in this set. */ - alias: string; + counters: MetricCounter[]; +} + +/** + * Metric configuration. + */ +export interface MetricConfiguration { /** - * Username for the storage account. + * The Resource ID on which the metrics should be pushed. */ - userName?: string; + resourceId: string; /** - * Encrypted storage key. + * The MDM account to which the counters should be pushed. */ - accountKey?: AsymmetricEncryptedSecret; + mdmAccount?: string; /** - * Connection string for the storage account. Use this string if username and account key are not - * specified. + * The MDM namespace to which the counters should be pushed. This is required if MDMAccount is + * specified */ - connectionString?: string; + metricNameSpace?: string; /** - * Signifies whether SSL needs to be enabled or not. Possible values include: 'Enabled', - * 'Disabled' + * Host name for the IoT hub associated to the device. */ - sslStatus: SSLStatus; + counterSets: MetricCounterSet[]; +} + +/** + * Metric Dimension v1. + */ +export interface MetricDimensionV1 { /** - * Blob end point for private clouds. + * Name of the metrics dimension. */ - blobDomainName?: string; + name?: string; /** - * Type of storage accessed on the storage account. Possible values include: - * 'GeneralPurposeStorage', 'BlobStorage' + * Display name of the metrics dimension. */ - accountType: AccountType; + displayName?: string; /** - * Id of the storage account. + * To be exported to shoe box. */ - storageAccountId?: string; + toBeExportedForShoebox?: boolean; } /** - * Details about ongoing updates and availability of updates on the device. + * Metric specification version 1. */ -export interface UpdateSummary extends ARMBaseModel { +export interface MetricSpecificationV1 { /** - * The current version of the device in format: 1.2.17312.13.", + * Name of the metric. */ - deviceVersionNumber?: string; + name?: string; /** - * The current version of the device in text format. + * Display name of the metric. */ - friendlyDeviceVersionName?: string; + displayName?: string; /** - * The last time when a scan was done on the device. + * Description of the metric to be displayed. */ - deviceLastScannedDateTime?: Date; + displayDescription?: string; /** - * The time when the last scan job was completed (success/cancelled/failed) on the appliance. + * Metric units. Possible values include: 'NotSpecified', 'Percent', 'Count', 'Seconds', + * 'Milliseconds', 'Bytes', 'BytesPerSecond', 'CountPerSecond' */ - lastCompletedScanJobDateTime?: Date; + unit?: MetricUnit; /** - * The time when the last Download job was completed (success/cancelled/failed) on the appliance. + * Metric aggregation type. Possible values include: 'NotSpecified', 'None', 'Average', + * 'Minimum', 'Maximum', 'Total', 'Count' + */ + aggregationType?: MetricAggregationType; + /** + * Metric dimensions, other than default dimension which is resource. + */ + dimensions?: MetricDimensionV1[]; + /** + * Set true to fill the gaps with zero. + */ + fillGapWithZero?: boolean; + /** + * Metric category. Possible values include: 'Capacity', 'Transaction' + */ + category?: MetricCategory; + /** + * Resource name override. + */ + resourceIdDimensionNameOverride?: string; + /** + * Support granularity of metrics. + */ + supportedTimeGrainTypes?: TimeGrain[]; + /** + * Support metric aggregation type. + */ + supportedAggregationTypes?: MetricAggregationType[]; +} + +/** + * The metric setting details for the role + */ +export interface MonitoringMetricConfiguration extends ARMBaseModel { + /** + * MonitoringConfiguration on ASE device + */ + systemData?: SystemData; + /** + * The metrics configuration details + */ + metricConfigurations: MetricConfiguration[]; +} + +/** + * The network adapter position. + */ +export interface NetworkAdapterPosition { + /** + * The network group. Possible values include: 'None', 'NonRDMA', 'RDMA' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly lastCompletedDownloadJobDateTime?: Date; + readonly networkGroup?: NetworkGroup; /** - * The time when the last Install job was completed (success/cancelled/failed) on the appliance. + * The port. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly lastCompletedInstallJobDateTime?: Date; + readonly port?: number; +} + +/** + * Represents the networkAdapter on a device. + */ +export interface NetworkAdapter { /** - * The number of updates available for the current device version as per the last device scan. + * Instance ID of network adapter. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly totalNumberOfUpdatesAvailable?: number; + readonly adapterId?: string; /** - * The total number of items pending download. + * Hardware position of network adapter. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly totalNumberOfUpdatesPendingDownload?: number; + readonly adapterPosition?: NetworkAdapterPosition; /** - * The total number of items pending install. + * Logical index of the adapter. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly totalNumberOfUpdatesPendingInstall?: number; + readonly index?: number; /** - * Indicates if updates are available and at least one of the updates needs a reboot. Possible - * values include: 'NeverReboots', 'RequiresReboot', 'RequestReboot' + * Node ID of the network adapter. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly rebootBehavior?: InstallRebootBehavior; + readonly nodeId?: string; /** - * The current update operation. Possible values include: 'None', 'Scan', 'Download', 'Install' + * Network adapter name. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly ongoingUpdateOperation?: UpdateOperation; + readonly networkAdapterName?: string; /** - * The job ID of the download job in progress. + * Hardware label for the adapter. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly inProgressDownloadJobId?: string; + readonly label?: string; /** - * The job ID of the install job in progress. + * MAC address. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly inProgressInstallJobId?: string; + readonly macAddress?: string; /** - * The time when the currently running download (if any) started. + * Link speed. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly inProgressDownloadJobStartedDateTime?: Date; + readonly linkSpeed?: number; /** - * The time when the currently running install (if any) started. + * Value indicating whether this adapter is valid. Possible values include: 'Inactive', 'Active' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly inProgressInstallJobStartedDateTime?: Date; + readonly status?: NetworkAdapterStatus; /** - * The list of updates available for install. + * Value indicating whether this adapter is RDMA capable. Possible values include: 'Incapable', + * 'Capable' + */ + rdmaStatus?: NetworkAdapterRDMAStatus; + /** + * Value indicating whether this adapter has DHCP enabled. Possible values include: 'Disabled', + * 'Enabled' + */ + dhcpStatus?: NetworkAdapterDHCPStatus; + /** + * The IPv4 configuration of the network adapter. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly updateTitles?: string[]; + readonly ipv4Configuration?: Ipv4Config; /** - * The total size of updates available for download in bytes. + * The IPv6 configuration of the network adapter. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly totalUpdateSizeInBytes?: number; + readonly ipv6Configuration?: Ipv6Config; + /** + * The IPv6 local address. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly ipv6LinkLocalAddress?: string; + /** + * The list of DNS Servers of the device. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly dnsServers?: string[]; } /** - * The upload certificate request. + * The network settings of a device. */ -export interface UploadCertificateRequest { +export interface NetworkSettings extends ARMBaseModel { /** - * The authentication type. Possible values include: 'Invalid', 'AzureActiveDirectory' + * NetworkSettings on ASE device */ - authenticationType?: AuthenticationType; + systemData?: SystemData; /** - * The base64 encoded certificate raw data. + * The network adapter list on the device. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - certificate: string; + readonly networkAdapters?: NetworkAdapter[]; } /** - * The upload registration certificate response. + * Represents a single node in a Data box Edge/Gateway device + * Gateway devices, standalone Edge devices and a single node cluster Edge device will all have 1 + * node + * Multi-node Edge devices will have more than 1 nodes */ -export interface UploadCertificateResponse { - /** - * Specifies authentication type. Possible values include: 'Invalid', 'AzureActiveDirectory' - */ - authType?: AuthenticationType; +export interface Node extends ARMBaseModel { /** - * The resource ID of the Data Box Edge/Gateway device. + * The current status of the individual node. Possible values include: 'Unknown', 'Up', 'Down', + * 'Rebooting', 'ShuttingDown' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly resourceId?: string; + readonly nodeStatus?: NodeStatus; /** - * Azure Active Directory tenant authority. + * Serial number of the Chassis * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly aadAuthority?: string; + readonly nodeChassisSerialNumber?: string; /** - * Azure Active Directory tenant ID. + * Serial number of the individual node * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly aadTenantId?: string; + readonly nodeSerialNumber?: string; /** - * Azure Active Directory service principal client ID. + * Display Name of the individual node * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly servicePrincipalClientId?: string; + readonly nodeDisplayName?: string; /** - * Azure Active Directory service principal object ID. + * Friendly software version name that is currently installed on the node * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly servicePrincipalObjectId?: string; + readonly nodeFriendlySoftwareVersion?: string; /** - * The azure management endpoint audience. + * HCS version that is currently installed on the node * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly azureManagementEndpointAudience?: string; + readonly nodeHcsVersion?: string; /** - * Identifier of the target resource that is the recipient of the requested token. + * Guid instance id of the node * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly aadAudience?: string; + readonly nodeInstanceId?: string; } /** - * Represents a user who has access to one or more shares on the Data Box Edge/Gateway device. + * Operation display properties. */ -export interface User extends ARMBaseModel { +export interface OperationDisplay { /** - * The password details. + * Provider name. */ - encryptedPassword?: AsymmetricEncryptedSecret; + provider?: string; /** - * List of shares that the user has rights on. This field should not be specified during user - * creation. + * The type of resource in which the operation is performed. */ - shareAccessRights?: ShareAccessRight[]; + resource?: string; /** - * Type of the user. Possible values include: 'Share', 'LocalManagement', 'ARM' + * Operation to be performed on the resource. */ - userType: UserType; + operation?: string; + /** + * Description of the operation to be performed. + */ + description?: string; } /** - * Optional Parameters. + * Service specification. */ -export interface DevicesListBySubscriptionOptionalParams extends msRest.RequestOptionsBase { +export interface ServiceSpecification { /** - * Specify $expand=details to populate additional fields related to the resource or Specify - * $skipToken= to populate the next page in the list. + * Metric specification as defined by shoebox. */ - expand?: string; + metricSpecifications?: MetricSpecificationV1[]; } /** - * Optional Parameters. + * Operations. */ -export interface DevicesListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { +export interface Operation { /** - * Specify $expand=details to populate additional fields related to the resource or Specify - * $skipToken= to populate the next page in the list. + * Name of the operation. */ - expand?: string; -} - -/** - * Optional Parameters. - */ -export interface TriggersListByDataBoxEdgeDeviceOptionalParams extends msRest.RequestOptionsBase { + name?: string; /** - * Specify $filter='CustomContextTag eq ' to filter on custom context tag property + * Is data action. */ - filter?: string; -} - -/** - * Optional Parameters. - */ -export interface UsersListByDataBoxEdgeDeviceOptionalParams extends msRest.RequestOptionsBase { + isDataAction?: boolean; /** - * Specify $filter='UserType eq ' to filter on user type property + * Properties displayed for the operation. */ - filter?: string; -} - -/** - * Optional Parameters. - */ -export interface SkusListOptionalParams extends msRest.RequestOptionsBase { + display?: OperationDisplay; /** - * Specify $filter='location eq ' to filter on location. + * Origin of the operation. */ - filter?: string; -} - -/** - * An interface representing DataBoxEdgeManagementClientOptions. - */ -export interface DataBoxEdgeManagementClientOptions extends AzureServiceClientOptions { - baseUri?: string; + origin?: string; + /** + * Service specification. + */ + serviceSpecification?: ServiceSpecification; } /** - * @interface - * The list of operations used for the discovery of available provider operations. - * @extends Array + * Tracking courier information. */ -export interface OperationsList extends Array { +export interface TrackingInfo { /** - * Link to the next set of results. + * Serial number of the device being tracked. */ - nextLink?: string; + serialNumber?: string; + /** + * Name of the carrier used in the delivery. + */ + carrierName?: string; + /** + * Tracking ID of the shipment. + */ + trackingId?: string; + /** + * Tracking URL of the shipment. + */ + trackingUrl?: string; } /** - * @interface - * The collection of Data Box Edge/Gateway devices. - * @extends Array + * Represents a single status change. */ -export interface DataBoxEdgeDeviceList extends Array { +export interface OrderStatus { /** - * Link to the next set of results. + * Status of the order as per the allowed status types. Possible values include: 'Untracked', + * 'AwaitingFulfillment', 'AwaitingPreparation', 'AwaitingShipment', 'Shipped', 'Arriving', + * 'Delivered', 'ReplacementRequested', 'LostDevice', 'Declined', 'ReturnInitiated', + * 'AwaitingReturnShipment', 'ShippedBack', 'CollectedAtMicrosoft', 'AwaitingPickup', + * 'PickupCompleted', 'AwaitingDrop' + */ + status: OrderState; + /** + * Time of status update. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; -} - -/** - * @interface - * Collection of alerts. - * @extends Array - */ -export interface AlertList extends Array { + readonly updateDateTime?: Date; /** - * Link to the next set of results. + * Comments related to this status change. + */ + comments?: string; + /** + * Tracking information related to the state in the ordering flow * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; -} - -/** - * @interface - * The collection of bandwidth schedules. - * @extends Array - */ -export interface BandwidthSchedulesList extends Array { + readonly trackingInformation?: TrackingInfo; /** - * Link to the next set of results. + * Dictionary to hold generic information which is not stored + * by the already existing properties * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; -} - -/** - * @interface - * Collection of Nodes. - * @extends Array - */ -export interface NodeList extends Array { + readonly additionalOrderDetails?: { [propertyName: string]: string }; } /** - * @interface - * List of order entities. - * @extends Array + * The order details. */ -export interface OrderList extends Array { +export interface Order extends ARMBaseModel { /** - * Link to the next set of results. + * Order configured on ASE resource + */ + systemData?: SystemData; + /** + * The contact details. + */ + contactInformation: ContactDetails; + /** + * The shipping address. + */ + shippingAddress?: Address; + /** + * Current status of the order. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; -} - -/** - * @interface - * Collection of all the roles on the Data Box Edge device. - * @extends Array - */ -export interface RoleList extends Array { + readonly currentStatus?: OrderStatus; /** - * Link to the next set of results. + * List of status changes in the order. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; -} - -/** - * @interface - * Collection of all the shares on the Data Box Edge/Gateway device. - * @extends Array - */ -export interface ShareList extends Array { + readonly orderHistory?: OrderStatus[]; /** - * Link to the next set of results. + * Serial number of the device. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; -} - -/** - * @interface - * The collection of storage account credentials. - * @extends Array - */ -export interface StorageAccountCredentialList extends Array { + readonly serialNumber?: string; /** - * Link to the next set of results. + * Tracking information for the package delivered to the customer whether it has an original or a + * replacement device. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; -} - -/** - * @interface - * Collection of all the Storage Accounts on the Data Box Edge/Gateway device. - * @extends Array - */ -export interface StorageAccountList extends Array { + readonly deliveryTrackingInfo?: TrackingInfo[]; /** - * Link to the next set of results. + * Tracking information for the package returned from the customer whether it has an original or + * a replacement device. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; + readonly returnTrackingInfo?: TrackingInfo[]; + /** + * ShipmentType of the order. Possible values include: 'NotApplicable', 'ShippedToCustomer', + * 'SelfPickup' + */ + shipmentType?: ShipmentType; } /** - * @interface - * Collection of all the containers on the Data Box Edge/Gateway device. - * @extends Array + * Periodic timer event source. */ -export interface ContainerList extends Array { +export interface PeriodicTimerSourceInfo { /** - * Link to the next set of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The time of the day that results in a valid trigger. Schedule is computed with reference to + * the time specified upto seconds. If timezone is not specified the time will considered to be + * in device timezone. The value will always be returned as UTC time. */ - readonly nextLink?: string; + startTime: Date; + /** + * Periodic frequency at which timer event needs to be raised. Supports daily, hourly, minutes, + * and seconds. + */ + schedule: string; + /** + * Topic where periodic events are published to IoT device. + */ + topic?: string; } /** - * @interface - * Collection of all trigger on the data box edge device. - * @extends Array + * Trigger details. */ -export interface TriggerList extends Array { +export interface PeriodicTimerEventTrigger { /** - * Link to the next set of results. + * Polymorphic Discriminator + */ + kind: "PeriodicTimerEvent"; + /** + * The path ID that uniquely identifies the object. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; -} - -/** - * @interface - * Collection of users. - * @extends Array - */ -export interface UserList extends Array { + readonly id?: string; /** - * Link to the next set of results. + * The object name. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; -} - -/** - * @interface - * List of SKU Information objects - * @extends Array - */ -export interface SkuInformationList extends Array { + readonly name?: string; /** - * Links to the next set of results + * The hierarchical type of the object. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; -} - -/** - * Defines values for AlertSeverity. - * Possible values include: 'Informational', 'Warning', 'Critical' - * @readonly - * @enum {string} + readonly type?: string; + /** + * Trigger in DataBoxEdge Resource + */ + systemData?: SystemData; + /** + * Periodic timer details. + */ + sourceInfo: PeriodicTimerSourceInfo; + /** + * Role Sink information. + */ + sinkInfo: RoleSinkInfo; + /** + * A custom context tag typically used to correlate the trigger against its usage. For example, + * if a periodic timer trigger is intended for certain specific IoT modules in the device, the + * tag can be the name or the image URL of the module. + */ + customContextTag?: string; +} + +/** + * Sku information + */ +export interface SkuInformation { + /** + * The sku name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * The sku tier. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly tier?: string; + /** + * The sku kind. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly kind?: string; + /** + * The Sku family. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly family?: string; + /** + * The pricing info of the Sku. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly costs?: SkuCost[]; + /** + * The locations where Sku is available. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly locations?: string[]; + /** + * The locations where Sku is available with zones and sites info + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly locationInfo?: SkuLocationInfo[]; + /** + * The required quotaIds for the sku to be available. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly requiredQuotaIds?: string[]; + /** + * The required features for the sku to be available. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly requiredFeatures?: string[]; +} + +/** + * Resource type Sku object + */ +export interface ResourceTypeSku { + /** + * The resource type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly resourceType?: string; + /** + * The skus. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly skus?: SkuInformation[]; +} + +/** + * The security settings of a device. + */ +export interface SecuritySettings extends ARMBaseModel { + /** + * Device administrator password as an encrypted string (encrypted using RSA PKCS #1) is used to + * sign into the local web UI of the device. The Actual password should have at least 8 + * characters that are a combination of uppercase, lowercase, numeric, and special characters. + */ + deviceAdminPassword: AsymmetricEncryptedSecret; +} + +/** + * The mapping between a particular user and the access type on the SMB share. + */ +export interface UserAccessRight { + /** + * User ID (already existing in the device). + */ + userId: string; + /** + * Type of access to be allowed for the user. Possible values include: 'Change', 'Read', 'Custom' + */ + accessType: ShareAccessType; +} + +/** + * Represents a share on the Data Box Edge/Gateway device. + */ +export interface Share extends ARMBaseModel { + /** + * Share on ASE device + */ + systemData?: SystemData; + /** + * Description for the share. + */ + description?: string; + /** + * Current status of the share. Possible values include: 'Offline', 'Unknown', 'OK', 'Updating', + * 'NeedsAttention' + */ + shareStatus: ShareStatus; + /** + * Current monitoring status of the share. Possible values include: 'Enabled', 'Disabled' + */ + monitoringStatus: MonitoringStatus; + /** + * Azure container mapping for the share. + */ + azureContainerInfo?: AzureContainerInfo; + /** + * Access protocol to be used by the share. Possible values include: 'SMB', 'NFS' + */ + accessProtocol: ShareAccessProtocol; + /** + * Mapping of users and corresponding access rights on the share (required for SMB protocol). + */ + userAccessRights?: UserAccessRight[]; + /** + * List of IP addresses and corresponding access rights on the share(required for NFS protocol). + */ + clientAccessRights?: ClientAccessRight[]; + /** + * Details of the refresh job on this share. + */ + refreshDetails?: RefreshDetails; + /** + * Share mount point to the role. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly shareMappings?: MountPointMap[]; + /** + * Data policy of the share. Possible values include: 'Cloud', 'Local' + */ + dataPolicy?: DataPolicy; +} + +/** + * Specifies the mapping between this particular user and the type of access he has on shares on + * this device. + */ +export interface ShareAccessRight { + /** + * The share ID. + */ + shareId: string; + /** + * Type of access to be allowed on the share for this user. Possible values include: 'Change', + * 'Read', 'Custom' + */ + accessType: ShareAccessType; +} + +/** + * List of SKU Information objects + */ +export interface SkuInformationList { + /** + * List of ResourceTypeSku objects + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly value?: ResourceTypeSku[]; + /** + * Links to the next set of results + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * Represents a Storage Account on the Data Box Edge/Gateway device. + */ +export interface StorageAccount extends ARMBaseModel { + /** + * StorageAccount object on ASE device + */ + systemData?: SystemData; + /** + * Description for the storage Account. + */ + description?: string; + /** + * Current status of the storage account. Possible values include: 'OK', 'Offline', 'Unknown', + * 'Updating', 'NeedsAttention' + */ + storageAccountStatus?: StorageAccountStatus; + /** + * Data policy of the storage Account. Possible values include: 'Cloud', 'Local' + */ + dataPolicy: DataPolicy; + /** + * Storage Account Credential Id + */ + storageAccountCredentialId?: string; + /** + * BlobEndpoint of Storage Account + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly blobEndpoint?: string; + /** + * The Container Count. Present only for Storage Accounts with DataPolicy set to Cloud. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly containerCount?: number; +} + +/** + * The storage account credential. + */ +export interface StorageAccountCredential extends ARMBaseModel { + /** + * StorageAccountCredential object + */ + systemData?: SystemData; + /** + * Alias for the storage account. + */ + alias: string; + /** + * Username for the storage account. + */ + userName?: string; + /** + * Encrypted storage key. + */ + accountKey?: AsymmetricEncryptedSecret; + /** + * Connection string for the storage account. Use this string if username and account key are not + * specified. + */ + connectionString?: string; + /** + * Signifies whether SSL needs to be enabled or not. Possible values include: 'Enabled', + * 'Disabled' + */ + sslStatus: SSLStatus; + /** + * Blob end point for private clouds. + */ + blobDomainName?: string; + /** + * Type of storage accessed on the storage account. Possible values include: + * 'GeneralPurposeStorage', 'BlobStorage' + */ + accountType: AccountType; + /** + * Id of the storage account. + */ + storageAccountId?: string; +} + +/** + * The request object for trigger support package. + */ +export interface TriggerSupportPackageRequest extends ARMBaseModel { + /** + * Start of the timespan of the log collection + */ + minimumTimeStamp?: Date; + /** + * MaximumTimeStamp until where logs need to be collected + */ + maximumTimeStamp?: Date; + /** + * Type of files, which need to be included in the logs + * This will contain the type of logs (Default/DefaultWithDumps/None/All/DefaultWithArchived) + * or a comma separated list of log types that are required + */ + include?: string; +} + +/** + * Update Specific attributes + */ +export interface UpdateDetails { + /** + * Title of the Update + */ + updateTitle?: string; + /** + * Size of the update(In Bytes) + */ + updateSize?: number; + /** + * Type of the Update. Possible values include: 'Software', 'Kubernetes', 'Firmware' + */ + updateType?: UpdateType; + /** + * Target Version number + */ + targetVersion?: string; + /** + * Friendly Version Number + */ + friendlyVersionNumber?: string; + /** + * Estimated Install Time for the update + */ + estimatedInstallTimeInMins?: number; + /** + * Indicates if updates are available and at least one of the updates needs a reboot. Possible + * values include: 'NeverReboots', 'RequiresReboot', 'RequestReboot' + */ + rebootBehavior?: InstallRebootBehavior; + /** + * Impact of Installing an updateType. Possible values include: 'None', 'DeviceRebooted', + * 'KubernetesWorkloadsDown' + */ + installationImpact?: InstallationImpact; + /** + * Status of the update. Possible values include: 'DownloadPending', 'DownloadStarted', + * 'DownloadCompleted', 'InstallStarted', 'InstallCompleted' + */ + status?: UpdateStatus; +} + +/** + * Details about ongoing updates and availability of updates on the device. + */ +export interface UpdateSummary extends ARMBaseModel { + /** + * UpdateSummary Result + */ + systemData?: SystemData; + /** + * The current version of the device in format: 1.2.17312.13.", + */ + deviceVersionNumber?: string; + /** + * The current version of the device in text format. + */ + friendlyDeviceVersionName?: string; + /** + * The last time when a scan was done on the device. + */ + deviceLastScannedDateTime?: Date; + /** + * The time when the last scan job was completed (success/cancelled/failed) on the appliance. + */ + lastCompletedScanJobDateTime?: Date; + /** + * Time when the last scan job is successfully completed. + */ + lastSuccessfulScanJobTime?: Date; + /** + * The time when the last Download job was completed (success/cancelled/failed) on the appliance. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastCompletedDownloadJobDateTime?: Date; + /** + * JobId of the last ran download job.(Can be success/cancelled/failed) + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastCompletedDownloadJobId?: string; + /** + * JobStatus of the last ran download job. Possible values include: 'Invalid', 'Running', + * 'Succeeded', 'Failed', 'Canceled', 'Paused', 'Scheduled' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastDownloadJobStatus?: JobStatus; + /** + * The time when the Last Install job was completed successfully on the appliance + */ + lastSuccessfulInstallJobDateTime?: Date; + /** + * The time when the last Install job was completed (success/cancelled/failed) on the appliance. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastCompletedInstallJobDateTime?: Date; + /** + * JobId of the last ran install job.(Can be success/cancelled/failed) + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastCompletedInstallJobId?: string; + /** + * JobStatus of the last ran install job. Possible values include: 'Invalid', 'Running', + * 'Succeeded', 'Failed', 'Canceled', 'Paused', 'Scheduled' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastInstallJobStatus?: JobStatus; + /** + * The number of updates available for the current device version as per the last device scan. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly totalNumberOfUpdatesAvailable?: number; + /** + * The total number of items pending download. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly totalNumberOfUpdatesPendingDownload?: number; + /** + * The total number of items pending install. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly totalNumberOfUpdatesPendingInstall?: number; + /** + * Indicates if updates are available and at least one of the updates needs a reboot. Possible + * values include: 'NeverReboots', 'RequiresReboot', 'RequestReboot' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly rebootBehavior?: InstallRebootBehavior; + /** + * The current update operation. Possible values include: 'None', 'Scan', 'Download', 'Install' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly ongoingUpdateOperation?: UpdateOperation; + /** + * The job ID of the download job in progress. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly inProgressDownloadJobId?: string; + /** + * The job ID of the install job in progress. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly inProgressInstallJobId?: string; + /** + * The time when the currently running download (if any) started. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly inProgressDownloadJobStartedDateTime?: Date; + /** + * The time when the currently running install (if any) started. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly inProgressInstallJobStartedDateTime?: Date; + /** + * The list of updates available for install. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly updateTitles?: string[]; + /** + * The list of updates available for install. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly updates?: UpdateDetails[]; + /** + * The total size of updates available for download in bytes. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly totalUpdateSizeInBytes?: number; + /** + * The total time in Minutes + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly totalTimeInMinutes?: number; +} + +/** + * The upload certificate request. + */ +export interface UploadCertificateRequest { + /** + * The authentication type. Possible values include: 'Invalid', 'AzureActiveDirectory' + */ + authenticationType?: AuthenticationType; + /** + * The base64 encoded certificate raw data. + */ + certificate: string; +} + +/** + * The upload registration certificate response. + */ +export interface UploadCertificateResponse { + /** + * Specifies authentication type. Possible values include: 'Invalid', 'AzureActiveDirectory' + */ + authType?: AuthenticationType; + /** + * The resource ID of the Data Box Edge/Gateway device. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly resourceId?: string; + /** + * Azure Active Directory tenant authority. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly aadAuthority?: string; + /** + * Azure Active Directory tenant ID. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly aadTenantId?: string; + /** + * Azure Active Directory service principal client ID. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly servicePrincipalClientId?: string; + /** + * Azure Active Directory service principal object ID. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly servicePrincipalObjectId?: string; + /** + * The azure management endpoint audience. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly azureManagementEndpointAudience?: string; + /** + * Identifier of the target resource that is the recipient of the requested token. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly aadAudience?: string; +} + +/** + * Represents a user who has access to one or more shares on the Data Box Edge/Gateway device. + */ +export interface User extends ARMBaseModel { + /** + * User in DataBoxEdge Resource + */ + systemData?: SystemData; + /** + * The password details. + */ + encryptedPassword?: AsymmetricEncryptedSecret; + /** + * List of shares that the user has rights on. This field should not be specified during user + * creation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly shareAccessRights?: ShareAccessRight[]; + /** + * Type of the user. Possible values include: 'Share', 'LocalManagement', 'ARM' + */ + userType: UserType; +} + +/** + * Optional Parameters. + */ +export interface DevicesListBySubscriptionOptionalParams extends msRest.RequestOptionsBase { + /** + * Specify $expand=details to populate additional fields related to the resource or Specify + * $skipToken= to populate the next page in the list. + */ + expand?: string; +} + +/** + * Optional Parameters. + */ +export interface DevicesListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { + /** + * Specify $expand=details to populate additional fields related to the resource or Specify + * $skipToken= to populate the next page in the list. + */ + expand?: string; +} + +/** + * Optional Parameters. + */ +export interface DevicesListBySubscriptionNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Specify $expand=details to populate additional fields related to the resource or Specify + * $skipToken= to populate the next page in the list. + */ + expand?: string; +} + +/** + * Optional Parameters. + */ +export interface DevicesListByResourceGroupNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Specify $expand=details to populate additional fields related to the resource or Specify + * $skipToken= to populate the next page in the list. + */ + expand?: string; +} + +/** + * Optional Parameters. + */ +export interface TriggersListByDataBoxEdgeDeviceOptionalParams extends msRest.RequestOptionsBase { + /** + * Specify $filter='CustomContextTag eq ' to filter on custom context tag property + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface TriggersListByDataBoxEdgeDeviceNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Specify $filter='CustomContextTag eq ' to filter on custom context tag property + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface UsersListByDataBoxEdgeDeviceOptionalParams extends msRest.RequestOptionsBase { + /** + * Specify $filter='Type eq ' to filter on user type property + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface UsersListByDataBoxEdgeDeviceNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Specify $filter='Type eq ' to filter on user type property + */ + filter?: string; +} + +/** + * An interface representing DataBoxEdgeManagementClientOptions. + */ +export interface DataBoxEdgeManagementClientOptions extends AzureServiceClientOptions { + baseUri?: string; +} + +/** + * @interface + * The list of operations used for the discovery of available provider operations. + * @extends Array + */ +export interface OperationsList extends Array { + /** + * Link to the next set of results. + */ + nextLink?: string; +} + +/** + * @interface + * List of SKU Information objects. + * @extends Array + */ +export interface DataBoxEdgeSkuList extends Array { + /** + * Links to the next set of results + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * The collection of Data Box Edge/Gateway devices. + * @extends Array + */ +export interface DataBoxEdgeDeviceList extends Array { + /** + * Link to the next set of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * Collection of alerts. + * @extends Array + */ +export interface AlertList extends Array { + /** + * Link to the next set of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * The collection of bandwidth schedules. + * @extends Array + */ +export interface BandwidthSchedulesList extends Array { + /** + * Link to the next set of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * Collection of Nodes. + * @extends Array + */ +export interface NodeList extends Array { + /** + * Link to the next set of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * List of order entities. + * @extends Array + */ +export interface OrderList extends Array { + /** + * Link to the next set of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * Collection of all the roles on the Data Box Edge device. + * @extends Array + */ +export interface RoleList extends Array { + /** + * Link to the next set of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * Collection of all the Role addon on the Azure Stack Edge device. + * @extends Array + */ +export interface AddonList extends Array { + /** + * Link to the next set of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * Collection of metric configurations. + * @extends Array + */ +export interface MonitoringMetricConfigurationList extends Array { + /** + * Link to the next set of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * Collection of all the shares on the Data Box Edge/Gateway device. + * @extends Array + */ +export interface ShareList extends Array { + /** + * Link to the next set of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * The collection of storage account credentials. + * @extends Array + */ +export interface StorageAccountCredentialList extends Array { + /** + * Link to the next set of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * Collection of all the Storage Accounts on the Data Box Edge/Gateway device. + * @extends Array + */ +export interface StorageAccountList extends Array { + /** + * Link to the next set of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * Collection of all the containers on the Data Box Edge/Gateway device. + * @extends Array + */ +export interface ContainerList extends Array { + /** + * Link to the next set of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * Collection of all trigger on the data box edge device. + * @extends Array + */ +export interface TriggerList extends Array { + /** + * Link to the next set of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * Collection of users. + * @extends Array + */ +export interface UserList extends Array { + /** + * Link to the next set of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * Defines values for CreatedByType. + * Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' + * @readonly + * @enum {string} + */ +export type CreatedByType = 'User' | 'Application' | 'ManagedIdentity' | 'Key'; + +/** + * Defines values for AlertSeverity. + * Possible values include: 'Informational', 'Warning', 'Critical' + * @readonly + * @enum {string} + */ +export type AlertSeverity = 'Informational' | 'Warning' | 'Critical'; + +/** + * Defines values for PlatformType. + * Possible values include: 'Windows', 'Linux' + * @readonly + * @enum {string} + */ +export type PlatformType = 'Windows' | 'Linux'; + +/** + * Defines values for HostPlatformType. + * Possible values include: 'KubernetesCluster', 'LinuxVM' + * @readonly + * @enum {string} + */ +export type HostPlatformType = 'KubernetesCluster' | 'LinuxVM'; + +/** + * Defines values for AddonState. + * Possible values include: 'Invalid', 'Creating', 'Created', 'Updating', 'Reconfiguring', + * 'Failed', 'Deleting' + * @readonly + * @enum {string} + */ +export type AddonState = 'Invalid' | 'Creating' | 'Created' | 'Updating' | 'Reconfiguring' | 'Failed' | 'Deleting'; + +/** + * Defines values for EncryptionAlgorithm. + * Possible values include: 'None', 'AES256', 'RSAES_PKCS1_v_1_5' + * @readonly + * @enum {string} + */ +export type EncryptionAlgorithm = 'None' | 'AES256' | 'RSAES_PKCS1_v_1_5'; + +/** + * Defines values for AzureContainerDataFormat. + * Possible values include: 'BlockBlob', 'PageBlob', 'AzureFile' + * @readonly + * @enum {string} + */ +export type AzureContainerDataFormat = 'BlockBlob' | 'PageBlob' | 'AzureFile'; + +/** + * Defines values for DayOfWeek. + * Possible values include: 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', + * 'Saturday' + * @readonly + * @enum {string} + */ +export type DayOfWeek = 'Sunday' | 'Monday' | 'Tuesday' | 'Wednesday' | 'Thursday' | 'Friday' | 'Saturday'; + +/** + * Defines values for ClientPermissionType. + * Possible values include: 'NoAccess', 'ReadOnly', 'ReadWrite' + * @readonly + * @enum {string} + */ +export type ClientPermissionType = 'NoAccess' | 'ReadOnly' | 'ReadWrite'; + +/** + * Defines values for RoleStatus. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type RoleStatus = 'Enabled' | 'Disabled'; + +/** + * Defines values for SubscriptionState. + * Possible values include: 'Registered', 'Warned', 'Suspended', 'Deleted', 'Unregistered' + * @readonly + * @enum {string} + */ +export type SubscriptionState = 'Registered' | 'Warned' | 'Suspended' | 'Deleted' | 'Unregistered'; + +/** + * Defines values for ContainerStatus. + * Possible values include: 'OK', 'Offline', 'Unknown', 'Updating', 'NeedsAttention' + * @readonly + * @enum {string} + */ +export type ContainerStatus = 'OK' | 'Offline' | 'Unknown' | 'Updating' | 'NeedsAttention'; + +/** + * Defines values for SkuName. + * Possible values include: 'Gateway', 'Edge', 'TEA_1Node', 'TEA_1Node_UPS', 'TEA_1Node_Heater', + * 'TEA_1Node_UPS_Heater', 'TEA_4Node_Heater', 'TEA_4Node_UPS_Heater', 'TMA', 'TDC', 'TCA_Small', + * 'GPU', 'TCA_Large', 'EdgeP_Base', 'EdgeP_High', 'EdgePR_Base', 'EdgePR_Base_UPS', + * 'EP2_64_1VPU_W', 'EP2_128_1T4_Mx1_W', 'EP2_256_2T4_W', 'EdgeMR_Mini', 'RCA_Small', 'RCA_Large', + * 'RDC', 'Management' + * @readonly + * @enum {string} + */ +export type SkuName = 'Gateway' | 'Edge' | 'TEA_1Node' | 'TEA_1Node_UPS' | 'TEA_1Node_Heater' | 'TEA_1Node_UPS_Heater' | 'TEA_4Node_Heater' | 'TEA_4Node_UPS_Heater' | 'TMA' | 'TDC' | 'TCA_Small' | 'GPU' | 'TCA_Large' | 'EdgeP_Base' | 'EdgeP_High' | 'EdgePR_Base' | 'EdgePR_Base_UPS' | 'EP2_64_1VPU_W' | 'EP2_128_1T4_Mx1_W' | 'EP2_256_2T4_W' | 'EdgeMR_Mini' | 'RCA_Small' | 'RCA_Large' | 'RDC' | 'Management'; + +/** + * Defines values for SkuTier. + * Possible values include: 'Standard' + * @readonly + * @enum {string} + */ +export type SkuTier = 'Standard'; + +/** + * Defines values for MsiIdentityType. + * Possible values include: 'None', 'SystemAssigned', 'UserAssigned' + * @readonly + * @enum {string} + */ +export type MsiIdentityType = 'None' | 'SystemAssigned' | 'UserAssigned'; + +/** + * Defines values for DataBoxEdgeDeviceKind. + * Possible values include: 'AzureDataBoxGateway', 'AzureStackEdge', 'AzureStackHub', + * 'AzureModularDataCentre' + * @readonly + * @enum {string} + */ +export type DataBoxEdgeDeviceKind = 'AzureDataBoxGateway' | 'AzureStackEdge' | 'AzureStackHub' | 'AzureModularDataCentre'; + +/** + * Defines values for DataBoxEdgeDeviceStatus. + * Possible values include: 'ReadyToSetup', 'Online', 'Offline', 'NeedsAttention', 'Disconnected', + * 'PartiallyDisconnected', 'Maintenance' + * @readonly + * @enum {string} + */ +export type DataBoxEdgeDeviceStatus = 'ReadyToSetup' | 'Online' | 'Offline' | 'NeedsAttention' | 'Disconnected' | 'PartiallyDisconnected' | 'Maintenance'; + +/** + * Defines values for DeviceType. + * Possible values include: 'DataBoxEdgeDevice' + * @readonly + * @enum {string} + */ +export type DeviceType = 'DataBoxEdgeDevice'; + +/** + * Defines values for RoleTypes. + * Possible values include: 'IOT', 'ASA', 'Functions', 'Cognitive', 'MEC', 'CloudEdgeManagement', + * 'Kubernetes' + * @readonly + * @enum {string} + */ +export type RoleTypes = 'IOT' | 'ASA' | 'Functions' | 'Cognitive' | 'MEC' | 'CloudEdgeManagement' | 'Kubernetes'; + +/** + * Defines values for ResourceMoveStatus. + * Possible values include: 'None', 'ResourceMoveInProgress', 'ResourceMoveFailed' + * @readonly + * @enum {string} + */ +export type ResourceMoveStatus = 'None' | 'ResourceMoveInProgress' | 'ResourceMoveFailed'; + +/** + * Defines values for DataResidencyType. + * Possible values include: 'GeoZoneReplication', 'ZoneReplication' + * @readonly + * @enum {string} + */ +export type DataResidencyType = 'GeoZoneReplication' | 'ZoneReplication'; + +/** + * Defines values for KeyVaultSyncStatus. + * Possible values include: 'KeyVaultSynced', 'KeyVaultSyncFailed', 'KeyVaultNotConfigured', + * 'KeyVaultSyncPending', 'KeyVaultSyncing', 'KeyVaultNotSynced' + * @readonly + * @enum {string} + */ +export type KeyVaultSyncStatus = 'KeyVaultSynced' | 'KeyVaultSyncFailed' | 'KeyVaultNotConfigured' | 'KeyVaultSyncPending' | 'KeyVaultSyncing' | 'KeyVaultNotSynced'; + +/** + * Defines values for SkuSignupOption. + * Possible values include: 'None', 'Available' + * @readonly + * @enum {string} + */ +export type SkuSignupOption = 'None' | 'Available'; + +/** + * Defines values for SkuVersion. + * Possible values include: 'Stable', 'Preview' + * @readonly + * @enum {string} + */ +export type SkuVersion = 'Stable' | 'Preview'; + +/** + * Defines values for SkuAvailability. + * Possible values include: 'Available', 'Unavailable' + * @readonly + * @enum {string} + */ +export type SkuAvailability = 'Available' | 'Unavailable'; + +/** + * Defines values for ShipmentType. + * Possible values include: 'NotApplicable', 'ShippedToCustomer', 'SelfPickup' + * @readonly + * @enum {string} + */ +export type ShipmentType = 'NotApplicable' | 'ShippedToCustomer' | 'SelfPickup'; + +/** + * Defines values for ProactiveDiagnosticsConsent. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type ProactiveDiagnosticsConsent = 'Enabled' | 'Disabled'; + +/** + * Defines values for RemoteApplicationType. + * Possible values include: 'Powershell', 'WAC', 'LocalUI', 'AllApplications' + * @readonly + * @enum {string} + */ +export type RemoteApplicationType = 'Powershell' | 'WAC' | 'LocalUI' | 'AllApplications'; + +/** + * Defines values for AccessLevel. + * Possible values include: 'None', 'ReadOnly', 'ReadWrite', 'FullAccess' + * @readonly + * @enum {string} + */ +export type AccessLevel = 'None' | 'ReadOnly' | 'ReadWrite' | 'FullAccess'; + +/** + * Defines values for MountType. + * Possible values include: 'Volume', 'HostPath' + * @readonly + * @enum {string} + */ +export type MountType = 'Volume' | 'HostPath'; + +/** + * Defines values for JobStatus. + * Possible values include: 'Invalid', 'Running', 'Succeeded', 'Failed', 'Canceled', 'Paused', + * 'Scheduled' + * @readonly + * @enum {string} + */ +export type JobStatus = 'Invalid' | 'Running' | 'Succeeded' | 'Failed' | 'Canceled' | 'Paused' | 'Scheduled'; + +/** + * Defines values for JobType. + * Possible values include: 'Invalid', 'ScanForUpdates', 'DownloadUpdates', 'InstallUpdates', + * 'RefreshShare', 'RefreshContainer', 'Backup', 'Restore', 'TriggerSupportPackage' + * @readonly + * @enum {string} + */ +export type JobType = 'Invalid' | 'ScanForUpdates' | 'DownloadUpdates' | 'InstallUpdates' | 'RefreshShare' | 'RefreshContainer' | 'Backup' | 'Restore' | 'TriggerSupportPackage'; + +/** + * Defines values for UpdateOperationStage. + * Possible values include: 'Unknown', 'Initial', 'ScanStarted', 'ScanComplete', 'ScanFailed', + * 'DownloadStarted', 'DownloadComplete', 'DownloadFailed', 'InstallStarted', 'InstallComplete', + * 'InstallFailed', 'RebootInitiated', 'Success', 'Failure', 'RescanStarted', 'RescanComplete', + * 'RescanFailed' + * @readonly + * @enum {string} + */ +export type UpdateOperationStage = 'Unknown' | 'Initial' | 'ScanStarted' | 'ScanComplete' | 'ScanFailed' | 'DownloadStarted' | 'DownloadComplete' | 'DownloadFailed' | 'InstallStarted' | 'InstallComplete' | 'InstallFailed' | 'RebootInitiated' | 'Success' | 'Failure' | 'RescanStarted' | 'RescanComplete' | 'RescanFailed'; + +/** + * Defines values for DownloadPhase. + * Possible values include: 'Unknown', 'Initializing', 'Downloading', 'Verifying' + * @readonly + * @enum {string} + */ +export type DownloadPhase = 'Unknown' | 'Initializing' | 'Downloading' | 'Verifying'; + +/** + * Defines values for KubernetesNodeType. + * Possible values include: 'Invalid', 'Master', 'Worker' + * @readonly + * @enum {string} + */ +export type KubernetesNodeType = 'Invalid' | 'Master' | 'Worker'; + +/** + * Defines values for KubernetesState. + * Possible values include: 'Invalid', 'Creating', 'Created', 'Updating', 'Reconfiguring', + * 'Failed', 'Deleting' + * @readonly + * @enum {string} + */ +export type KubernetesState = 'Invalid' | 'Creating' | 'Created' | 'Updating' | 'Reconfiguring' | 'Failed' | 'Deleting'; + +/** + * Defines values for PosixComplianceStatus. + * Possible values include: 'Invalid', 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type PosixComplianceStatus = 'Invalid' | 'Enabled' | 'Disabled'; + +/** + * Defines values for MetricUnit. + * Possible values include: 'NotSpecified', 'Percent', 'Count', 'Seconds', 'Milliseconds', 'Bytes', + * 'BytesPerSecond', 'CountPerSecond' + * @readonly + * @enum {string} + */ +export type MetricUnit = 'NotSpecified' | 'Percent' | 'Count' | 'Seconds' | 'Milliseconds' | 'Bytes' | 'BytesPerSecond' | 'CountPerSecond'; + +/** + * Defines values for MetricAggregationType. + * Possible values include: 'NotSpecified', 'None', 'Average', 'Minimum', 'Maximum', 'Total', + * 'Count' + * @readonly + * @enum {string} */ -export type AlertSeverity = 'Informational' | 'Warning' | 'Critical'; +export type MetricAggregationType = 'NotSpecified' | 'None' | 'Average' | 'Minimum' | 'Maximum' | 'Total' | 'Count'; /** - * Defines values for EncryptionAlgorithm. - * Possible values include: 'None', 'AES256', 'RSAES_PKCS1_v_1_5' + * Defines values for MetricCategory. + * Possible values include: 'Capacity', 'Transaction' * @readonly * @enum {string} */ -export type EncryptionAlgorithm = 'None' | 'AES256' | 'RSAES_PKCS1_v_1_5'; +export type MetricCategory = 'Capacity' | 'Transaction'; /** - * Defines values for AzureContainerDataFormat. - * Possible values include: 'BlockBlob', 'PageBlob', 'AzureFile' + * Defines values for TimeGrain. + * Possible values include: 'PT1M', 'PT5M', 'PT15M', 'PT30M', 'PT1H', 'PT6H', 'PT12H', 'PT1D' * @readonly * @enum {string} */ -export type AzureContainerDataFormat = 'BlockBlob' | 'PageBlob' | 'AzureFile'; +export type TimeGrain = 'PT1M' | 'PT5M' | 'PT15M' | 'PT30M' | 'PT1H' | 'PT6H' | 'PT12H' | 'PT1D'; /** - * Defines values for DayOfWeek. - * Possible values include: 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', - * 'Saturday' + * Defines values for NetworkGroup. + * Possible values include: 'None', 'NonRDMA', 'RDMA' * @readonly * @enum {string} */ -export type DayOfWeek = 'Sunday' | 'Monday' | 'Tuesday' | 'Wednesday' | 'Thursday' | 'Friday' | 'Saturday'; +export type NetworkGroup = 'None' | 'NonRDMA' | 'RDMA'; /** - * Defines values for ClientPermissionType. - * Possible values include: 'NoAccess', 'ReadOnly', 'ReadWrite' + * Defines values for NetworkAdapterStatus. + * Possible values include: 'Inactive', 'Active' * @readonly * @enum {string} */ -export type ClientPermissionType = 'NoAccess' | 'ReadOnly' | 'ReadWrite'; +export type NetworkAdapterStatus = 'Inactive' | 'Active'; /** - * Defines values for ContainerStatus. - * Possible values include: 'OK', 'Offline', 'Unknown', 'Updating', 'NeedsAttention' + * Defines values for NetworkAdapterRDMAStatus. + * Possible values include: 'Incapable', 'Capable' * @readonly * @enum {string} */ -export type ContainerStatus = 'OK' | 'Offline' | 'Unknown' | 'Updating' | 'NeedsAttention'; +export type NetworkAdapterRDMAStatus = 'Incapable' | 'Capable'; /** - * Defines values for SkuName. - * Possible values include: 'Gateway', 'Edge', 'TEA_1Node', 'TEA_1Node_UPS', 'TEA_1Node_Heater', - * 'TEA_1Node_UPS_Heater', 'TEA_4Node_Heater', 'TEA_4Node_UPS_Heater', 'TMA' + * Defines values for NetworkAdapterDHCPStatus. + * Possible values include: 'Disabled', 'Enabled' * @readonly * @enum {string} */ -export type SkuName = 'Gateway' | 'Edge' | 'TEA_1Node' | 'TEA_1Node_UPS' | 'TEA_1Node_Heater' | 'TEA_1Node_UPS_Heater' | 'TEA_4Node_Heater' | 'TEA_4Node_UPS_Heater' | 'TMA'; +export type NetworkAdapterDHCPStatus = 'Disabled' | 'Enabled'; /** - * Defines values for SkuTier. - * Possible values include: 'Standard' + * Defines values for NodeStatus. + * Possible values include: 'Unknown', 'Up', 'Down', 'Rebooting', 'ShuttingDown' * @readonly * @enum {string} */ -export type SkuTier = 'Standard'; +export type NodeStatus = 'Unknown' | 'Up' | 'Down' | 'Rebooting' | 'ShuttingDown'; /** - * Defines values for DataBoxEdgeDeviceStatus. - * Possible values include: 'ReadyToSetup', 'Online', 'Offline', 'NeedsAttention', 'Disconnected', - * 'PartiallyDisconnected', 'Maintenance' + * Defines values for OrderState. + * Possible values include: 'Untracked', 'AwaitingFulfillment', 'AwaitingPreparation', + * 'AwaitingShipment', 'Shipped', 'Arriving', 'Delivered', 'ReplacementRequested', 'LostDevice', + * 'Declined', 'ReturnInitiated', 'AwaitingReturnShipment', 'ShippedBack', 'CollectedAtMicrosoft', + * 'AwaitingPickup', 'PickupCompleted', 'AwaitingDrop' * @readonly * @enum {string} */ -export type DataBoxEdgeDeviceStatus = 'ReadyToSetup' | 'Online' | 'Offline' | 'NeedsAttention' | 'Disconnected' | 'PartiallyDisconnected' | 'Maintenance'; +export type OrderState = 'Untracked' | 'AwaitingFulfillment' | 'AwaitingPreparation' | 'AwaitingShipment' | 'Shipped' | 'Arriving' | 'Delivered' | 'ReplacementRequested' | 'LostDevice' | 'Declined' | 'ReturnInitiated' | 'AwaitingReturnShipment' | 'ShippedBack' | 'CollectedAtMicrosoft' | 'AwaitingPickup' | 'PickupCompleted' | 'AwaitingDrop'; /** - * Defines values for DeviceType. - * Possible values include: 'DataBoxEdgeDevice' + * Defines values for AuthenticationType. + * Possible values include: 'Invalid', 'AzureActiveDirectory' * @readonly * @enum {string} */ -export type DeviceType = 'DataBoxEdgeDevice'; +export type AuthenticationType = 'Invalid' | 'AzureActiveDirectory'; /** - * Defines values for RoleTypes. - * Possible values include: 'IOT', 'ASA', 'Functions', 'Cognitive' + * Defines values for ShareStatus. + * Possible values include: 'Offline', 'Unknown', 'OK', 'Updating', 'NeedsAttention' * @readonly * @enum {string} */ -export type RoleTypes = 'IOT' | 'ASA' | 'Functions' | 'Cognitive'; +export type ShareStatus = 'Offline' | 'Unknown' | 'OK' | 'Updating' | 'NeedsAttention'; /** - * Defines values for PlatformType. - * Possible values include: 'Windows', 'Linux' + * Defines values for MonitoringStatus. + * Possible values include: 'Enabled', 'Disabled' * @readonly * @enum {string} */ -export type PlatformType = 'Windows' | 'Linux'; +export type MonitoringStatus = 'Enabled' | 'Disabled'; /** - * Defines values for RoleStatus. - * Possible values include: 'Enabled', 'Disabled' + * Defines values for ShareAccessProtocol. + * Possible values include: 'SMB', 'NFS' * @readonly * @enum {string} */ -export type RoleStatus = 'Enabled' | 'Disabled'; +export type ShareAccessProtocol = 'SMB' | 'NFS'; /** - * Defines values for JobStatus. - * Possible values include: 'Invalid', 'Running', 'Succeeded', 'Failed', 'Canceled', 'Paused', - * 'Scheduled' + * Defines values for ShareAccessType. + * Possible values include: 'Change', 'Read', 'Custom' * @readonly * @enum {string} */ -export type JobStatus = 'Invalid' | 'Running' | 'Succeeded' | 'Failed' | 'Canceled' | 'Paused' | 'Scheduled'; +export type ShareAccessType = 'Change' | 'Read' | 'Custom'; /** - * Defines values for JobType. - * Possible values include: 'Invalid', 'ScanForUpdates', 'DownloadUpdates', 'InstallUpdates', - * 'RefreshShare', 'RefreshContainer' + * Defines values for DataPolicy. + * Possible values include: 'Cloud', 'Local' * @readonly * @enum {string} */ -export type JobType = 'Invalid' | 'ScanForUpdates' | 'DownloadUpdates' | 'InstallUpdates' | 'RefreshShare' | 'RefreshContainer'; +export type DataPolicy = 'Cloud' | 'Local'; /** - * Defines values for UpdateOperationStage. - * Possible values include: 'Unknown', 'Initial', 'ScanStarted', 'ScanComplete', 'ScanFailed', - * 'DownloadStarted', 'DownloadComplete', 'DownloadFailed', 'InstallStarted', 'InstallComplete', - * 'InstallFailed', 'RebootInitiated', 'Success', 'Failure', 'RescanStarted', 'RescanComplete', - * 'RescanFailed' + * Defines values for StorageAccountStatus. + * Possible values include: 'OK', 'Offline', 'Unknown', 'Updating', 'NeedsAttention' * @readonly * @enum {string} */ -export type UpdateOperationStage = 'Unknown' | 'Initial' | 'ScanStarted' | 'ScanComplete' | 'ScanFailed' | 'DownloadStarted' | 'DownloadComplete' | 'DownloadFailed' | 'InstallStarted' | 'InstallComplete' | 'InstallFailed' | 'RebootInitiated' | 'Success' | 'Failure' | 'RescanStarted' | 'RescanComplete' | 'RescanFailed'; +export type StorageAccountStatus = 'OK' | 'Offline' | 'Unknown' | 'Updating' | 'NeedsAttention'; /** - * Defines values for DownloadPhase. - * Possible values include: 'Unknown', 'Initializing', 'Downloading', 'Verifying' + * Defines values for SSLStatus. + * Possible values include: 'Enabled', 'Disabled' * @readonly * @enum {string} */ -export type DownloadPhase = 'Unknown' | 'Initializing' | 'Downloading' | 'Verifying'; +export type SSLStatus = 'Enabled' | 'Disabled'; /** - * Defines values for MetricUnit. - * Possible values include: 'NotSpecified', 'Percent', 'Count', 'Seconds', 'Milliseconds', 'Bytes', - * 'BytesPerSecond', 'CountPerSecond' + * Defines values for AccountType. + * Possible values include: 'GeneralPurposeStorage', 'BlobStorage' * @readonly * @enum {string} */ -export type MetricUnit = 'NotSpecified' | 'Percent' | 'Count' | 'Seconds' | 'Milliseconds' | 'Bytes' | 'BytesPerSecond' | 'CountPerSecond'; +export type AccountType = 'GeneralPurposeStorage' | 'BlobStorage'; /** - * Defines values for MetricAggregationType. - * Possible values include: 'NotSpecified', 'None', 'Average', 'Minimum', 'Maximum', 'Total', - * 'Count' + * Defines values for UpdateType. + * Possible values include: 'Software', 'Kubernetes', 'Firmware' * @readonly * @enum {string} */ -export type MetricAggregationType = 'NotSpecified' | 'None' | 'Average' | 'Minimum' | 'Maximum' | 'Total' | 'Count'; +export type UpdateType = 'Software' | 'Kubernetes' | 'Firmware'; /** - * Defines values for MetricCategory. - * Possible values include: 'Capacity', 'Transaction' + * Defines values for InstallRebootBehavior. + * Possible values include: 'NeverReboots', 'RequiresReboot', 'RequestReboot' * @readonly * @enum {string} */ -export type MetricCategory = 'Capacity' | 'Transaction'; +export type InstallRebootBehavior = 'NeverReboots' | 'RequiresReboot' | 'RequestReboot'; /** - * Defines values for TimeGrain. - * Possible values include: 'PT1M', 'PT5M', 'PT15M', 'PT30M', 'PT1H', 'PT6H', 'PT12H', 'PT1D' + * Defines values for InstallationImpact. + * Possible values include: 'None', 'DeviceRebooted', 'KubernetesWorkloadsDown' * @readonly * @enum {string} */ -export type TimeGrain = 'PT1M' | 'PT5M' | 'PT15M' | 'PT30M' | 'PT1H' | 'PT6H' | 'PT12H' | 'PT1D'; +export type InstallationImpact = 'None' | 'DeviceRebooted' | 'KubernetesWorkloadsDown'; + +/** + * Defines values for UpdateStatus. + * Possible values include: 'DownloadPending', 'DownloadStarted', 'DownloadCompleted', + * 'InstallStarted', 'InstallCompleted' + * @readonly + * @enum {string} + */ +export type UpdateStatus = 'DownloadPending' | 'DownloadStarted' | 'DownloadCompleted' | 'InstallStarted' | 'InstallCompleted'; + +/** + * Defines values for UpdateOperation. + * Possible values include: 'None', 'Scan', 'Download', 'Install' + * @readonly + * @enum {string} + */ +export type UpdateOperation = 'None' | 'Scan' | 'Download' | 'Install'; + +/** + * Defines values for UserType. + * Possible values include: 'Share', 'LocalManagement', 'ARM' + * @readonly + * @enum {string} + */ +export type UserType = 'Share' | 'LocalManagement' | 'ARM'; + +/** + * Contains response data for the list operation. + */ +export type OperationsListResponse = OperationsList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationsList; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type OperationsListNextResponse = OperationsList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationsList; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type AvailableSkusListResponse = DataBoxEdgeSkuList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DataBoxEdgeSkuList; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type AvailableSkusListNextResponse = DataBoxEdgeSkuList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DataBoxEdgeSkuList; + }; +}; + +/** + * Contains response data for the listBySubscription operation. + */ +export type DevicesListBySubscriptionResponse = DataBoxEdgeDeviceList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DataBoxEdgeDeviceList; + }; +}; + +/** + * Contains response data for the listByResourceGroup operation. + */ +export type DevicesListByResourceGroupResponse = DataBoxEdgeDeviceList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DataBoxEdgeDeviceList; + }; +}; /** - * Defines values for NetworkGroup. - * Possible values include: 'None', 'NonRDMA', 'RDMA' - * @readonly - * @enum {string} + * Contains response data for the get operation. */ -export type NetworkGroup = 'None' | 'NonRDMA' | 'RDMA'; +export type DevicesGetResponse = DataBoxEdgeDevice & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for NetworkAdapterStatus. - * Possible values include: 'Inactive', 'Active' - * @readonly - * @enum {string} - */ -export type NetworkAdapterStatus = 'Inactive' | 'Active'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DataBoxEdgeDevice; + }; +}; /** - * Defines values for NetworkAdapterRDMAStatus. - * Possible values include: 'Incapable', 'Capable' - * @readonly - * @enum {string} + * Contains response data for the createOrUpdate operation. */ -export type NetworkAdapterRDMAStatus = 'Incapable' | 'Capable'; +export type DevicesCreateOrUpdateResponse = DataBoxEdgeDevice & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for NetworkAdapterDHCPStatus. - * Possible values include: 'Disabled', 'Enabled' - * @readonly - * @enum {string} - */ -export type NetworkAdapterDHCPStatus = 'Disabled' | 'Enabled'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DataBoxEdgeDevice; + }; +}; /** - * Defines values for NodeStatus. - * Possible values include: 'Unknown', 'Up', 'Down', 'Rebooting', 'ShuttingDown' - * @readonly - * @enum {string} + * Contains response data for the update operation. */ -export type NodeStatus = 'Unknown' | 'Up' | 'Down' | 'Rebooting' | 'ShuttingDown'; +export type DevicesUpdateResponse = DataBoxEdgeDevice & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for OrderState. - * Possible values include: 'Untracked', 'AwaitingFulfilment', 'AwaitingPreparation', - * 'AwaitingShipment', 'Shipped', 'Arriving', 'Delivered', 'ReplacementRequested', 'LostDevice', - * 'Declined', 'ReturnInitiated', 'AwaitingReturnShipment', 'ShippedBack', 'CollectedAtMicrosoft' - * @readonly - * @enum {string} - */ -export type OrderState = 'Untracked' | 'AwaitingFulfilment' | 'AwaitingPreparation' | 'AwaitingShipment' | 'Shipped' | 'Arriving' | 'Delivered' | 'ReplacementRequested' | 'LostDevice' | 'Declined' | 'ReturnInitiated' | 'AwaitingReturnShipment' | 'ShippedBack' | 'CollectedAtMicrosoft'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DataBoxEdgeDevice; + }; +}; /** - * Defines values for AuthenticationType. - * Possible values include: 'Invalid', 'AzureActiveDirectory' - * @readonly - * @enum {string} + * Contains response data for the generateCertificate operation. */ -export type AuthenticationType = 'Invalid' | 'AzureActiveDirectory'; +export type DevicesGenerateCertificateResponse = GenerateCertResponse & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for SkuRestrictionReasonCode. - * Possible values include: 'NotAvailableForSubscription', 'QuotaId' - * @readonly - * @enum {string} - */ -export type SkuRestrictionReasonCode = 'NotAvailableForSubscription' | 'QuotaId'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: GenerateCertResponse; + }; +}; /** - * Defines values for ShareStatus. - * Possible values include: 'Offline', 'Unknown', 'OK', 'Updating', 'NeedsAttention' - * @readonly - * @enum {string} + * Contains response data for the getExtendedInformation operation. */ -export type ShareStatus = 'Offline' | 'Unknown' | 'OK' | 'Updating' | 'NeedsAttention'; +export type DevicesGetExtendedInformationResponse = DataBoxEdgeDeviceExtendedInfo & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DataBoxEdgeDeviceExtendedInfo; + }; +}; /** - * Defines values for MonitoringStatus. - * Possible values include: 'Enabled', 'Disabled' - * @readonly - * @enum {string} + * Contains response data for the getNetworkSettings operation. */ -export type MonitoringStatus = 'Enabled' | 'Disabled'; +export type DevicesGetNetworkSettingsResponse = NetworkSettings & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: NetworkSettings; + }; +}; /** - * Defines values for ShareAccessProtocol. - * Possible values include: 'SMB', 'NFS' - * @readonly - * @enum {string} + * Contains response data for the updateExtendedInformation operation. */ -export type ShareAccessProtocol = 'SMB' | 'NFS'; +export type DevicesUpdateExtendedInformationResponse = DataBoxEdgeDeviceExtendedInfo & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DataBoxEdgeDeviceExtendedInfo; + }; +}; /** - * Defines values for ShareAccessType. - * Possible values include: 'Change', 'Read', 'Custom' - * @readonly - * @enum {string} + * Contains response data for the getUpdateSummary operation. */ -export type ShareAccessType = 'Change' | 'Read' | 'Custom'; +export type DevicesGetUpdateSummaryResponse = UpdateSummary & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: UpdateSummary; + }; +}; /** - * Defines values for DataPolicy. - * Possible values include: 'Cloud', 'Local' - * @readonly - * @enum {string} + * Contains response data for the uploadCertificate operation. */ -export type DataPolicy = 'Cloud' | 'Local'; +export type DevicesUploadCertificateResponse = UploadCertificateResponse & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: UploadCertificateResponse; + }; +}; /** - * Defines values for StorageAccountStatus. - * Possible values include: 'OK', 'Offline', 'Unknown', 'Updating', 'NeedsAttention' - * @readonly - * @enum {string} + * Contains response data for the listBySubscriptionNext operation. */ -export type StorageAccountStatus = 'OK' | 'Offline' | 'Unknown' | 'Updating' | 'NeedsAttention'; +export type DevicesListBySubscriptionNextResponse = DataBoxEdgeDeviceList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DataBoxEdgeDeviceList; + }; +}; /** - * Defines values for SSLStatus. - * Possible values include: 'Enabled', 'Disabled' - * @readonly - * @enum {string} + * Contains response data for the listByResourceGroupNext operation. */ -export type SSLStatus = 'Enabled' | 'Disabled'; +export type DevicesListByResourceGroupNextResponse = DataBoxEdgeDeviceList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DataBoxEdgeDeviceList; + }; +}; /** - * Defines values for AccountType. - * Possible values include: 'GeneralPurposeStorage', 'BlobStorage' - * @readonly - * @enum {string} + * Contains response data for the listByDataBoxEdgeDevice operation. */ -export type AccountType = 'GeneralPurposeStorage' | 'BlobStorage'; +export type AlertsListByDataBoxEdgeDeviceResponse = AlertList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AlertList; + }; +}; /** - * Defines values for InstallRebootBehavior. - * Possible values include: 'NeverReboots', 'RequiresReboot', 'RequestReboot' - * @readonly - * @enum {string} + * Contains response data for the get operation. */ -export type InstallRebootBehavior = 'NeverReboots' | 'RequiresReboot' | 'RequestReboot'; +export type AlertsGetResponse = Alert & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Alert; + }; +}; /** - * Defines values for UpdateOperation. - * Possible values include: 'None', 'Scan', 'Download', 'Install' - * @readonly - * @enum {string} + * Contains response data for the listByDataBoxEdgeDeviceNext operation. */ -export type UpdateOperation = 'None' | 'Scan' | 'Download' | 'Install'; +export type AlertsListByDataBoxEdgeDeviceNextResponse = AlertList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AlertList; + }; +}; /** - * Defines values for UserType. - * Possible values include: 'Share', 'LocalManagement', 'ARM' - * @readonly - * @enum {string} + * Contains response data for the listByDataBoxEdgeDevice operation. */ -export type UserType = 'Share' | 'LocalManagement' | 'ARM'; +export type BandwidthSchedulesListByDataBoxEdgeDeviceResponse = BandwidthSchedulesList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: BandwidthSchedulesList; + }; +}; /** - * Contains response data for the list operation. + * Contains response data for the get operation. */ -export type OperationsListResponse = OperationsList & { +export type BandwidthSchedulesGetResponse = BandwidthSchedule & { /** * The underlying HTTP response. */ @@ -2361,14 +4307,14 @@ export type OperationsListResponse = OperationsList & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationsList; + parsedBody: BandwidthSchedule; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the createOrUpdate operation. */ -export type OperationsListNextResponse = OperationsList & { +export type BandwidthSchedulesCreateOrUpdateResponse = BandwidthSchedule & { /** * The underlying HTTP response. */ @@ -2381,14 +4327,14 @@ export type OperationsListNextResponse = OperationsList & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationsList; + parsedBody: BandwidthSchedule; }; }; /** - * Contains response data for the listBySubscription operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type DevicesListBySubscriptionResponse = DataBoxEdgeDeviceList & { +export type BandwidthSchedulesBeginCreateOrUpdateResponse = BandwidthSchedule & { /** * The underlying HTTP response. */ @@ -2401,14 +4347,14 @@ export type DevicesListBySubscriptionResponse = DataBoxEdgeDeviceList & { /** * The response body as parsed JSON or XML */ - parsedBody: DataBoxEdgeDeviceList; + parsedBody: BandwidthSchedule; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the listByDataBoxEdgeDeviceNext operation. */ -export type DevicesListByResourceGroupResponse = DataBoxEdgeDeviceList & { +export type BandwidthSchedulesListByDataBoxEdgeDeviceNextResponse = BandwidthSchedulesList & { /** * The underlying HTTP response. */ @@ -2421,14 +4367,14 @@ export type DevicesListByResourceGroupResponse = DataBoxEdgeDeviceList & { /** * The response body as parsed JSON or XML */ - parsedBody: DataBoxEdgeDeviceList; + parsedBody: BandwidthSchedulesList; }; }; /** - * Contains response data for the get operation. + * Contains response data for the getDiagnosticProactiveLogCollectionSettings operation. */ -export type DevicesGetResponse = DataBoxEdgeDevice & { +export type DiagnosticSettingsGetDiagnosticProactiveLogCollectionSettingsResponse = DiagnosticProactiveLogCollectionSettings & { /** * The underlying HTTP response. */ @@ -2441,14 +4387,14 @@ export type DevicesGetResponse = DataBoxEdgeDevice & { /** * The response body as parsed JSON or XML */ - parsedBody: DataBoxEdgeDevice; + parsedBody: DiagnosticProactiveLogCollectionSettings; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the updateDiagnosticProactiveLogCollectionSettings operation. */ -export type DevicesCreateOrUpdateResponse = DataBoxEdgeDevice & { +export type DiagnosticSettingsUpdateDiagnosticProactiveLogCollectionSettingsResponse = DiagnosticProactiveLogCollectionSettings & { /** * The underlying HTTP response. */ @@ -2461,14 +4407,14 @@ export type DevicesCreateOrUpdateResponse = DataBoxEdgeDevice & { /** * The response body as parsed JSON or XML */ - parsedBody: DataBoxEdgeDevice; + parsedBody: DiagnosticProactiveLogCollectionSettings; }; }; /** - * Contains response data for the update operation. + * Contains response data for the getDiagnosticRemoteSupportSettings operation. */ -export type DevicesUpdateResponse = DataBoxEdgeDevice & { +export type DiagnosticSettingsGetDiagnosticRemoteSupportSettingsResponse = DiagnosticRemoteSupportSettings & { /** * The underlying HTTP response. */ @@ -2481,14 +4427,14 @@ export type DevicesUpdateResponse = DataBoxEdgeDevice & { /** * The response body as parsed JSON or XML */ - parsedBody: DataBoxEdgeDevice; + parsedBody: DiagnosticRemoteSupportSettings; }; }; /** - * Contains response data for the getExtendedInformation operation. + * Contains response data for the updateDiagnosticRemoteSupportSettings operation. */ -export type DevicesGetExtendedInformationResponse = DataBoxEdgeDeviceExtendedInfo & { +export type DiagnosticSettingsUpdateDiagnosticRemoteSupportSettingsResponse = DiagnosticRemoteSupportSettings & { /** * The underlying HTTP response. */ @@ -2501,14 +4447,14 @@ export type DevicesGetExtendedInformationResponse = DataBoxEdgeDeviceExtendedInf /** * The response body as parsed JSON or XML */ - parsedBody: DataBoxEdgeDeviceExtendedInfo; + parsedBody: DiagnosticRemoteSupportSettings; }; }; /** - * Contains response data for the getNetworkSettings operation. + * Contains response data for the beginUpdateDiagnosticProactiveLogCollectionSettings operation. */ -export type DevicesGetNetworkSettingsResponse = NetworkSettings & { +export type DiagnosticSettingsBeginUpdateDiagnosticProactiveLogCollectionSettingsResponse = DiagnosticProactiveLogCollectionSettings & { /** * The underlying HTTP response. */ @@ -2521,14 +4467,14 @@ export type DevicesGetNetworkSettingsResponse = NetworkSettings & { /** * The response body as parsed JSON or XML */ - parsedBody: NetworkSettings; + parsedBody: DiagnosticProactiveLogCollectionSettings; }; }; /** - * Contains response data for the getUpdateSummary operation. + * Contains response data for the beginUpdateDiagnosticRemoteSupportSettings operation. */ -export type DevicesGetUpdateSummaryResponse = UpdateSummary & { +export type DiagnosticSettingsBeginUpdateDiagnosticRemoteSupportSettingsResponse = DiagnosticRemoteSupportSettings & { /** * The underlying HTTP response. */ @@ -2541,14 +4487,14 @@ export type DevicesGetUpdateSummaryResponse = UpdateSummary & { /** * The response body as parsed JSON or XML */ - parsedBody: UpdateSummary; + parsedBody: DiagnosticRemoteSupportSettings; }; }; /** - * Contains response data for the uploadCertificate operation. + * Contains response data for the get operation. */ -export type DevicesUploadCertificateResponse = UploadCertificateResponse & { +export type JobsGetResponse = Job & { /** * The underlying HTTP response. */ @@ -2561,14 +4507,14 @@ export type DevicesUploadCertificateResponse = UploadCertificateResponse & { /** * The response body as parsed JSON or XML */ - parsedBody: UploadCertificateResponse; + parsedBody: Job; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the listByDataBoxEdgeDevice operation. */ -export type DevicesBeginCreateOrUpdateResponse = DataBoxEdgeDevice & { +export type NodesListByDataBoxEdgeDeviceResponse = NodeList & { /** * The underlying HTTP response. */ @@ -2581,14 +4527,14 @@ export type DevicesBeginCreateOrUpdateResponse = DataBoxEdgeDevice & { /** * The response body as parsed JSON or XML */ - parsedBody: DataBoxEdgeDevice; + parsedBody: NodeList; }; }; /** - * Contains response data for the listBySubscriptionNext operation. + * Contains response data for the listByDataBoxEdgeDeviceNext operation. */ -export type DevicesListBySubscriptionNextResponse = DataBoxEdgeDeviceList & { +export type NodesListByDataBoxEdgeDeviceNextResponse = NodeList & { /** * The underlying HTTP response. */ @@ -2601,14 +4547,14 @@ export type DevicesListBySubscriptionNextResponse = DataBoxEdgeDeviceList & { /** * The response body as parsed JSON or XML */ - parsedBody: DataBoxEdgeDeviceList; + parsedBody: NodeList; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the get operation. */ -export type DevicesListByResourceGroupNextResponse = DataBoxEdgeDeviceList & { +export type OperationsStatusGetResponse = Job & { /** * The underlying HTTP response. */ @@ -2621,14 +4567,14 @@ export type DevicesListByResourceGroupNextResponse = DataBoxEdgeDeviceList & { /** * The response body as parsed JSON or XML */ - parsedBody: DataBoxEdgeDeviceList; + parsedBody: Job; }; }; /** * Contains response data for the listByDataBoxEdgeDevice operation. */ -export type AlertsListByDataBoxEdgeDeviceResponse = AlertList & { +export type OrdersListByDataBoxEdgeDeviceResponse = OrderList & { /** * The underlying HTTP response. */ @@ -2641,14 +4587,14 @@ export type AlertsListByDataBoxEdgeDeviceResponse = AlertList & { /** * The response body as parsed JSON or XML */ - parsedBody: AlertList; + parsedBody: OrderList; }; }; /** * Contains response data for the get operation. */ -export type AlertsGetResponse = Alert & { +export type OrdersGetResponse = Order & { /** * The underlying HTTP response. */ @@ -2661,14 +4607,14 @@ export type AlertsGetResponse = Alert & { /** * The response body as parsed JSON or XML */ - parsedBody: Alert; + parsedBody: Order; }; }; /** - * Contains response data for the listByDataBoxEdgeDeviceNext operation. + * Contains response data for the createOrUpdate operation. */ -export type AlertsListByDataBoxEdgeDeviceNextResponse = AlertList & { +export type OrdersCreateOrUpdateResponse = Order & { /** * The underlying HTTP response. */ @@ -2681,14 +4627,14 @@ export type AlertsListByDataBoxEdgeDeviceNextResponse = AlertList & { /** * The response body as parsed JSON or XML */ - parsedBody: AlertList; + parsedBody: Order; }; }; /** - * Contains response data for the listByDataBoxEdgeDevice operation. + * Contains response data for the listDCAccessCode operation. */ -export type BandwidthSchedulesListByDataBoxEdgeDeviceResponse = BandwidthSchedulesList & { +export type OrdersListDCAccessCodeResponse = DCAccessCode & { /** * The underlying HTTP response. */ @@ -2701,14 +4647,14 @@ export type BandwidthSchedulesListByDataBoxEdgeDeviceResponse = BandwidthSchedul /** * The response body as parsed JSON or XML */ - parsedBody: BandwidthSchedulesList; + parsedBody: DCAccessCode; }; }; /** - * Contains response data for the get operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type BandwidthSchedulesGetResponse = BandwidthSchedule & { +export type OrdersBeginCreateOrUpdateResponse = Order & { /** * The underlying HTTP response. */ @@ -2721,14 +4667,14 @@ export type BandwidthSchedulesGetResponse = BandwidthSchedule & { /** * The response body as parsed JSON or XML */ - parsedBody: BandwidthSchedule; + parsedBody: Order; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listByDataBoxEdgeDeviceNext operation. */ -export type BandwidthSchedulesCreateOrUpdateResponse = BandwidthSchedule & { +export type OrdersListByDataBoxEdgeDeviceNextResponse = OrderList & { /** * The underlying HTTP response. */ @@ -2741,14 +4687,14 @@ export type BandwidthSchedulesCreateOrUpdateResponse = BandwidthSchedule & { /** * The response body as parsed JSON or XML */ - parsedBody: BandwidthSchedule; + parsedBody: OrderList; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the listByDataBoxEdgeDevice operation. */ -export type BandwidthSchedulesBeginCreateOrUpdateResponse = BandwidthSchedule & { +export type RolesListByDataBoxEdgeDeviceResponse = RoleList & { /** * The underlying HTTP response. */ @@ -2761,14 +4707,14 @@ export type BandwidthSchedulesBeginCreateOrUpdateResponse = BandwidthSchedule & /** * The response body as parsed JSON or XML */ - parsedBody: BandwidthSchedule; + parsedBody: RoleList; }; }; /** - * Contains response data for the listByDataBoxEdgeDeviceNext operation. + * Contains response data for the get operation. */ -export type BandwidthSchedulesListByDataBoxEdgeDeviceNextResponse = BandwidthSchedulesList & { +export type RolesGetResponse = RoleUnion & { /** * The underlying HTTP response. */ @@ -2781,14 +4727,14 @@ export type BandwidthSchedulesListByDataBoxEdgeDeviceNextResponse = BandwidthSch /** * The response body as parsed JSON or XML */ - parsedBody: BandwidthSchedulesList; + parsedBody: RoleUnion; }; }; /** - * Contains response data for the get operation. + * Contains response data for the createOrUpdate operation. */ -export type JobsGetResponse = Job & { +export type RolesCreateOrUpdateResponse = RoleUnion & { /** * The underlying HTTP response. */ @@ -2801,14 +4747,14 @@ export type JobsGetResponse = Job & { /** * The response body as parsed JSON or XML */ - parsedBody: Job; + parsedBody: RoleUnion; }; }; /** - * Contains response data for the listByDataBoxEdgeDevice operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type NodesListByDataBoxEdgeDeviceResponse = NodeList & { +export type RolesBeginCreateOrUpdateResponse = RoleUnion & { /** * The underlying HTTP response. */ @@ -2821,14 +4767,14 @@ export type NodesListByDataBoxEdgeDeviceResponse = NodeList & { /** * The response body as parsed JSON or XML */ - parsedBody: NodeList; + parsedBody: RoleUnion; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByDataBoxEdgeDeviceNext operation. */ -export type OperationsStatusGetResponse = Job & { +export type RolesListByDataBoxEdgeDeviceNextResponse = RoleList & { /** * The underlying HTTP response. */ @@ -2841,14 +4787,14 @@ export type OperationsStatusGetResponse = Job & { /** * The response body as parsed JSON or XML */ - parsedBody: Job; + parsedBody: RoleList; }; }; /** - * Contains response data for the listByDataBoxEdgeDevice operation. + * Contains response data for the listByRole operation. */ -export type OrdersListByDataBoxEdgeDeviceResponse = OrderList & { +export type AddonsListByRoleResponse = AddonList & { /** * The underlying HTTP response. */ @@ -2861,14 +4807,14 @@ export type OrdersListByDataBoxEdgeDeviceResponse = OrderList & { /** * The response body as parsed JSON or XML */ - parsedBody: OrderList; + parsedBody: AddonList; }; }; /** * Contains response data for the get operation. */ -export type OrdersGetResponse = Order & { +export type AddonsGetResponse = AddonUnion & { /** * The underlying HTTP response. */ @@ -2881,14 +4827,14 @@ export type OrdersGetResponse = Order & { /** * The response body as parsed JSON or XML */ - parsedBody: Order; + parsedBody: AddonUnion; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type OrdersCreateOrUpdateResponse = Order & { +export type AddonsCreateOrUpdateResponse = AddonUnion & { /** * The underlying HTTP response. */ @@ -2901,14 +4847,14 @@ export type OrdersCreateOrUpdateResponse = Order & { /** * The response body as parsed JSON or XML */ - parsedBody: Order; + parsedBody: AddonUnion; }; }; /** * Contains response data for the beginCreateOrUpdate operation. */ -export type OrdersBeginCreateOrUpdateResponse = Order & { +export type AddonsBeginCreateOrUpdateResponse = AddonUnion & { /** * The underlying HTTP response. */ @@ -2921,14 +4867,14 @@ export type OrdersBeginCreateOrUpdateResponse = Order & { /** * The response body as parsed JSON or XML */ - parsedBody: Order; + parsedBody: AddonUnion; }; }; /** - * Contains response data for the listByDataBoxEdgeDeviceNext operation. + * Contains response data for the listByRoleNext operation. */ -export type OrdersListByDataBoxEdgeDeviceNextResponse = OrderList & { +export type AddonsListByRoleNextResponse = AddonList & { /** * The underlying HTTP response. */ @@ -2941,14 +4887,14 @@ export type OrdersListByDataBoxEdgeDeviceNextResponse = OrderList & { /** * The response body as parsed JSON or XML */ - parsedBody: OrderList; + parsedBody: AddonList; }; }; /** - * Contains response data for the listByDataBoxEdgeDevice operation. + * Contains response data for the list operation. */ -export type RolesListByDataBoxEdgeDeviceResponse = RoleList & { +export type MonitoringConfigListResponse = MonitoringMetricConfigurationList & { /** * The underlying HTTP response. */ @@ -2961,14 +4907,14 @@ export type RolesListByDataBoxEdgeDeviceResponse = RoleList & { /** * The response body as parsed JSON or XML */ - parsedBody: RoleList; + parsedBody: MonitoringMetricConfigurationList; }; }; /** * Contains response data for the get operation. */ -export type RolesGetResponse = RoleUnion & { +export type MonitoringConfigGetResponse = MonitoringMetricConfiguration & { /** * The underlying HTTP response. */ @@ -2981,14 +4927,14 @@ export type RolesGetResponse = RoleUnion & { /** * The response body as parsed JSON or XML */ - parsedBody: RoleUnion; + parsedBody: MonitoringMetricConfiguration; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type RolesCreateOrUpdateResponse = RoleUnion & { +export type MonitoringConfigCreateOrUpdateResponse = MonitoringMetricConfiguration & { /** * The underlying HTTP response. */ @@ -3001,14 +4947,14 @@ export type RolesCreateOrUpdateResponse = RoleUnion & { /** * The response body as parsed JSON or XML */ - parsedBody: RoleUnion; + parsedBody: MonitoringMetricConfiguration; }; }; /** * Contains response data for the beginCreateOrUpdate operation. */ -export type RolesBeginCreateOrUpdateResponse = RoleUnion & { +export type MonitoringConfigBeginCreateOrUpdateResponse = MonitoringMetricConfiguration & { /** * The underlying HTTP response. */ @@ -3021,14 +4967,14 @@ export type RolesBeginCreateOrUpdateResponse = RoleUnion & { /** * The response body as parsed JSON or XML */ - parsedBody: RoleUnion; + parsedBody: MonitoringMetricConfiguration; }; }; /** - * Contains response data for the listByDataBoxEdgeDeviceNext operation. + * Contains response data for the listNext operation. */ -export type RolesListByDataBoxEdgeDeviceNextResponse = RoleList & { +export type MonitoringConfigListNextResponse = MonitoringMetricConfigurationList & { /** * The underlying HTTP response. */ @@ -3041,7 +4987,7 @@ export type RolesListByDataBoxEdgeDeviceNextResponse = RoleList & { /** * The response body as parsed JSON or XML */ - parsedBody: RoleList; + parsedBody: MonitoringMetricConfigurationList; }; }; @@ -3644,23 +5590,3 @@ export type UsersListByDataBoxEdgeDeviceNextResponse = UserList & { parsedBody: UserList; }; }; - -/** - * Contains response data for the list operation. - */ -export type SkusListResponse = SkuInformationList & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: SkuInformationList; - }; -}; diff --git a/sdk/databoxedge/arm-databoxedge/src/models/jobsMappers.ts b/sdk/databoxedge/arm-databoxedge/src/models/jobsMappers.ts index 0f195ce2be53..18867e1da432 100644 --- a/sdk/databoxedge/arm-databoxedge/src/models/jobsMappers.ts +++ b/sdk/databoxedge/arm-databoxedge/src/models/jobsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/databoxedge/arm-databoxedge/src/models/mappers.ts b/sdk/databoxedge/arm-databoxedge/src/models/mappers.ts index 3cfe52b682f2..9dae3b120bdc 100644 --- a/sdk/databoxedge/arm-databoxedge/src/models/mappers.ts +++ b/sdk/databoxedge/arm-databoxedge/src/models/mappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -12,6 +12,113 @@ import * as msRest from "@azure/ms-rest-js"; export const CloudError = CloudErrorMapper; export const BaseResource = BaseResourceMapper; +export const SystemData: msRest.CompositeMapper = { + serializedName: "SystemData", + type: { + name: "Composite", + className: "SystemData", + modelProperties: { + createdBy: { + serializedName: "createdBy", + type: { + name: "String" + } + }, + createdByType: { + serializedName: "createdByType", + type: { + name: "String" + } + }, + createdAt: { + serializedName: "createdAt", + type: { + name: "DateTime" + } + }, + lastModifiedBy: { + serializedName: "lastModifiedBy", + type: { + name: "String" + } + }, + lastModifiedByType: { + serializedName: "lastModifiedByType", + type: { + name: "String" + } + }, + lastModifiedAt: { + serializedName: "lastModifiedAt", + type: { + name: "DateTime" + } + } + } + } +}; + +export const ARMBaseModel: msRest.CompositeMapper = { + serializedName: "ARMBaseModel", + type: { + name: "Composite", + className: "ARMBaseModel", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const Addon: msRest.CompositeMapper = { + serializedName: "Addon", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "kind", + clientName: "kind" + }, + uberParent: "Addon", + className: "Addon", + modelProperties: { + ...ARMBaseModel.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + kind: { + required: true, + serializedName: "kind", + type: { + name: "String" + } + } + } + } +}; + export const Address: msRest.CompositeMapper = { serializedName: "Address", type: { @@ -19,7 +126,6 @@ export const Address: msRest.CompositeMapper = { className: "Address", modelProperties: { addressLine1: { - required: true, serializedName: "addressLine1", type: { name: "String" @@ -38,21 +144,18 @@ export const Address: msRest.CompositeMapper = { } }, postalCode: { - required: true, serializedName: "postalCode", type: { name: "String" } }, city: { - required: true, serializedName: "city", type: { name: "String" } }, state: { - required: true, serializedName: "state", type: { name: "String" @@ -100,37 +203,6 @@ export const AlertErrorDetails: msRest.CompositeMapper = { } }; -export const ARMBaseModel: msRest.CompositeMapper = { - serializedName: "ARMBaseModel", - type: { - name: "Composite", - className: "ARMBaseModel", - modelProperties: { - id: { - readOnly: true, - serializedName: "id", - type: { - name: "String" - } - }, - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - type: { - readOnly: true, - serializedName: "type", - type: { - name: "String" - } - } - } - } -}; - export const Alert: msRest.CompositeMapper = { serializedName: "Alert", type: { @@ -138,6 +210,13 @@ export const Alert: msRest.CompositeMapper = { className: "Alert", modelProperties: { ...ARMBaseModel.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, title: { readOnly: true, serializedName: "properties.title", @@ -197,6 +276,75 @@ export const Alert: msRest.CompositeMapper = { } }; +export const ArcAddon: msRest.CompositeMapper = { + serializedName: "ArcForKubernetes", + type: { + name: "Composite", + polymorphicDiscriminator: Addon.type.polymorphicDiscriminator, + uberParent: "Addon", + className: "ArcAddon", + modelProperties: { + ...Addon.type.modelProperties, + subscriptionId: { + required: true, + serializedName: "properties.subscriptionId", + type: { + name: "String" + } + }, + resourceGroupName: { + required: true, + serializedName: "properties.resourceGroupName", + type: { + name: "String" + } + }, + resourceName: { + required: true, + serializedName: "properties.resourceName", + type: { + name: "String" + } + }, + resourceLocation: { + required: true, + serializedName: "properties.resourceLocation", + type: { + name: "String" + } + }, + version: { + readOnly: true, + serializedName: "properties.version", + type: { + name: "String" + } + }, + hostPlatform: { + readOnly: true, + serializedName: "properties.hostPlatform", + type: { + name: "String" + } + }, + hostPlatformType: { + readOnly: true, + serializedName: "properties.hostPlatformType", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + } + } + } +}; + export const AsymmetricEncryptedSecret: msRest.CompositeMapper = { serializedName: "AsymmetricEncryptedSecret", type: { @@ -299,6 +447,13 @@ export const BandwidthSchedule: msRest.CompositeMapper = { className: "BandwidthSchedule", modelProperties: { ...ARMBaseModel.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, start: { required: true, serializedName: "properties.start", @@ -360,266 +515,278 @@ export const ClientAccessRight: msRest.CompositeMapper = { } }; -export const ContactDetails: msRest.CompositeMapper = { - serializedName: "ContactDetails", +export const SubscriptionRegisteredFeatures: msRest.CompositeMapper = { + serializedName: "SubscriptionRegisteredFeatures", type: { name: "Composite", - className: "ContactDetails", + className: "SubscriptionRegisteredFeatures", modelProperties: { - contactPerson: { - required: true, - serializedName: "contactPerson", - type: { - name: "String" - } - }, - companyName: { - required: true, - serializedName: "companyName", + name: { + serializedName: "name", type: { name: "String" } }, - phone: { - required: true, - serializedName: "phone", + state: { + serializedName: "state", type: { name: "String" } - }, - emailList: { - required: true, - serializedName: "emailList", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } } } } }; -export const RefreshDetails: msRest.CompositeMapper = { - serializedName: "RefreshDetails", +export const EdgeProfileSubscription: msRest.CompositeMapper = { + serializedName: "EdgeProfileSubscription", type: { name: "Composite", - className: "RefreshDetails", + className: "EdgeProfileSubscription", modelProperties: { - inProgressRefreshJobId: { - serializedName: "inProgressRefreshJobId", + registrationId: { + serializedName: "registrationId", type: { name: "String" } }, - lastCompletedRefreshJobTimeInUTC: { - serializedName: "lastCompletedRefreshJobTimeInUTC", + id: { + serializedName: "id", type: { - name: "DateTime" + name: "String" } }, - errorManifestFile: { - serializedName: "errorManifestFile", + state: { + serializedName: "state", type: { name: "String" } }, - lastJob: { - serializedName: "lastJob", + registrationDate: { + serializedName: "registrationDate", type: { name: "String" } - } - } - } -}; - -export const Container: msRest.CompositeMapper = { - serializedName: "Container", - type: { - name: "Composite", - className: "Container", - modelProperties: { - ...ARMBaseModel.type.modelProperties, - containerStatus: { - readOnly: true, - serializedName: "properties.containerStatus", + }, + subscriptionId: { + serializedName: "subscriptionId", type: { name: "String" } }, - dataFormat: { - required: true, - serializedName: "properties.dataFormat", + tenantId: { + serializedName: "properties.tenantId", type: { name: "String" } }, - refreshDetails: { - readOnly: true, - serializedName: "properties.refreshDetails", + locationPlacementId: { + serializedName: "properties.locationPlacementId", type: { - name: "Composite", - className: "RefreshDetails" + name: "String" } }, - createdDateTime: { - readOnly: true, - serializedName: "properties.createdDateTime", + quotaId: { + serializedName: "properties.quotaId", type: { - name: "DateTime" + name: "String" + } + }, + serializedDetails: { + serializedName: "properties.serializedDetails", + type: { + name: "String" + } + }, + registeredFeatures: { + serializedName: "properties.registeredFeatures", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubscriptionRegisteredFeatures" + } + } } } } } }; -export const Sku: msRest.CompositeMapper = { - serializedName: "Sku", +export const EdgeProfile: msRest.CompositeMapper = { + serializedName: "EdgeProfile", type: { name: "Composite", - className: "Sku", + className: "EdgeProfile", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - tier: { - serializedName: "tier", + subscription: { + serializedName: "subscription", type: { - name: "String" + name: "Composite", + className: "EdgeProfileSubscription" } } } } }; -export const DataBoxEdgeDevice: msRest.CompositeMapper = { - serializedName: "DataBoxEdgeDevice", +export const Role: msRest.CompositeMapper = { + serializedName: "Role", type: { name: "Composite", - className: "DataBoxEdgeDevice", + polymorphicDiscriminator: { + serializedName: "kind", + clientName: "kind" + }, + uberParent: "Role", + className: "Role", modelProperties: { ...ARMBaseModel.type.modelProperties, - location: { - required: true, - serializedName: "location", - type: { - name: "String" - } - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } - }, - sku: { - serializedName: "sku", + systemData: { + serializedName: "systemData", type: { name: "Composite", - className: "Sku" - } - }, - etag: { - serializedName: "etag", - type: { - name: "String" + className: "SystemData" } }, - dataBoxEdgeDeviceStatus: { - serializedName: "properties.dataBoxEdgeDeviceStatus", + kind: { + required: true, + serializedName: "kind", type: { name: "String" } - }, - serialNumber: { + } + } + } +}; + +export const CloudEdgeManagementRole: msRest.CompositeMapper = { + serializedName: "CloudEdgeManagement", + type: { + name: "Composite", + polymorphicDiscriminator: Role.type.polymorphicDiscriminator, + uberParent: "Role", + className: "CloudEdgeManagementRole", + modelProperties: { + ...Role.type.modelProperties, + localManagementStatus: { readOnly: true, - serializedName: "properties.serialNumber", + serializedName: "properties.localManagementStatus", type: { name: "String" } }, - description: { - serializedName: "properties.description", + edgeProfile: { + readOnly: true, + serializedName: "properties.edgeProfile", type: { - name: "String" + name: "Composite", + className: "EdgeProfile" } }, - modelDescription: { - serializedName: "properties.modelDescription", + roleStatus: { + required: true, + serializedName: "properties.roleStatus", type: { name: "String" } - }, - deviceType: { + } + } + } +}; + +export const CniConfig: msRest.CompositeMapper = { + serializedName: "CniConfig", + type: { + name: "Composite", + className: "CniConfig", + modelProperties: { + type: { readOnly: true, - serializedName: "properties.deviceType", + serializedName: "type", type: { name: "String" } }, - friendlyName: { - serializedName: "properties.friendlyName", + version: { + readOnly: true, + serializedName: "version", type: { name: "String" } }, - culture: { + podSubnet: { readOnly: true, - serializedName: "properties.culture", + serializedName: "podSubnet", type: { name: "String" } }, - deviceModel: { + serviceSubnet: { readOnly: true, - serializedName: "properties.deviceModel", + serializedName: "serviceSubnet", type: { name: "String" } - }, - deviceSoftwareVersion: { - readOnly: true, - serializedName: "properties.deviceSoftwareVersion", + } + } + } +}; + +export const ComputeResource: msRest.CompositeMapper = { + serializedName: "ComputeResource", + type: { + name: "Composite", + className: "ComputeResource", + modelProperties: { + processorCount: { + required: true, + serializedName: "processorCount", type: { - name: "String" + name: "Number" } }, - deviceLocalCapacity: { - readOnly: true, - serializedName: "properties.deviceLocalCapacity", + memoryInGB: { + required: true, + serializedName: "memoryInGB", type: { name: "Number" } + } + } + } +}; + +export const ContactDetails: msRest.CompositeMapper = { + serializedName: "ContactDetails", + type: { + name: "Composite", + className: "ContactDetails", + modelProperties: { + contactPerson: { + required: true, + serializedName: "contactPerson", + type: { + name: "String" + } }, - timeZone: { - readOnly: true, - serializedName: "properties.timeZone", + companyName: { + required: true, + serializedName: "companyName", type: { name: "String" } }, - deviceHcsVersion: { - readOnly: true, - serializedName: "properties.deviceHcsVersion", + phone: { + required: true, + serializedName: "phone", type: { name: "String" } }, - configuredRoleTypes: { - readOnly: true, - serializedName: "properties.configuredRoleTypes", + emailList: { + required: true, + serializedName: "emailList", type: { name: "Sequence", element: { @@ -628,40 +795,37 @@ export const DataBoxEdgeDevice: msRest.CompositeMapper = { } } } - }, - nodeCount: { - readOnly: true, - serializedName: "properties.nodeCount", - type: { - name: "Number" - } } } } }; -export const DataBoxEdgeDeviceExtendedInfo: msRest.CompositeMapper = { - serializedName: "DataBoxEdgeDeviceExtendedInfo", +export const RefreshDetails: msRest.CompositeMapper = { + serializedName: "RefreshDetails", type: { name: "Composite", - className: "DataBoxEdgeDeviceExtendedInfo", + className: "RefreshDetails", modelProperties: { - ...ARMBaseModel.type.modelProperties, - encryptionKeyThumbprint: { - serializedName: "properties.encryptionKeyThumbprint", + inProgressRefreshJobId: { + serializedName: "inProgressRefreshJobId", type: { name: "String" } }, - encryptionKey: { - serializedName: "properties.encryptionKey", + lastCompletedRefreshJobTimeInUTC: { + serializedName: "lastCompletedRefreshJobTimeInUTC", + type: { + name: "DateTime" + } + }, + errorManifestFile: { + serializedName: "errorManifestFile", type: { name: "String" } }, - resourceKey: { - readOnly: true, - serializedName: "properties.resourceKey", + lastJob: { + serializedName: "lastJob", type: { name: "String" } @@ -670,36 +834,67 @@ export const DataBoxEdgeDeviceExtendedInfo: msRest.CompositeMapper = { } }; -export const DataBoxEdgeDevicePatch: msRest.CompositeMapper = { - serializedName: "DataBoxEdgeDevicePatch", +export const Container: msRest.CompositeMapper = { + serializedName: "Container", type: { name: "Composite", - className: "DataBoxEdgeDevicePatch", + className: "Container", modelProperties: { - tags: { - serializedName: "tags", + ...ARMBaseModel.type.modelProperties, + systemData: { + serializedName: "systemData", type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } + name: "Composite", + className: "SystemData" + } + }, + containerStatus: { + readOnly: true, + serializedName: "properties.containerStatus", + type: { + name: "String" + } + }, + dataFormat: { + required: true, + serializedName: "properties.dataFormat", + type: { + name: "String" + } + }, + refreshDetails: { + readOnly: true, + serializedName: "properties.refreshDetails", + type: { + name: "Composite", + className: "RefreshDetails" + } + }, + createdDateTime: { + readOnly: true, + serializedName: "properties.createdDateTime", + type: { + name: "DateTime" } } } } }; -export const FileSourceInfo: msRest.CompositeMapper = { - serializedName: "FileSourceInfo", +export const Sku: msRest.CompositeMapper = { + serializedName: "Sku", type: { name: "Composite", - className: "FileSourceInfo", + className: "Sku", modelProperties: { - shareId: { - required: true, - serializedName: "shareId", + name: { + serializedName: "name", + type: { + name: "String" + } + }, + tier: { + serializedName: "tier", type: { name: "String" } @@ -708,15 +903,28 @@ export const FileSourceInfo: msRest.CompositeMapper = { } }; -export const RoleSinkInfo: msRest.CompositeMapper = { - serializedName: "RoleSinkInfo", +export const ResourceIdentity: msRest.CompositeMapper = { + serializedName: "ResourceIdentity", type: { name: "Composite", - className: "RoleSinkInfo", + className: "ResourceIdentity", modelProperties: { - roleId: { - required: true, - serializedName: "roleId", + type: { + serializedName: "type", + type: { + name: "String" + } + }, + principalId: { + readOnly: true, + serializedName: "principalId", + type: { + name: "String" + } + }, + tenantId: { + readOnly: true, + serializedName: "tenantId", type: { name: "String" } @@ -725,131 +933,1579 @@ export const RoleSinkInfo: msRest.CompositeMapper = { } }; -export const Trigger: msRest.CompositeMapper = { - serializedName: "Trigger", +export const ResourceMoveDetails: msRest.CompositeMapper = { + serializedName: "ResourceMoveDetails", type: { name: "Composite", - polymorphicDiscriminator: { - serializedName: "kind", - clientName: "kind" - }, - uberParent: "Trigger", - className: "Trigger", + className: "ResourceMoveDetails", modelProperties: { - ...ARMBaseModel.type.modelProperties, - kind: { - required: true, - serializedName: "kind", + operationInProgress: { + serializedName: "operationInProgress", type: { name: "String" } + }, + operationInProgressLockTimeoutInUTC: { + serializedName: "operationInProgressLockTimeoutInUTC", + type: { + name: "DateTime" + } } } } }; -export const FileEventTrigger: msRest.CompositeMapper = { - serializedName: "FileEvent", +export const DataResidency: msRest.CompositeMapper = { + serializedName: "DataResidency", type: { name: "Composite", - polymorphicDiscriminator: Trigger.type.polymorphicDiscriminator, - uberParent: "Trigger", - className: "FileEventTrigger", + className: "DataResidency", modelProperties: { - ...Trigger.type.modelProperties, - sourceInfo: { + type: { + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const DataBoxEdgeDevice: msRest.CompositeMapper = { + serializedName: "DataBoxEdgeDevice", + type: { + name: "Composite", + className: "DataBoxEdgeDevice", + modelProperties: { + ...ARMBaseModel.type.modelProperties, + location: { required: true, - serializedName: "properties.sourceInfo", + serializedName: "location", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + sku: { + serializedName: "sku", type: { name: "Composite", - className: "FileSourceInfo" + className: "Sku" } }, - sinkInfo: { - required: true, - serializedName: "properties.sinkInfo", + etag: { + serializedName: "etag", + type: { + name: "String" + } + }, + identity: { + serializedName: "identity", type: { name: "Composite", - className: "RoleSinkInfo" + className: "ResourceIdentity" } }, - customContextTag: { - serializedName: "properties.customContextTag", + kind: { + serializedName: "kind", + type: { + name: "String" + } + }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + systemData1: { + serializedName: "properties.systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + dataBoxEdgeDeviceStatus: { + serializedName: "properties.dataBoxEdgeDeviceStatus", + type: { + name: "String" + } + }, + serialNumber: { + readOnly: true, + serializedName: "properties.serialNumber", + type: { + name: "String" + } + }, + description: { + readOnly: true, + serializedName: "properties.description", type: { name: "String" } + }, + modelDescription: { + readOnly: true, + serializedName: "properties.modelDescription", + type: { + name: "String" + } + }, + deviceType: { + readOnly: true, + serializedName: "properties.deviceType", + type: { + name: "String" + } + }, + friendlyName: { + readOnly: true, + serializedName: "properties.friendlyName", + type: { + name: "String" + } + }, + culture: { + readOnly: true, + serializedName: "properties.culture", + type: { + name: "String" + } + }, + deviceModel: { + readOnly: true, + serializedName: "properties.deviceModel", + type: { + name: "String" + } + }, + deviceSoftwareVersion: { + readOnly: true, + serializedName: "properties.deviceSoftwareVersion", + type: { + name: "String" + } + }, + deviceLocalCapacity: { + readOnly: true, + serializedName: "properties.deviceLocalCapacity", + type: { + name: "Number" + } + }, + timeZone: { + readOnly: true, + serializedName: "properties.timeZone", + type: { + name: "String" + } + }, + deviceHcsVersion: { + readOnly: true, + serializedName: "properties.deviceHcsVersion", + type: { + name: "String" + } + }, + configuredRoleTypes: { + readOnly: true, + serializedName: "properties.configuredRoleTypes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + nodeCount: { + readOnly: true, + serializedName: "properties.nodeCount", + type: { + name: "Number" + } + }, + resourceMoveDetails: { + readOnly: true, + serializedName: "properties.resourceMoveDetails", + type: { + name: "Composite", + className: "ResourceMoveDetails" + } + }, + edgeProfile: { + readOnly: true, + serializedName: "properties.edgeProfile", + type: { + name: "Composite", + className: "EdgeProfile" + } + }, + dataResidency: { + serializedName: "properties.dataResidency", + type: { + name: "Composite", + className: "DataResidency" + } } } } }; -export const IoTDeviceInfo: msRest.CompositeMapper = { - serializedName: "IoTDeviceInfo", +export const Secret: msRest.CompositeMapper = { + serializedName: "Secret", type: { name: "Composite", - className: "IoTDeviceInfo", + className: "Secret", modelProperties: { - deviceId: { - required: true, - serializedName: "deviceId", + encryptedSecret: { + serializedName: "encryptedSecret", + type: { + name: "Composite", + className: "AsymmetricEncryptedSecret" + } + }, + keyVaultId: { + serializedName: "keyVaultId", + type: { + name: "String" + } + } + } + } +}; + +export const DataBoxEdgeDeviceExtendedInfo: msRest.CompositeMapper = { + serializedName: "DataBoxEdgeDeviceExtendedInfo", + type: { + name: "Composite", + className: "DataBoxEdgeDeviceExtendedInfo", + modelProperties: { + ...ARMBaseModel.type.modelProperties, + encryptionKeyThumbprint: { + serializedName: "properties.encryptionKeyThumbprint", + type: { + name: "String" + } + }, + encryptionKey: { + serializedName: "properties.encryptionKey", + type: { + name: "String" + } + }, + resourceKey: { + readOnly: true, + serializedName: "properties.resourceKey", + type: { + name: "String" + } + }, + clientSecretStoreId: { + serializedName: "properties.clientSecretStoreId", + type: { + name: "String" + } + }, + clientSecretStoreUrl: { + serializedName: "properties.clientSecretStoreUrl", + type: { + name: "String" + } + }, + channelIntegrityKeyName: { + serializedName: "properties.channelIntegrityKeyName", + type: { + name: "String" + } + }, + channelIntegrityKeyVersion: { + serializedName: "properties.channelIntegrityKeyVersion", + type: { + name: "String" + } + }, + keyVaultSyncStatus: { + serializedName: "properties.keyVaultSyncStatus", + type: { + name: "String" + } + }, + deviceSecrets: { + readOnly: true, + serializedName: "properties.deviceSecrets", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "Secret" + } + } + } + } + } + } +}; + +export const DataBoxEdgeDeviceExtendedInfoPatch: msRest.CompositeMapper = { + serializedName: "DataBoxEdgeDeviceExtendedInfoPatch", + type: { + name: "Composite", + className: "DataBoxEdgeDeviceExtendedInfoPatch", + modelProperties: { + clientSecretStoreId: { + serializedName: "clientSecretStoreId", + type: { + name: "String" + } + }, + clientSecretStoreUrl: { + serializedName: "clientSecretStoreUrl", + type: { + name: "String" + } + }, + channelIntegrityKeyName: { + serializedName: "channelIntegrityKeyName", + type: { + name: "String" + } + }, + channelIntegrityKeyVersion: { + serializedName: "channelIntegrityKeyVersion", + type: { + name: "String" + } + }, + syncStatus: { + serializedName: "syncStatus", + type: { + name: "String" + } + } + } + } +}; + +export const EdgeProfileSubscriptionPatch: msRest.CompositeMapper = { + serializedName: "EdgeProfileSubscriptionPatch", + type: { + name: "Composite", + className: "EdgeProfileSubscriptionPatch", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + } + } + } +}; + +export const EdgeProfilePatch: msRest.CompositeMapper = { + serializedName: "EdgeProfilePatch", + type: { + name: "Composite", + className: "EdgeProfilePatch", + modelProperties: { + subscription: { + serializedName: "subscription", + type: { + name: "Composite", + className: "EdgeProfileSubscriptionPatch" + } + } + } + } +}; + +export const DataBoxEdgeDevicePatch: msRest.CompositeMapper = { + serializedName: "DataBoxEdgeDevicePatch", + type: { + name: "Composite", + className: "DataBoxEdgeDevicePatch", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ResourceIdentity" + } + }, + edgeProfile: { + serializedName: "properties.edgeProfile", + type: { + name: "Composite", + className: "EdgeProfilePatch" + } + } + } + } +}; + +export const DataBoxEdgeMoveRequest: msRest.CompositeMapper = { + serializedName: "DataBoxEdgeMoveRequest", + type: { + name: "Composite", + className: "DataBoxEdgeMoveRequest", + modelProperties: { + targetResourceGroup: { + required: true, + serializedName: "targetResourceGroup", + type: { + name: "String" + } + }, + resources: { + required: true, + serializedName: "resources", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const SkuLocationInfo: msRest.CompositeMapper = { + serializedName: "SkuLocationInfo", + type: { + name: "Composite", + className: "SkuLocationInfo", + modelProperties: { + location: { + readOnly: true, + serializedName: "location", + type: { + name: "String" + } + }, + zones: { + readOnly: true, + serializedName: "zones", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + sites: { + readOnly: true, + serializedName: "sites", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const SkuCost: msRest.CompositeMapper = { + serializedName: "SkuCost", + type: { + name: "Composite", + className: "SkuCost", + modelProperties: { + meterId: { + readOnly: true, + serializedName: "meterId", + type: { + name: "String" + } + }, + quantity: { + readOnly: true, + serializedName: "quantity", + type: { + name: "Number" + } + }, + extendedUnit: { + readOnly: true, + serializedName: "extendedUnit", + type: { + name: "String" + } + } + } + } +}; + +export const SkuCapability: msRest.CompositeMapper = { + serializedName: "SkuCapability", + type: { + name: "Composite", + className: "SkuCapability", + modelProperties: { + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + value: { + readOnly: true, + serializedName: "value", + type: { + name: "String" + } + } + } + } +}; + +export const DataBoxEdgeSku: msRest.CompositeMapper = { + serializedName: "DataBoxEdgeSku", + type: { + name: "Composite", + className: "DataBoxEdgeSku", + modelProperties: { + resourceType: { + readOnly: true, + serializedName: "resourceType", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + kind: { + readOnly: true, + serializedName: "kind", + type: { + name: "String" + } + }, + tier: { + readOnly: true, + serializedName: "tier", + type: { + name: "String" + } + }, + size: { + readOnly: true, + serializedName: "size", + type: { + name: "String" + } + }, + family: { + readOnly: true, + serializedName: "family", + type: { + name: "String" + } + }, + locations: { + readOnly: true, + serializedName: "locations", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + apiVersions: { + readOnly: true, + serializedName: "apiVersions", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + locationInfo: { + readOnly: true, + serializedName: "locationInfo", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SkuLocationInfo" + } + } + } + }, + costs: { + readOnly: true, + serializedName: "costs", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SkuCost" + } + } + } + }, + signupOption: { + readOnly: true, + serializedName: "signupOption", + type: { + name: "String" + } + }, + version: { + readOnly: true, + serializedName: "version", + type: { + name: "String" + } + }, + availability: { + readOnly: true, + serializedName: "availability", + type: { + name: "String" + } + }, + shipmentTypes: { + readOnly: true, + serializedName: "shipmentTypes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + capabilities: { + readOnly: true, + serializedName: "capabilities", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SkuCapability" + } + } + } + } + } + } +}; + +export const DCAccessCode: msRest.CompositeMapper = { + serializedName: "DCAccessCode", + type: { + name: "Composite", + className: "DCAccessCode", + modelProperties: { + authCode: { + serializedName: "properties.authCode", + type: { + name: "String" + } + } + } + } +}; + +export const DiagnosticProactiveLogCollectionSettings: msRest.CompositeMapper = { + serializedName: "DiagnosticProactiveLogCollectionSettings", + type: { + name: "Composite", + className: "DiagnosticProactiveLogCollectionSettings", + modelProperties: { + ...ARMBaseModel.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + userConsent: { + required: true, + serializedName: "properties.userConsent", + type: { + name: "String" + } + } + } + } +}; + +export const RemoteSupportSettings: msRest.CompositeMapper = { + serializedName: "RemoteSupportSettings", + type: { + name: "Composite", + className: "RemoteSupportSettings", + modelProperties: { + remoteApplicationType: { + serializedName: "remoteApplicationType", + type: { + name: "String" + } + }, + accessLevel: { + serializedName: "accessLevel", + type: { + name: "String" + } + }, + expirationTimeStampInUTC: { + serializedName: "expirationTimeStampInUTC", + type: { + name: "DateTime" + } + } + } + } +}; + +export const DiagnosticRemoteSupportSettings: msRest.CompositeMapper = { + serializedName: "DiagnosticRemoteSupportSettings", + type: { + name: "Composite", + className: "DiagnosticRemoteSupportSettings", + modelProperties: { + ...ARMBaseModel.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + remoteSupportSettingsList: { + serializedName: "properties.remoteSupportSettingsList", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RemoteSupportSettings" + } + } + } + } + } + } +}; + +export const EtcdInfo: msRest.CompositeMapper = { + serializedName: "EtcdInfo", + type: { + name: "Composite", + className: "EtcdInfo", + modelProperties: { + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + version: { + readOnly: true, + serializedName: "version", + type: { + name: "String" + } + } + } + } +}; + +export const FileSourceInfo: msRest.CompositeMapper = { + serializedName: "FileSourceInfo", + type: { + name: "Composite", + className: "FileSourceInfo", + modelProperties: { + shareId: { + required: true, + serializedName: "shareId", + type: { + name: "String" + } + } + } + } +}; + +export const RoleSinkInfo: msRest.CompositeMapper = { + serializedName: "RoleSinkInfo", + type: { + name: "Composite", + className: "RoleSinkInfo", + modelProperties: { + roleId: { + required: true, + serializedName: "roleId", + type: { + name: "String" + } + } + } + } +}; + +export const Trigger: msRest.CompositeMapper = { + serializedName: "Trigger", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "kind", + clientName: "kind" + }, + uberParent: "Trigger", + className: "Trigger", + modelProperties: { + ...ARMBaseModel.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + kind: { + required: true, + serializedName: "kind", + type: { + name: "String" + } + } + } + } +}; + +export const FileEventTrigger: msRest.CompositeMapper = { + serializedName: "FileEvent", + type: { + name: "Composite", + polymorphicDiscriminator: Trigger.type.polymorphicDiscriminator, + uberParent: "Trigger", + className: "FileEventTrigger", + modelProperties: { + ...Trigger.type.modelProperties, + sourceInfo: { + required: true, + serializedName: "properties.sourceInfo", + type: { + name: "Composite", + className: "FileSourceInfo" + } + }, + sinkInfo: { + required: true, + serializedName: "properties.sinkInfo", + type: { + name: "Composite", + className: "RoleSinkInfo" + } + }, + customContextTag: { + serializedName: "properties.customContextTag", + constraints: { + MaxLength: 192 + }, + type: { + name: "String" + } + } + } + } +}; + +export const GenerateCertResponse: msRest.CompositeMapper = { + serializedName: "GenerateCertResponse", + type: { + name: "Composite", + className: "GenerateCertResponse", + modelProperties: { + publicKey: { + serializedName: "publicKey", + type: { + name: "String" + } + }, + privateKey: { + serializedName: "privateKey", + type: { + name: "String" + } + }, + expiryTimeInUTC: { + serializedName: "expiryTimeInUTC", + type: { + name: "String" + } + } + } + } +}; + +export const ImageRepositoryCredential: msRest.CompositeMapper = { + serializedName: "ImageRepositoryCredential", + type: { + name: "Composite", + className: "ImageRepositoryCredential", + modelProperties: { + imageRepositoryUrl: { + required: true, + serializedName: "imageRepositoryUrl", + type: { + name: "String" + } + }, + userName: { + required: true, + serializedName: "userName", + type: { + name: "String" + } + }, + password: { + serializedName: "password", + type: { + name: "Composite", + className: "AsymmetricEncryptedSecret" + } + } + } + } +}; + +export const IoTDeviceInfo: msRest.CompositeMapper = { + serializedName: "IoTDeviceInfo", + type: { + name: "Composite", + className: "IoTDeviceInfo", + modelProperties: { + deviceId: { + required: true, + serializedName: "deviceId", + type: { + name: "String" + } + }, + ioTHostHub: { + required: true, + serializedName: "ioTHostHub", + type: { + name: "String" + } + }, + ioTHostHubId: { + serializedName: "ioTHostHubId", + type: { + name: "String" + } + }, + authentication: { + serializedName: "authentication", + type: { + name: "Composite", + className: "Authentication" + } + } + } + } +}; + +export const IoTAddon: msRest.CompositeMapper = { + serializedName: "IotEdge", + type: { + name: "Composite", + polymorphicDiscriminator: Addon.type.polymorphicDiscriminator, + uberParent: "Addon", + className: "IoTAddon", + modelProperties: { + ...Addon.type.modelProperties, + ioTDeviceDetails: { + required: true, + serializedName: "properties.ioTDeviceDetails", + type: { + name: "Composite", + className: "IoTDeviceInfo" + } + }, + ioTEdgeDeviceDetails: { + required: true, + serializedName: "properties.ioTEdgeDeviceDetails", + type: { + name: "Composite", + className: "IoTDeviceInfo" + } + }, + version: { + readOnly: true, + serializedName: "properties.version", + type: { + name: "String" + } + }, + hostPlatform: { + readOnly: true, + serializedName: "properties.hostPlatform", + type: { + name: "String" + } + }, + hostPlatformType: { + readOnly: true, + serializedName: "properties.hostPlatformType", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + } + } + } +}; + +export const IoTEdgeAgentInfo: msRest.CompositeMapper = { + serializedName: "IoTEdgeAgentInfo", + type: { + name: "Composite", + className: "IoTEdgeAgentInfo", + modelProperties: { + imageName: { + required: true, + serializedName: "imageName", + type: { + name: "String" + } + }, + tag: { + required: true, + serializedName: "tag", + type: { + name: "String" + } + }, + imageRepository: { + serializedName: "imageRepository", + type: { + name: "Composite", + className: "ImageRepositoryCredential" + } + } + } + } +}; + +export const MountPointMap: msRest.CompositeMapper = { + serializedName: "MountPointMap", + type: { + name: "Composite", + className: "MountPointMap", + modelProperties: { + shareId: { + required: true, + serializedName: "shareId", + type: { + name: "String" + } + }, + roleId: { + readOnly: true, + serializedName: "roleId", + type: { + name: "String" + } + }, + mountPoint: { + readOnly: true, + serializedName: "mountPoint", + type: { + name: "String" + } + }, + mountType: { + readOnly: true, + serializedName: "mountType", + type: { + name: "String" + } + }, + roleType: { + readOnly: true, + serializedName: "roleType", + type: { + name: "String" + } + } + } + } +}; + +export const IoTRole: msRest.CompositeMapper = { + serializedName: "IOT", + type: { + name: "Composite", + polymorphicDiscriminator: Role.type.polymorphicDiscriminator, + uberParent: "Role", + className: "IoTRole", + modelProperties: { + ...Role.type.modelProperties, + hostPlatform: { + required: true, + serializedName: "properties.hostPlatform", + type: { + name: "String" + } + }, + ioTDeviceDetails: { + required: true, + serializedName: "properties.ioTDeviceDetails", + type: { + name: "Composite", + className: "IoTDeviceInfo" + } + }, + ioTEdgeDeviceDetails: { + required: true, + serializedName: "properties.ioTEdgeDeviceDetails", + type: { + name: "Composite", + className: "IoTDeviceInfo" + } + }, + shareMappings: { + serializedName: "properties.shareMappings", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MountPointMap" + } + } + } + }, + ioTEdgeAgentInfo: { + serializedName: "properties.ioTEdgeAgentInfo", + type: { + name: "Composite", + className: "IoTEdgeAgentInfo" + } + }, + hostPlatformType: { + readOnly: true, + serializedName: "properties.hostPlatformType", + type: { + name: "String" + } + }, + computeResource: { + serializedName: "properties.computeResource", + type: { + name: "Composite", + className: "ComputeResource" + } + }, + roleStatus: { + required: true, + serializedName: "properties.roleStatus", + type: { + name: "String" + } + } + } + } +}; + +export const Ipv4Config: msRest.CompositeMapper = { + serializedName: "Ipv4Config", + type: { + name: "Composite", + className: "Ipv4Config", + modelProperties: { + ipAddress: { + readOnly: true, + serializedName: "ipAddress", + type: { + name: "String" + } + }, + subnet: { + readOnly: true, + serializedName: "subnet", + type: { + name: "String" + } + }, + gateway: { + readOnly: true, + serializedName: "gateway", + type: { + name: "String" + } + } + } + } +}; + +export const Ipv6Config: msRest.CompositeMapper = { + serializedName: "Ipv6Config", + type: { + name: "Composite", + className: "Ipv6Config", + modelProperties: { + ipAddress: { + readOnly: true, + serializedName: "ipAddress", + type: { + name: "String" + } + }, + prefixLength: { + readOnly: true, + serializedName: "prefixLength", + type: { + name: "Number" + } + }, + gateway: { + readOnly: true, + serializedName: "gateway", + type: { + name: "String" + } + } + } + } +}; + +export const JobErrorItem: msRest.CompositeMapper = { + serializedName: "JobErrorItem", + type: { + name: "Composite", + className: "JobErrorItem", + modelProperties: { + recommendations: { + readOnly: true, + serializedName: "recommendations", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + code: { + readOnly: true, + serializedName: "code", + type: { + name: "String" + } + }, + message: { + readOnly: true, + serializedName: "message", + type: { + name: "String" + } + } + } + } +}; + +export const JobErrorDetails: msRest.CompositeMapper = { + serializedName: "JobErrorDetails", + type: { + name: "Composite", + className: "JobErrorDetails", + modelProperties: { + errorDetails: { + readOnly: true, + serializedName: "errorDetails", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "JobErrorItem" + } + } + } + }, + code: { + readOnly: true, + serializedName: "code", + type: { + name: "String" + } + }, + message: { + readOnly: true, + serializedName: "message", + type: { + name: "String" + } + } + } + } +}; + +export const UpdateDownloadProgress: msRest.CompositeMapper = { + serializedName: "UpdateDownloadProgress", + type: { + name: "Composite", + className: "UpdateDownloadProgress", + modelProperties: { + downloadPhase: { + readOnly: true, + serializedName: "downloadPhase", + type: { + name: "String" + } + }, + percentComplete: { + readOnly: true, + serializedName: "percentComplete", + type: { + name: "Number" + } + }, + totalBytesToDownload: { + readOnly: true, + serializedName: "totalBytesToDownload", + type: { + name: "Number" + } + }, + totalBytesDownloaded: { + readOnly: true, + serializedName: "totalBytesDownloaded", + type: { + name: "Number" + } + }, + numberOfUpdatesToDownload: { + readOnly: true, + serializedName: "numberOfUpdatesToDownload", + type: { + name: "Number" + } + }, + numberOfUpdatesDownloaded: { + readOnly: true, + serializedName: "numberOfUpdatesDownloaded", + type: { + name: "Number" + } + } + } + } +}; + +export const UpdateInstallProgress: msRest.CompositeMapper = { + serializedName: "UpdateInstallProgress", + type: { + name: "Composite", + className: "UpdateInstallProgress", + modelProperties: { + percentComplete: { + readOnly: true, + serializedName: "percentComplete", + type: { + name: "Number" + } + }, + numberOfUpdatesToInstall: { + readOnly: true, + serializedName: "numberOfUpdatesToInstall", + type: { + name: "Number" + } + }, + numberOfUpdatesInstalled: { + readOnly: true, + serializedName: "numberOfUpdatesInstalled", + type: { + name: "Number" + } + } + } + } +}; + +export const Job: msRest.CompositeMapper = { + serializedName: "Job", + type: { + name: "Composite", + className: "Job", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + status: { + readOnly: true, + serializedName: "status", + type: { + name: "String" + } + }, + startTime: { + readOnly: true, + serializedName: "startTime", + type: { + name: "DateTime" + } + }, + endTime: { + readOnly: true, + serializedName: "endTime", + type: { + name: "DateTime" + } + }, + percentComplete: { + readOnly: true, + serializedName: "percentComplete", type: { - name: "String" + name: "Number" } }, - ioTHostHub: { - required: true, - serializedName: "ioTHostHub", + error: { + readOnly: true, + serializedName: "error", + type: { + name: "Composite", + className: "JobErrorDetails" + } + }, + jobType: { + readOnly: true, + serializedName: "properties.jobType", type: { name: "String" } }, - ioTHostHubId: { - serializedName: "ioTHostHubId", + currentStage: { + readOnly: true, + serializedName: "properties.currentStage", type: { name: "String" } }, - authentication: { - serializedName: "authentication", + downloadProgress: { + readOnly: true, + serializedName: "properties.downloadProgress", type: { name: "Composite", - className: "Authentication" + className: "UpdateDownloadProgress" } - } - } - } -}; - -export const MountPointMap: msRest.CompositeMapper = { - serializedName: "MountPointMap", - type: { - name: "Composite", - className: "MountPointMap", - modelProperties: { - shareId: { - required: true, - serializedName: "shareId", + }, + installProgress: { + readOnly: true, + serializedName: "properties.installProgress", type: { - name: "String" + name: "Composite", + className: "UpdateInstallProgress" } }, - roleId: { + totalRefreshErrors: { readOnly: true, - serializedName: "roleId", + serializedName: "properties.totalRefreshErrors", type: { - name: "String" + name: "Number" } }, - mountPoint: { + errorManifestFile: { readOnly: true, - serializedName: "mountPoint", + serializedName: "properties.errorManifestFile", type: { name: "String" } }, - roleType: { + refreshedEntityId: { readOnly: true, - serializedName: "roleType", + serializedName: "properties.refreshedEntityId", + type: { + name: "String" + } + }, + folder: { + serializedName: "properties.folder", type: { name: "String" } @@ -858,21 +2514,21 @@ export const MountPointMap: msRest.CompositeMapper = { } }; -export const Role: msRest.CompositeMapper = { - serializedName: "Role", +export const KubernetesIPConfiguration: msRest.CompositeMapper = { + serializedName: "KubernetesIPConfiguration", type: { name: "Composite", - polymorphicDiscriminator: { - serializedName: "kind", - clientName: "kind" - }, - uberParent: "Role", - className: "Role", + className: "KubernetesIPConfiguration", modelProperties: { - ...ARMBaseModel.type.modelProperties, - kind: { - required: true, - serializedName: "kind", + port: { + readOnly: true, + serializedName: "port", + type: { + name: "String" + } + }, + ipAddress: { + serializedName: "ipAddress", type: { name: "String" } @@ -881,84 +2537,72 @@ export const Role: msRest.CompositeMapper = { } }; -export const IoTRole: msRest.CompositeMapper = { - serializedName: "IOT", +export const NodeInfo: msRest.CompositeMapper = { + serializedName: "NodeInfo", type: { name: "Composite", - polymorphicDiscriminator: Role.type.polymorphicDiscriminator, - uberParent: "Role", - className: "IoTRole", + className: "NodeInfo", modelProperties: { - ...Role.type.modelProperties, - hostPlatform: { - required: true, - serializedName: "properties.hostPlatform", + name: { + readOnly: true, + serializedName: "name", type: { name: "String" } }, - ioTDeviceDetails: { - required: true, - serializedName: "properties.ioTDeviceDetails", - type: { - name: "Composite", - className: "IoTDeviceInfo" - } - }, - ioTEdgeDeviceDetails: { - required: true, - serializedName: "properties.ioTEdgeDeviceDetails", + type: { + readOnly: true, + serializedName: "type", type: { - name: "Composite", - className: "IoTDeviceInfo" + name: "String" } }, - shareMappings: { - serializedName: "properties.shareMappings", + ipConfiguration: { + serializedName: "ipConfiguration", type: { name: "Sequence", element: { type: { name: "Composite", - className: "MountPointMap" + className: "KubernetesIPConfiguration" } } } - }, - roleStatus: { - required: true, - serializedName: "properties.roleStatus", - type: { - name: "String" - } } } } }; -export const Ipv4Config: msRest.CompositeMapper = { - serializedName: "Ipv4Config", +export const KubernetesClusterInfo: msRest.CompositeMapper = { + serializedName: "KubernetesClusterInfo", type: { name: "Composite", - className: "Ipv4Config", + className: "KubernetesClusterInfo", modelProperties: { - ipAddress: { + etcdInfo: { readOnly: true, - serializedName: "ipAddress", + serializedName: "etcdInfo", type: { - name: "String" + name: "Composite", + className: "EtcdInfo" } }, - subnet: { + nodes: { readOnly: true, - serializedName: "subnet", + serializedName: "nodes", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NodeInfo" + } + } } }, - gateway: { - readOnly: true, - serializedName: "gateway", + version: { + required: true, + serializedName: "version", type: { name: "String" } @@ -967,29 +2611,29 @@ export const Ipv4Config: msRest.CompositeMapper = { } }; -export const Ipv6Config: msRest.CompositeMapper = { - serializedName: "Ipv6Config", +export const KubernetesRoleStorageClassInfo: msRest.CompositeMapper = { + serializedName: "KubernetesRoleStorageClassInfo", type: { name: "Composite", - className: "Ipv6Config", + className: "KubernetesRoleStorageClassInfo", modelProperties: { - ipAddress: { + name: { readOnly: true, - serializedName: "ipAddress", + serializedName: "name", type: { name: "String" } }, - prefixLength: { + type: { readOnly: true, - serializedName: "prefixLength", + serializedName: "type", type: { - name: "Number" + name: "String" } }, - gateway: { + posixCompliant: { readOnly: true, - serializedName: "gateway", + serializedName: "posixCompliant", type: { name: "String" } @@ -998,281 +2642,382 @@ export const Ipv6Config: msRest.CompositeMapper = { } }; -export const JobErrorItem: msRest.CompositeMapper = { - serializedName: "JobErrorItem", +export const KubernetesRoleStorage: msRest.CompositeMapper = { + serializedName: "KubernetesRoleStorage", type: { name: "Composite", - className: "JobErrorItem", + className: "KubernetesRoleStorage", modelProperties: { - recommendations: { + storageClasses: { readOnly: true, - serializedName: "recommendations", + serializedName: "storageClasses", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "KubernetesRoleStorageClassInfo" } } } }, - code: { - readOnly: true, - serializedName: "code", - type: { - name: "String" - } - }, - message: { - readOnly: true, - serializedName: "message", + endpoints: { + serializedName: "endpoints", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MountPointMap" + } + } } } } } }; -export const JobErrorDetails: msRest.CompositeMapper = { - serializedName: "JobErrorDetails", +export const KubernetesRoleCompute: msRest.CompositeMapper = { + serializedName: "KubernetesRoleCompute", type: { name: "Composite", - className: "JobErrorDetails", + className: "KubernetesRoleCompute", modelProperties: { - errorDetails: { - readOnly: true, - serializedName: "errorDetails", + vmProfile: { + required: true, + serializedName: "vmProfile", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JobErrorItem" - } - } + name: "String" } }, - code: { + memoryInBytes: { readOnly: true, - serializedName: "code", + serializedName: "memoryInBytes", type: { - name: "String" + name: "Number" } }, - message: { + processorCount: { readOnly: true, - serializedName: "message", + serializedName: "processorCount", type: { - name: "String" + name: "Number" } } } } }; -export const UpdateDownloadProgress: msRest.CompositeMapper = { - serializedName: "UpdateDownloadProgress", +export const LoadBalancerConfig: msRest.CompositeMapper = { + serializedName: "LoadBalancerConfig", type: { name: "Composite", - className: "UpdateDownloadProgress", + className: "LoadBalancerConfig", modelProperties: { - downloadPhase: { + type: { readOnly: true, - serializedName: "downloadPhase", + serializedName: "type", type: { name: "String" } }, - percentComplete: { - readOnly: true, - serializedName: "percentComplete", - type: { - name: "Number" - } - }, - totalBytesToDownload: { - readOnly: true, - serializedName: "totalBytesToDownload", - type: { - name: "Number" - } - }, - totalBytesDownloaded: { + version: { readOnly: true, - serializedName: "totalBytesDownloaded", + serializedName: "version", type: { - name: "Number" + name: "String" } - }, - numberOfUpdatesToDownload: { + } + } + } +}; + +export const KubernetesRoleNetwork: msRest.CompositeMapper = { + serializedName: "KubernetesRoleNetwork", + type: { + name: "Composite", + className: "KubernetesRoleNetwork", + modelProperties: { + cniConfig: { readOnly: true, - serializedName: "numberOfUpdatesToDownload", + serializedName: "cniConfig", type: { - name: "Number" + name: "Composite", + className: "CniConfig" } }, - numberOfUpdatesDownloaded: { + loadBalancerConfig: { readOnly: true, - serializedName: "numberOfUpdatesDownloaded", + serializedName: "loadBalancerConfig", type: { - name: "Number" + name: "Composite", + className: "LoadBalancerConfig" } } } } }; -export const UpdateInstallProgress: msRest.CompositeMapper = { - serializedName: "UpdateInstallProgress", +export const KubernetesRoleResources: msRest.CompositeMapper = { + serializedName: "KubernetesRoleResources", type: { name: "Composite", - className: "UpdateInstallProgress", + className: "KubernetesRoleResources", modelProperties: { - percentComplete: { - readOnly: true, - serializedName: "percentComplete", + storage: { + serializedName: "storage", type: { - name: "Number" + name: "Composite", + className: "KubernetesRoleStorage" } }, - numberOfUpdatesToInstall: { - readOnly: true, - serializedName: "numberOfUpdatesToInstall", + compute: { + required: true, + serializedName: "compute", type: { - name: "Number" + name: "Composite", + className: "KubernetesRoleCompute" } }, - numberOfUpdatesInstalled: { + network: { readOnly: true, - serializedName: "numberOfUpdatesInstalled", + serializedName: "network", type: { - name: "Number" + name: "Composite", + className: "KubernetesRoleNetwork" } } } } }; -export const Job: msRest.CompositeMapper = { - serializedName: "Job", +export const KubernetesRole: msRest.CompositeMapper = { + serializedName: "Kubernetes", type: { name: "Composite", - className: "Job", + polymorphicDiscriminator: Role.type.polymorphicDiscriminator, + uberParent: "Role", + className: "KubernetesRole", modelProperties: { - id: { - readOnly: true, - serializedName: "id", + ...Role.type.modelProperties, + hostPlatform: { + required: true, + serializedName: "properties.hostPlatform", type: { name: "String" } }, - name: { + provisioningState: { readOnly: true, - serializedName: "name", + serializedName: "properties.provisioningState", type: { name: "String" } }, - type: { + hostPlatformType: { readOnly: true, - serializedName: "type", + serializedName: "properties.hostPlatformType", type: { name: "String" } }, - status: { - readOnly: true, - serializedName: "status", + kubernetesClusterInfo: { + required: true, + serializedName: "properties.kubernetesClusterInfo", type: { - name: "String" + name: "Composite", + className: "KubernetesClusterInfo" } }, - startTime: { - readOnly: true, - serializedName: "startTime", + kubernetesRoleResources: { + required: true, + serializedName: "properties.kubernetesRoleResources", type: { - name: "DateTime" + name: "Composite", + className: "KubernetesRoleResources" } }, - endTime: { - readOnly: true, - serializedName: "endTime", + roleStatus: { + required: true, + serializedName: "properties.roleStatus", type: { - name: "DateTime" + name: "String" } - }, - percentComplete: { - readOnly: true, - serializedName: "percentComplete", + } + } + } +}; + +export const MECRole: msRest.CompositeMapper = { + serializedName: "MEC", + type: { + name: "Composite", + polymorphicDiscriminator: Role.type.polymorphicDiscriminator, + uberParent: "Role", + className: "MECRole", + modelProperties: { + ...Role.type.modelProperties, + connectionString: { + serializedName: "properties.connectionString", type: { - name: "Number" + name: "Composite", + className: "AsymmetricEncryptedSecret" } }, - error: { - readOnly: true, - serializedName: "error", + controllerEndpoint: { + serializedName: "properties.controllerEndpoint", type: { - name: "Composite", - className: "JobErrorDetails" + name: "String" } }, - jobType: { - readOnly: true, - serializedName: "properties.jobType", + resourceUniqueId: { + serializedName: "properties.resourceUniqueId", type: { name: "String" } }, - currentStage: { - readOnly: true, - serializedName: "properties.currentStage", + roleStatus: { + required: true, + serializedName: "properties.roleStatus", + type: { + name: "String" + } + } + } + } +}; + +export const MetricDimension: msRest.CompositeMapper = { + serializedName: "MetricDimension", + type: { + name: "Composite", + className: "MetricDimension", + modelProperties: { + sourceType: { + required: true, + serializedName: "sourceType", type: { name: "String" } }, - downloadProgress: { - readOnly: true, - serializedName: "properties.downloadProgress", + sourceName: { + required: true, + serializedName: "sourceName", type: { - name: "Composite", - className: "UpdateDownloadProgress" + name: "String" + } + } + } + } +}; + +export const MetricCounter: msRest.CompositeMapper = { + serializedName: "MetricCounter", + type: { + name: "Composite", + className: "MetricCounter", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" } }, - installProgress: { - readOnly: true, - serializedName: "properties.installProgress", + instance: { + serializedName: "instance", type: { - name: "Composite", - className: "UpdateInstallProgress" + name: "String" } }, - totalRefreshErrors: { - readOnly: true, - serializedName: "properties.totalRefreshErrors", + dimensionFilter: { + serializedName: "dimensionFilter", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetricDimension" + } + } } }, - errorManifestFile: { - readOnly: true, - serializedName: "properties.errorManifestFile", + additionalDimensions: { + serializedName: "additionalDimensions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetricDimension" + } + } + } + } + } + } +}; + +export const MetricCounterSet: msRest.CompositeMapper = { + serializedName: "MetricCounterSet", + type: { + name: "Composite", + className: "MetricCounterSet", + modelProperties: { + counters: { + required: true, + serializedName: "counters", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetricCounter" + } + } + } + } + } + } +}; + +export const MetricConfiguration: msRest.CompositeMapper = { + serializedName: "MetricConfiguration", + type: { + name: "Composite", + className: "MetricConfiguration", + modelProperties: { + resourceId: { + required: true, + serializedName: "resourceId", type: { name: "String" } }, - refreshedEntityId: { - readOnly: true, - serializedName: "properties.refreshedEntityId", + mdmAccount: { + serializedName: "mdmAccount", type: { name: "String" } }, - folder: { - serializedName: "properties.folder", + metricNameSpace: { + serializedName: "metricNameSpace", type: { name: "String" } + }, + counterSets: { + required: true, + serializedName: "counterSets", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetricCounterSet" + } + } + } } } } @@ -1398,6 +3143,37 @@ export const MetricSpecificationV1: msRest.CompositeMapper = { } }; +export const MonitoringMetricConfiguration: msRest.CompositeMapper = { + serializedName: "MonitoringMetricConfiguration", + type: { + name: "Composite", + className: "MonitoringMetricConfiguration", + modelProperties: { + ...ARMBaseModel.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + metricConfigurations: { + required: true, + serializedName: "properties.metricConfigurations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetricConfiguration" + } + } + } + } + } + } +}; + export const NetworkAdapterPosition: msRest.CompositeMapper = { serializedName: "NetworkAdapterPosition", type: { @@ -1550,6 +3326,13 @@ export const NetworkSettings: msRest.CompositeMapper = { className: "NetworkSettings", modelProperties: { ...ARMBaseModel.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, networkAdapters: { readOnly: true, serializedName: "properties.networkAdapters", @@ -1695,6 +3478,12 @@ export const Operation: msRest.CompositeMapper = { name: "String" } }, + isDataAction: { + serializedName: "isDataAction", + type: { + name: "Boolean" + } + }, display: { serializedName: "display", type: { @@ -1719,76 +3508,84 @@ export const Operation: msRest.CompositeMapper = { } }; -export const OrderStatus: msRest.CompositeMapper = { - serializedName: "OrderStatus", +export const TrackingInfo: msRest.CompositeMapper = { + serializedName: "TrackingInfo", type: { name: "Composite", - className: "OrderStatus", + className: "TrackingInfo", modelProperties: { - status: { - required: true, - serializedName: "status", + serialNumber: { + serializedName: "serialNumber", type: { name: "String" } }, - updateDateTime: { - readOnly: true, - serializedName: "updateDateTime", + carrierName: { + serializedName: "carrierName", type: { - name: "DateTime" + name: "String" } }, - comments: { - serializedName: "comments", + trackingId: { + serializedName: "trackingId", type: { name: "String" } }, - additionalOrderDetails: { - readOnly: true, - serializedName: "additionalOrderDetails", + trackingUrl: { + serializedName: "trackingUrl", type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } + name: "String" } } } } }; -export const TrackingInfo: msRest.CompositeMapper = { - serializedName: "TrackingInfo", +export const OrderStatus: msRest.CompositeMapper = { + serializedName: "OrderStatus", type: { name: "Composite", - className: "TrackingInfo", + className: "OrderStatus", modelProperties: { - serialNumber: { - serializedName: "serialNumber", + status: { + required: true, + serializedName: "status", type: { name: "String" } }, - carrierName: { - serializedName: "carrierName", + updateDateTime: { + readOnly: true, + serializedName: "updateDateTime", type: { - name: "String" + name: "DateTime" } }, - trackingId: { - serializedName: "trackingId", + comments: { + serializedName: "comments", type: { name: "String" } }, - trackingUrl: { - serializedName: "trackingUrl", + trackingInformation: { + readOnly: true, + serializedName: "trackingInformation", type: { - name: "String" + name: "Composite", + className: "TrackingInfo" + } + }, + additionalOrderDetails: { + readOnly: true, + serializedName: "additionalOrderDetails", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } } } } @@ -1802,6 +3599,13 @@ export const Order: msRest.CompositeMapper = { className: "Order", modelProperties: { ...ARMBaseModel.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, contactInformation: { required: true, serializedName: "properties.contactInformation", @@ -1811,7 +3615,6 @@ export const Order: msRest.CompositeMapper = { } }, shippingAddress: { - required: true, serializedName: "properties.shippingAddress", type: { name: "Composite", @@ -1819,6 +3622,7 @@ export const Order: msRest.CompositeMapper = { } }, currentStatus: { + readOnly: true, serializedName: "properties.currentStatus", type: { name: "Composite", @@ -1870,6 +3674,12 @@ export const Order: msRest.CompositeMapper = { } } } + }, + shipmentType: { + serializedName: "properties.shipmentType", + type: { + name: "String" + } } } } @@ -1932,6 +3742,9 @@ export const PeriodicTimerEventTrigger: msRest.CompositeMapper = { }, customContextTag: { serializedName: "properties.customContextTag", + constraints: { + MaxLength: 192 + }, type: { name: "String" } @@ -1940,84 +3753,53 @@ export const PeriodicTimerEventTrigger: msRest.CompositeMapper = { } }; -export const SkuLocationInfo: msRest.CompositeMapper = { - serializedName: "SkuLocationInfo", +export const SkuInformation: msRest.CompositeMapper = { + serializedName: "SkuInformation", type: { name: "Composite", - className: "SkuLocationInfo", + className: "SkuInformation", modelProperties: { - location: { + name: { readOnly: true, - serializedName: "location", + serializedName: "name", type: { name: "String" } }, - zones: { + tier: { readOnly: true, - serializedName: "zones", + serializedName: "tier", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - sites: { - readOnly: true, - serializedName: "sites", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const SkuCost: msRest.CompositeMapper = { - serializedName: "SkuCost", - type: { - name: "Composite", - className: "SkuCost", - modelProperties: { - meterId: { + kind: { readOnly: true, - serializedName: "meterId", + serializedName: "kind", type: { name: "String" } }, - quantity: { + family: { readOnly: true, - serializedName: "quantity", + serializedName: "family", type: { - name: "Number" + name: "String" } }, - extendedUnit: { + costs: { readOnly: true, - serializedName: "extendedUnit", + serializedName: "costs", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SkuCost" + } + } } - } - } - } -}; - -export const SkuRestrictionInfo: msRest.CompositeMapper = { - serializedName: "SkuRestrictionInfo", - type: { - name: "Composite", - className: "SkuRestrictionInfo", - modelProperties: { + }, locations: { readOnly: true, serializedName: "locations", @@ -2030,38 +3812,22 @@ export const SkuRestrictionInfo: msRest.CompositeMapper = { } } }, - zones: { + locationInfo: { readOnly: true, - serializedName: "zones", + serializedName: "locationInfo", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "SkuLocationInfo" } } } - } - } - } -}; - -export const SkuRestriction: msRest.CompositeMapper = { - serializedName: "SkuRestriction", - type: { - name: "Composite", - className: "SkuRestriction", - modelProperties: { - type: { - readOnly: true, - serializedName: "type", - type: { - name: "String" - } }, - values: { + requiredQuotaIds: { readOnly: true, - serializedName: "values", + serializedName: "requiredQuotaIds", type: { name: "Sequence", element: { @@ -2071,19 +3837,16 @@ export const SkuRestriction: msRest.CompositeMapper = { } } }, - reasonCode: { - readOnly: true, - serializedName: "reasonCode", - type: { - name: "String" - } - }, - restrictionInfo: { + requiredFeatures: { readOnly: true, - serializedName: "restrictionInfo", + serializedName: "requiredFeatures", type: { - name: "Composite", - className: "SkuRestrictionInfo" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } @@ -2103,93 +3866,15 @@ export const ResourceTypeSku: msRest.CompositeMapper = { name: "String" } }, - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - kind: { - readOnly: true, - serializedName: "kind", - type: { - name: "String" - } - }, - tier: { - readOnly: true, - serializedName: "tier", - type: { - name: "String" - } - }, - family: { - readOnly: true, - serializedName: "family", - type: { - name: "String" - } - }, - locations: { - readOnly: true, - serializedName: "locations", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - apiVersions: { - readOnly: true, - serializedName: "apiVersions", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - locationInfo: { - readOnly: true, - serializedName: "locationInfo", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SkuLocationInfo" - } - } - } - }, - costs: { - readOnly: true, - serializedName: "costs", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SkuCost" - } - } - } - }, - restrictions: { + skus: { readOnly: true, - serializedName: "restrictions", + serializedName: "skus", type: { name: "Sequence", element: { type: { name: "Composite", - className: "SkuRestriction" + className: "SkuInformation" } } } @@ -2248,6 +3933,13 @@ export const Share: msRest.CompositeMapper = { className: "Share", modelProperties: { ...ARMBaseModel.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, description: { serializedName: "properties.description", type: { @@ -2342,16 +4034,46 @@ export const ShareAccessRight: msRest.CompositeMapper = { name: "Composite", className: "ShareAccessRight", modelProperties: { - shareId: { - required: true, - serializedName: "shareId", + shareId: { + required: true, + serializedName: "shareId", + type: { + name: "String" + } + }, + accessType: { + required: true, + serializedName: "accessType", + type: { + name: "String" + } + } + } + } +}; + +export const SkuInformationList: msRest.CompositeMapper = { + serializedName: "SkuInformationList", + type: { + name: "Composite", + className: "SkuInformationList", + modelProperties: { + value: { + readOnly: true, + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceTypeSku" + } + } } }, - accessType: { - required: true, - serializedName: "accessType", + nextLink: { + readOnly: true, + serializedName: "nextLink", type: { name: "String" } @@ -2367,6 +4089,13 @@ export const StorageAccount: msRest.CompositeMapper = { className: "StorageAccount", modelProperties: { ...ARMBaseModel.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, description: { serializedName: "properties.description", type: { @@ -2380,6 +4109,7 @@ export const StorageAccount: msRest.CompositeMapper = { } }, dataPolicy: { + required: true, serializedName: "properties.dataPolicy", type: { name: "String" @@ -2416,6 +4146,13 @@ export const StorageAccountCredential: msRest.CompositeMapper = { className: "StorageAccountCredential", modelProperties: { ...ARMBaseModel.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, alias: { required: true, serializedName: "properties.alias", @@ -2472,6 +4209,99 @@ export const StorageAccountCredential: msRest.CompositeMapper = { } }; +export const TriggerSupportPackageRequest: msRest.CompositeMapper = { + serializedName: "TriggerSupportPackageRequest", + type: { + name: "Composite", + className: "TriggerSupportPackageRequest", + modelProperties: { + ...ARMBaseModel.type.modelProperties, + minimumTimeStamp: { + serializedName: "properties.minimumTimeStamp", + type: { + name: "DateTime" + } + }, + maximumTimeStamp: { + serializedName: "properties.maximumTimeStamp", + type: { + name: "DateTime" + } + }, + include: { + serializedName: "properties.include", + type: { + name: "String" + } + } + } + } +}; + +export const UpdateDetails: msRest.CompositeMapper = { + serializedName: "UpdateDetails", + type: { + name: "Composite", + className: "UpdateDetails", + modelProperties: { + updateTitle: { + serializedName: "updateTitle", + type: { + name: "String" + } + }, + updateSize: { + serializedName: "updateSize", + type: { + name: "Number" + } + }, + updateType: { + serializedName: "updateType", + type: { + name: "String" + } + }, + targetVersion: { + serializedName: "targetVersion", + type: { + name: "String" + } + }, + friendlyVersionNumber: { + serializedName: "friendlyVersionNumber", + type: { + name: "String" + } + }, + estimatedInstallTimeInMins: { + serializedName: "estimatedInstallTimeInMins", + type: { + name: "Number" + } + }, + rebootBehavior: { + serializedName: "rebootBehavior", + type: { + name: "String" + } + }, + installationImpact: { + serializedName: "installationImpact", + type: { + name: "String" + } + }, + status: { + serializedName: "status", + type: { + name: "String" + } + } + } + } +}; + export const UpdateSummary: msRest.CompositeMapper = { serializedName: "UpdateSummary", type: { @@ -2479,6 +4309,13 @@ export const UpdateSummary: msRest.CompositeMapper = { className: "UpdateSummary", modelProperties: { ...ARMBaseModel.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, deviceVersionNumber: { serializedName: "properties.deviceVersionNumber", type: { @@ -2503,6 +4340,12 @@ export const UpdateSummary: msRest.CompositeMapper = { name: "DateTime" } }, + lastSuccessfulScanJobTime: { + serializedName: "properties.lastSuccessfulScanJobTime", + type: { + name: "DateTime" + } + }, lastCompletedDownloadJobDateTime: { readOnly: true, serializedName: "properties.lastCompletedDownloadJobDateTime", @@ -2510,6 +4353,26 @@ export const UpdateSummary: msRest.CompositeMapper = { name: "DateTime" } }, + lastCompletedDownloadJobId: { + readOnly: true, + serializedName: "properties.lastCompletedDownloadJobId", + type: { + name: "String" + } + }, + lastDownloadJobStatus: { + readOnly: true, + serializedName: "properties.lastDownloadJobStatus", + type: { + name: "String" + } + }, + lastSuccessfulInstallJobDateTime: { + serializedName: "properties.lastSuccessfulInstallJobDateTime", + type: { + name: "DateTime" + } + }, lastCompletedInstallJobDateTime: { readOnly: true, serializedName: "properties.lastCompletedInstallJobDateTime", @@ -2517,6 +4380,20 @@ export const UpdateSummary: msRest.CompositeMapper = { name: "DateTime" } }, + lastCompletedInstallJobId: { + readOnly: true, + serializedName: "properties.lastCompletedInstallJobId", + type: { + name: "String" + } + }, + lastInstallJobStatus: { + readOnly: true, + serializedName: "properties.lastInstallJobStatus", + type: { + name: "String" + } + }, totalNumberOfUpdatesAvailable: { readOnly: true, serializedName: "properties.totalNumberOfUpdatesAvailable", @@ -2592,12 +4469,32 @@ export const UpdateSummary: msRest.CompositeMapper = { } } }, + updates: { + readOnly: true, + serializedName: "properties.updates", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UpdateDetails" + } + } + } + }, totalUpdateSizeInBytes: { readOnly: true, serializedName: "properties.totalUpdateSizeInBytes", type: { name: "Number" } + }, + totalTimeInMinutes: { + readOnly: true, + serializedName: "properties.totalTimeInMinutes", + type: { + name: "Number" + } } } } @@ -2698,6 +4595,13 @@ export const User: msRest.CompositeMapper = { className: "User", modelProperties: { ...ARMBaseModel.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, encryptedPassword: { serializedName: "properties.encryptedPassword", type: { @@ -2706,6 +4610,7 @@ export const User: msRest.CompositeMapper = { } }, shareAccessRights: { + readOnly: true, serializedName: "properties.shareAccessRights", type: { name: "Sequence", @@ -2757,6 +4662,36 @@ export const OperationsList: msRest.CompositeMapper = { } }; +export const DataBoxEdgeSkuList: msRest.CompositeMapper = { + serializedName: "DataBoxEdgeSkuList", + type: { + name: "Composite", + className: "DataBoxEdgeSkuList", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataBoxEdgeSku" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const DataBoxEdgeDeviceList: msRest.CompositeMapper = { serializedName: "DataBoxEdgeDeviceList", type: { @@ -2865,6 +4800,13 @@ export const NodeList: msRest.CompositeMapper = { } } } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } } } } @@ -2930,6 +4872,66 @@ export const RoleList: msRest.CompositeMapper = { } }; +export const AddonList: msRest.CompositeMapper = { + serializedName: "AddonList", + type: { + name: "Composite", + className: "AddonList", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Addon" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const MonitoringMetricConfigurationList: msRest.CompositeMapper = { + serializedName: "MonitoringMetricConfigurationList", + type: { + name: "Composite", + className: "MonitoringMetricConfigurationList", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MonitoringMetricConfiguration" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const ShareList: msRest.CompositeMapper = { serializedName: "ShareList", type: { @@ -3110,32 +5112,15 @@ export const UserList: msRest.CompositeMapper = { } }; -export const SkuInformationList: msRest.CompositeMapper = { - serializedName: "SkuInformationList", - type: { - name: "Composite", - className: "SkuInformationList", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceTypeSku" - } - } - } - } - } - } -}; - export const discriminators = { + 'Addon' : Addon, + 'Addon.ArcForKubernetes' : ArcAddon, + 'Role.CloudEdgeManagement' : CloudEdgeManagementRole, 'Trigger.FileEvent' : FileEventTrigger, + 'Addon.IotEdge' : IoTAddon, 'Role.IOT' : IoTRole, + 'Role.Kubernetes' : KubernetesRole, + 'Role.MEC' : MECRole, 'Trigger.PeriodicTimerEvent' : PeriodicTimerEventTrigger, 'Role' : Role, 'Trigger' : Trigger diff --git a/sdk/databoxedge/arm-databoxedge/src/models/monitoringConfigMappers.ts b/sdk/databoxedge/arm-databoxedge/src/models/monitoringConfigMappers.ts new file mode 100644 index 000000000000..cedeaa7c93e4 --- /dev/null +++ b/sdk/databoxedge/arm-databoxedge/src/models/monitoringConfigMappers.ts @@ -0,0 +1,95 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + Addon, + Address, + Alert, + AlertErrorDetails, + ArcAddon, + ARMBaseModel, + AsymmetricEncryptedSecret, + Authentication, + AzureContainerInfo, + BandwidthSchedule, + BaseResource, + ClientAccessRight, + CloudEdgeManagementRole, + CloudError, + CniConfig, + ComputeResource, + ContactDetails, + Container, + DataBoxEdgeDevice, + DataBoxEdgeDeviceExtendedInfo, + DataResidency, + DiagnosticProactiveLogCollectionSettings, + DiagnosticRemoteSupportSettings, + EdgeProfile, + EdgeProfileSubscription, + EtcdInfo, + FileEventTrigger, + FileSourceInfo, + ImageRepositoryCredential, + IoTAddon, + IoTDeviceInfo, + IoTEdgeAgentInfo, + IoTRole, + Ipv4Config, + Ipv6Config, + KubernetesClusterInfo, + KubernetesIPConfiguration, + KubernetesRole, + KubernetesRoleCompute, + KubernetesRoleNetwork, + KubernetesRoleResources, + KubernetesRoleStorage, + KubernetesRoleStorageClassInfo, + LoadBalancerConfig, + MECRole, + MetricConfiguration, + MetricCounter, + MetricCounterSet, + MetricDimension, + MonitoringMetricConfiguration, + MonitoringMetricConfigurationList, + MountPointMap, + NetworkAdapter, + NetworkAdapterPosition, + NetworkSettings, + Node, + NodeInfo, + Order, + OrderStatus, + PeriodicTimerEventTrigger, + PeriodicTimerSourceInfo, + RefreshDetails, + RemoteSupportSettings, + ResourceIdentity, + ResourceMoveDetails, + Role, + RoleSinkInfo, + Secret, + SecuritySettings, + Share, + ShareAccessRight, + Sku, + StorageAccount, + StorageAccountCredential, + SubscriptionRegisteredFeatures, + SymmetricKey, + SystemData, + TrackingInfo, + Trigger, + TriggerSupportPackageRequest, + UpdateDetails, + UpdateSummary, + User, + UserAccessRight +} from "../models/mappers"; diff --git a/sdk/databoxedge/arm-databoxedge/src/models/nodesMappers.ts b/sdk/databoxedge/arm-databoxedge/src/models/nodesMappers.ts index f03b310a1e46..70ea8d135aef 100644 --- a/sdk/databoxedge/arm-databoxedge/src/models/nodesMappers.ts +++ b/sdk/databoxedge/arm-databoxedge/src/models/nodesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,9 +8,11 @@ export { discriminators, + Addon, Address, Alert, AlertErrorDetails, + ArcAddon, ARMBaseModel, AsymmetricEncryptedSecret, Authentication, @@ -18,39 +20,75 @@ export { BandwidthSchedule, BaseResource, ClientAccessRight, + CloudEdgeManagementRole, CloudError, + CniConfig, + ComputeResource, ContactDetails, Container, DataBoxEdgeDevice, DataBoxEdgeDeviceExtendedInfo, + DataResidency, + DiagnosticProactiveLogCollectionSettings, + DiagnosticRemoteSupportSettings, + EdgeProfile, + EdgeProfileSubscription, + EtcdInfo, FileEventTrigger, FileSourceInfo, + ImageRepositoryCredential, + IoTAddon, IoTDeviceInfo, + IoTEdgeAgentInfo, IoTRole, Ipv4Config, Ipv6Config, + KubernetesClusterInfo, + KubernetesIPConfiguration, + KubernetesRole, + KubernetesRoleCompute, + KubernetesRoleNetwork, + KubernetesRoleResources, + KubernetesRoleStorage, + KubernetesRoleStorageClassInfo, + LoadBalancerConfig, + MECRole, + MetricConfiguration, + MetricCounter, + MetricCounterSet, + MetricDimension, + MonitoringMetricConfiguration, MountPointMap, NetworkAdapter, NetworkAdapterPosition, NetworkSettings, Node, + NodeInfo, NodeList, Order, OrderStatus, PeriodicTimerEventTrigger, PeriodicTimerSourceInfo, RefreshDetails, + RemoteSupportSettings, + ResourceIdentity, + ResourceMoveDetails, Role, RoleSinkInfo, + Secret, SecuritySettings, Share, ShareAccessRight, Sku, StorageAccount, StorageAccountCredential, + SubscriptionRegisteredFeatures, SymmetricKey, + SystemData, TrackingInfo, Trigger, + TriggerSupportPackageRequest, + UpdateDetails, UpdateSummary, User, UserAccessRight diff --git a/sdk/databoxedge/arm-databoxedge/src/models/operationsMappers.ts b/sdk/databoxedge/arm-databoxedge/src/models/operationsMappers.ts index af4a5e3a1bf6..2848e6d84029 100644 --- a/sdk/databoxedge/arm-databoxedge/src/models/operationsMappers.ts +++ b/sdk/databoxedge/arm-databoxedge/src/models/operationsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/databoxedge/arm-databoxedge/src/models/operationsStatusMappers.ts b/sdk/databoxedge/arm-databoxedge/src/models/operationsStatusMappers.ts index 0f195ce2be53..18867e1da432 100644 --- a/sdk/databoxedge/arm-databoxedge/src/models/operationsStatusMappers.ts +++ b/sdk/databoxedge/arm-databoxedge/src/models/operationsStatusMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/databoxedge/arm-databoxedge/src/models/ordersMappers.ts b/sdk/databoxedge/arm-databoxedge/src/models/ordersMappers.ts index f11141788b6e..bf45a7b05995 100644 --- a/sdk/databoxedge/arm-databoxedge/src/models/ordersMappers.ts +++ b/sdk/databoxedge/arm-databoxedge/src/models/ordersMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,9 +8,11 @@ export { discriminators, + Addon, Address, Alert, AlertErrorDetails, + ArcAddon, ARMBaseModel, AsymmetricEncryptedSecret, Authentication, @@ -18,39 +20,76 @@ export { BandwidthSchedule, BaseResource, ClientAccessRight, + CloudEdgeManagementRole, CloudError, + CniConfig, + ComputeResource, ContactDetails, Container, DataBoxEdgeDevice, DataBoxEdgeDeviceExtendedInfo, + DataResidency, + DCAccessCode, + DiagnosticProactiveLogCollectionSettings, + DiagnosticRemoteSupportSettings, + EdgeProfile, + EdgeProfileSubscription, + EtcdInfo, FileEventTrigger, FileSourceInfo, + ImageRepositoryCredential, + IoTAddon, IoTDeviceInfo, + IoTEdgeAgentInfo, IoTRole, Ipv4Config, Ipv6Config, + KubernetesClusterInfo, + KubernetesIPConfiguration, + KubernetesRole, + KubernetesRoleCompute, + KubernetesRoleNetwork, + KubernetesRoleResources, + KubernetesRoleStorage, + KubernetesRoleStorageClassInfo, + LoadBalancerConfig, + MECRole, + MetricConfiguration, + MetricCounter, + MetricCounterSet, + MetricDimension, + MonitoringMetricConfiguration, MountPointMap, NetworkAdapter, NetworkAdapterPosition, NetworkSettings, Node, + NodeInfo, Order, OrderList, OrderStatus, PeriodicTimerEventTrigger, PeriodicTimerSourceInfo, RefreshDetails, + RemoteSupportSettings, + ResourceIdentity, + ResourceMoveDetails, Role, RoleSinkInfo, + Secret, SecuritySettings, Share, ShareAccessRight, Sku, StorageAccount, StorageAccountCredential, + SubscriptionRegisteredFeatures, SymmetricKey, + SystemData, TrackingInfo, Trigger, + TriggerSupportPackageRequest, + UpdateDetails, UpdateSummary, User, UserAccessRight diff --git a/sdk/databoxedge/arm-databoxedge/src/models/parameters.ts b/sdk/databoxedge/arm-databoxedge/src/models/parameters.ts index 4dbe31a0c020..32470802a5f6 100644 --- a/sdk/databoxedge/arm-databoxedge/src/models/parameters.ts +++ b/sdk/databoxedge/arm-databoxedge/src/models/parameters.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -20,6 +19,16 @@ export const acceptLanguage: msRest.OperationParameter = { } } }; +export const addonName: msRest.OperationURLParameter = { + parameterPath: "addonName", + mapper: { + required: true, + serializedName: "addonName", + type: { + name: "String" + } + } +}; export const apiVersion: msRest.OperationQueryParameter = { parameterPath: "apiVersion", mapper: { @@ -105,6 +114,16 @@ export const resourceGroupName: msRest.OperationURLParameter = { } } }; +export const roleName: msRest.OperationURLParameter = { + parameterPath: "roleName", + mapper: { + required: true, + serializedName: "roleName", + type: { + name: "String" + } + } +}; export const storageAccountName: msRest.OperationURLParameter = { parameterPath: "storageAccountName", mapper: { diff --git a/sdk/databoxedge/arm-databoxedge/src/models/rolesMappers.ts b/sdk/databoxedge/arm-databoxedge/src/models/rolesMappers.ts index cba36ea7003a..870c93b81ac7 100644 --- a/sdk/databoxedge/arm-databoxedge/src/models/rolesMappers.ts +++ b/sdk/databoxedge/arm-databoxedge/src/models/rolesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,9 +8,11 @@ export { discriminators, + Addon, Address, Alert, AlertErrorDetails, + ArcAddon, ARMBaseModel, AsymmetricEncryptedSecret, Authentication, @@ -18,39 +20,75 @@ export { BandwidthSchedule, BaseResource, ClientAccessRight, + CloudEdgeManagementRole, CloudError, + CniConfig, + ComputeResource, ContactDetails, Container, DataBoxEdgeDevice, DataBoxEdgeDeviceExtendedInfo, + DataResidency, + DiagnosticProactiveLogCollectionSettings, + DiagnosticRemoteSupportSettings, + EdgeProfile, + EdgeProfileSubscription, + EtcdInfo, FileEventTrigger, FileSourceInfo, + ImageRepositoryCredential, + IoTAddon, IoTDeviceInfo, + IoTEdgeAgentInfo, IoTRole, Ipv4Config, Ipv6Config, + KubernetesClusterInfo, + KubernetesIPConfiguration, + KubernetesRole, + KubernetesRoleCompute, + KubernetesRoleNetwork, + KubernetesRoleResources, + KubernetesRoleStorage, + KubernetesRoleStorageClassInfo, + LoadBalancerConfig, + MECRole, + MetricConfiguration, + MetricCounter, + MetricCounterSet, + MetricDimension, + MonitoringMetricConfiguration, MountPointMap, NetworkAdapter, NetworkAdapterPosition, NetworkSettings, Node, + NodeInfo, Order, OrderStatus, PeriodicTimerEventTrigger, PeriodicTimerSourceInfo, RefreshDetails, + RemoteSupportSettings, + ResourceIdentity, + ResourceMoveDetails, Role, RoleList, RoleSinkInfo, + Secret, SecuritySettings, Share, ShareAccessRight, Sku, StorageAccount, StorageAccountCredential, + SubscriptionRegisteredFeatures, SymmetricKey, + SystemData, TrackingInfo, Trigger, + TriggerSupportPackageRequest, + UpdateDetails, UpdateSummary, User, UserAccessRight diff --git a/sdk/databoxedge/arm-databoxedge/src/models/sharesMappers.ts b/sdk/databoxedge/arm-databoxedge/src/models/sharesMappers.ts index 603f3c72edac..de180c323b21 100644 --- a/sdk/databoxedge/arm-databoxedge/src/models/sharesMappers.ts +++ b/sdk/databoxedge/arm-databoxedge/src/models/sharesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,9 +8,11 @@ export { discriminators, + Addon, Address, Alert, AlertErrorDetails, + ArcAddon, ARMBaseModel, AsymmetricEncryptedSecret, Authentication, @@ -18,29 +20,61 @@ export { BandwidthSchedule, BaseResource, ClientAccessRight, + CloudEdgeManagementRole, CloudError, + CniConfig, + ComputeResource, ContactDetails, Container, DataBoxEdgeDevice, DataBoxEdgeDeviceExtendedInfo, + DataResidency, + DiagnosticProactiveLogCollectionSettings, + DiagnosticRemoteSupportSettings, + EdgeProfile, + EdgeProfileSubscription, + EtcdInfo, FileEventTrigger, FileSourceInfo, + ImageRepositoryCredential, + IoTAddon, IoTDeviceInfo, + IoTEdgeAgentInfo, IoTRole, Ipv4Config, Ipv6Config, + KubernetesClusterInfo, + KubernetesIPConfiguration, + KubernetesRole, + KubernetesRoleCompute, + KubernetesRoleNetwork, + KubernetesRoleResources, + KubernetesRoleStorage, + KubernetesRoleStorageClassInfo, + LoadBalancerConfig, + MECRole, + MetricConfiguration, + MetricCounter, + MetricCounterSet, + MetricDimension, + MonitoringMetricConfiguration, MountPointMap, NetworkAdapter, NetworkAdapterPosition, NetworkSettings, Node, + NodeInfo, Order, OrderStatus, PeriodicTimerEventTrigger, PeriodicTimerSourceInfo, RefreshDetails, + RemoteSupportSettings, + ResourceIdentity, + ResourceMoveDetails, Role, RoleSinkInfo, + Secret, SecuritySettings, Share, ShareAccessRight, @@ -48,9 +82,13 @@ export { Sku, StorageAccount, StorageAccountCredential, + SubscriptionRegisteredFeatures, SymmetricKey, + SystemData, TrackingInfo, Trigger, + TriggerSupportPackageRequest, + UpdateDetails, UpdateSummary, User, UserAccessRight diff --git a/sdk/databoxedge/arm-databoxedge/src/models/skusMappers.ts b/sdk/databoxedge/arm-databoxedge/src/models/skusMappers.ts deleted file mode 100644 index bde0673c7017..000000000000 --- a/sdk/databoxedge/arm-databoxedge/src/models/skusMappers.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - CloudError, - ResourceTypeSku, - SkuCost, - SkuInformationList, - SkuLocationInfo, - SkuRestriction, - SkuRestrictionInfo -} from "../models/mappers"; diff --git a/sdk/databoxedge/arm-databoxedge/src/models/storageAccountCredentialsMappers.ts b/sdk/databoxedge/arm-databoxedge/src/models/storageAccountCredentialsMappers.ts index fe70da1500f3..8133b46ab38a 100644 --- a/sdk/databoxedge/arm-databoxedge/src/models/storageAccountCredentialsMappers.ts +++ b/sdk/databoxedge/arm-databoxedge/src/models/storageAccountCredentialsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,9 +8,11 @@ export { discriminators, + Addon, Address, Alert, AlertErrorDetails, + ArcAddon, ARMBaseModel, AsymmetricEncryptedSecret, Authentication, @@ -18,29 +20,61 @@ export { BandwidthSchedule, BaseResource, ClientAccessRight, + CloudEdgeManagementRole, CloudError, + CniConfig, + ComputeResource, ContactDetails, Container, DataBoxEdgeDevice, DataBoxEdgeDeviceExtendedInfo, + DataResidency, + DiagnosticProactiveLogCollectionSettings, + DiagnosticRemoteSupportSettings, + EdgeProfile, + EdgeProfileSubscription, + EtcdInfo, FileEventTrigger, FileSourceInfo, + ImageRepositoryCredential, + IoTAddon, IoTDeviceInfo, + IoTEdgeAgentInfo, IoTRole, Ipv4Config, Ipv6Config, + KubernetesClusterInfo, + KubernetesIPConfiguration, + KubernetesRole, + KubernetesRoleCompute, + KubernetesRoleNetwork, + KubernetesRoleResources, + KubernetesRoleStorage, + KubernetesRoleStorageClassInfo, + LoadBalancerConfig, + MECRole, + MetricConfiguration, + MetricCounter, + MetricCounterSet, + MetricDimension, + MonitoringMetricConfiguration, MountPointMap, NetworkAdapter, NetworkAdapterPosition, NetworkSettings, Node, + NodeInfo, Order, OrderStatus, PeriodicTimerEventTrigger, PeriodicTimerSourceInfo, RefreshDetails, + RemoteSupportSettings, + ResourceIdentity, + ResourceMoveDetails, Role, RoleSinkInfo, + Secret, SecuritySettings, Share, ShareAccessRight, @@ -48,9 +82,13 @@ export { StorageAccount, StorageAccountCredential, StorageAccountCredentialList, + SubscriptionRegisteredFeatures, SymmetricKey, + SystemData, TrackingInfo, Trigger, + TriggerSupportPackageRequest, + UpdateDetails, UpdateSummary, User, UserAccessRight diff --git a/sdk/databoxedge/arm-databoxedge/src/models/storageAccountsMappers.ts b/sdk/databoxedge/arm-databoxedge/src/models/storageAccountsMappers.ts index 75464d8d0b4f..308f44cc4ea1 100644 --- a/sdk/databoxedge/arm-databoxedge/src/models/storageAccountsMappers.ts +++ b/sdk/databoxedge/arm-databoxedge/src/models/storageAccountsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,9 +8,11 @@ export { discriminators, + Addon, Address, Alert, AlertErrorDetails, + ArcAddon, ARMBaseModel, AsymmetricEncryptedSecret, Authentication, @@ -18,29 +20,61 @@ export { BandwidthSchedule, BaseResource, ClientAccessRight, + CloudEdgeManagementRole, CloudError, + CniConfig, + ComputeResource, ContactDetails, Container, DataBoxEdgeDevice, DataBoxEdgeDeviceExtendedInfo, + DataResidency, + DiagnosticProactiveLogCollectionSettings, + DiagnosticRemoteSupportSettings, + EdgeProfile, + EdgeProfileSubscription, + EtcdInfo, FileEventTrigger, FileSourceInfo, + ImageRepositoryCredential, + IoTAddon, IoTDeviceInfo, + IoTEdgeAgentInfo, IoTRole, Ipv4Config, Ipv6Config, + KubernetesClusterInfo, + KubernetesIPConfiguration, + KubernetesRole, + KubernetesRoleCompute, + KubernetesRoleNetwork, + KubernetesRoleResources, + KubernetesRoleStorage, + KubernetesRoleStorageClassInfo, + LoadBalancerConfig, + MECRole, + MetricConfiguration, + MetricCounter, + MetricCounterSet, + MetricDimension, + MonitoringMetricConfiguration, MountPointMap, NetworkAdapter, NetworkAdapterPosition, NetworkSettings, Node, + NodeInfo, Order, OrderStatus, PeriodicTimerEventTrigger, PeriodicTimerSourceInfo, RefreshDetails, + RemoteSupportSettings, + ResourceIdentity, + ResourceMoveDetails, Role, RoleSinkInfo, + Secret, SecuritySettings, Share, ShareAccessRight, @@ -48,9 +82,13 @@ export { StorageAccount, StorageAccountCredential, StorageAccountList, + SubscriptionRegisteredFeatures, SymmetricKey, + SystemData, TrackingInfo, Trigger, + TriggerSupportPackageRequest, + UpdateDetails, UpdateSummary, User, UserAccessRight diff --git a/sdk/databoxedge/arm-databoxedge/src/models/supportPackagesMappers.ts b/sdk/databoxedge/arm-databoxedge/src/models/supportPackagesMappers.ts new file mode 100644 index 000000000000..0446a73dd9e1 --- /dev/null +++ b/sdk/databoxedge/arm-databoxedge/src/models/supportPackagesMappers.ts @@ -0,0 +1,94 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + Addon, + Address, + Alert, + AlertErrorDetails, + ArcAddon, + ARMBaseModel, + AsymmetricEncryptedSecret, + Authentication, + AzureContainerInfo, + BandwidthSchedule, + BaseResource, + ClientAccessRight, + CloudEdgeManagementRole, + CloudError, + CniConfig, + ComputeResource, + ContactDetails, + Container, + DataBoxEdgeDevice, + DataBoxEdgeDeviceExtendedInfo, + DataResidency, + DiagnosticProactiveLogCollectionSettings, + DiagnosticRemoteSupportSettings, + EdgeProfile, + EdgeProfileSubscription, + EtcdInfo, + FileEventTrigger, + FileSourceInfo, + ImageRepositoryCredential, + IoTAddon, + IoTDeviceInfo, + IoTEdgeAgentInfo, + IoTRole, + Ipv4Config, + Ipv6Config, + KubernetesClusterInfo, + KubernetesIPConfiguration, + KubernetesRole, + KubernetesRoleCompute, + KubernetesRoleNetwork, + KubernetesRoleResources, + KubernetesRoleStorage, + KubernetesRoleStorageClassInfo, + LoadBalancerConfig, + MECRole, + MetricConfiguration, + MetricCounter, + MetricCounterSet, + MetricDimension, + MonitoringMetricConfiguration, + MountPointMap, + NetworkAdapter, + NetworkAdapterPosition, + NetworkSettings, + Node, + NodeInfo, + Order, + OrderStatus, + PeriodicTimerEventTrigger, + PeriodicTimerSourceInfo, + RefreshDetails, + RemoteSupportSettings, + ResourceIdentity, + ResourceMoveDetails, + Role, + RoleSinkInfo, + Secret, + SecuritySettings, + Share, + ShareAccessRight, + Sku, + StorageAccount, + StorageAccountCredential, + SubscriptionRegisteredFeatures, + SymmetricKey, + SystemData, + TrackingInfo, + Trigger, + TriggerSupportPackageRequest, + UpdateDetails, + UpdateSummary, + User, + UserAccessRight +} from "../models/mappers"; diff --git a/sdk/databoxedge/arm-databoxedge/src/models/triggersMappers.ts b/sdk/databoxedge/arm-databoxedge/src/models/triggersMappers.ts index 6851ac5d88ac..b5a7f740feae 100644 --- a/sdk/databoxedge/arm-databoxedge/src/models/triggersMappers.ts +++ b/sdk/databoxedge/arm-databoxedge/src/models/triggersMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,9 +8,11 @@ export { discriminators, + Addon, Address, Alert, AlertErrorDetails, + ArcAddon, ARMBaseModel, AsymmetricEncryptedSecret, Authentication, @@ -18,39 +20,75 @@ export { BandwidthSchedule, BaseResource, ClientAccessRight, + CloudEdgeManagementRole, CloudError, + CniConfig, + ComputeResource, ContactDetails, Container, DataBoxEdgeDevice, DataBoxEdgeDeviceExtendedInfo, + DataResidency, + DiagnosticProactiveLogCollectionSettings, + DiagnosticRemoteSupportSettings, + EdgeProfile, + EdgeProfileSubscription, + EtcdInfo, FileEventTrigger, FileSourceInfo, + ImageRepositoryCredential, + IoTAddon, IoTDeviceInfo, + IoTEdgeAgentInfo, IoTRole, Ipv4Config, Ipv6Config, + KubernetesClusterInfo, + KubernetesIPConfiguration, + KubernetesRole, + KubernetesRoleCompute, + KubernetesRoleNetwork, + KubernetesRoleResources, + KubernetesRoleStorage, + KubernetesRoleStorageClassInfo, + LoadBalancerConfig, + MECRole, + MetricConfiguration, + MetricCounter, + MetricCounterSet, + MetricDimension, + MonitoringMetricConfiguration, MountPointMap, NetworkAdapter, NetworkAdapterPosition, NetworkSettings, Node, + NodeInfo, Order, OrderStatus, PeriodicTimerEventTrigger, PeriodicTimerSourceInfo, RefreshDetails, + RemoteSupportSettings, + ResourceIdentity, + ResourceMoveDetails, Role, RoleSinkInfo, + Secret, SecuritySettings, Share, ShareAccessRight, Sku, StorageAccount, StorageAccountCredential, + SubscriptionRegisteredFeatures, SymmetricKey, + SystemData, TrackingInfo, Trigger, TriggerList, + TriggerSupportPackageRequest, + UpdateDetails, UpdateSummary, User, UserAccessRight diff --git a/sdk/databoxedge/arm-databoxedge/src/models/usersMappers.ts b/sdk/databoxedge/arm-databoxedge/src/models/usersMappers.ts index f0d6bae872b2..e207071c11ac 100644 --- a/sdk/databoxedge/arm-databoxedge/src/models/usersMappers.ts +++ b/sdk/databoxedge/arm-databoxedge/src/models/usersMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,9 +8,11 @@ export { discriminators, + Addon, Address, Alert, AlertErrorDetails, + ArcAddon, ARMBaseModel, AsymmetricEncryptedSecret, Authentication, @@ -18,38 +20,74 @@ export { BandwidthSchedule, BaseResource, ClientAccessRight, + CloudEdgeManagementRole, CloudError, + CniConfig, + ComputeResource, ContactDetails, Container, DataBoxEdgeDevice, DataBoxEdgeDeviceExtendedInfo, + DataResidency, + DiagnosticProactiveLogCollectionSettings, + DiagnosticRemoteSupportSettings, + EdgeProfile, + EdgeProfileSubscription, + EtcdInfo, FileEventTrigger, FileSourceInfo, + ImageRepositoryCredential, + IoTAddon, IoTDeviceInfo, + IoTEdgeAgentInfo, IoTRole, Ipv4Config, Ipv6Config, + KubernetesClusterInfo, + KubernetesIPConfiguration, + KubernetesRole, + KubernetesRoleCompute, + KubernetesRoleNetwork, + KubernetesRoleResources, + KubernetesRoleStorage, + KubernetesRoleStorageClassInfo, + LoadBalancerConfig, + MECRole, + MetricConfiguration, + MetricCounter, + MetricCounterSet, + MetricDimension, + MonitoringMetricConfiguration, MountPointMap, NetworkAdapter, NetworkAdapterPosition, NetworkSettings, Node, + NodeInfo, Order, OrderStatus, PeriodicTimerEventTrigger, PeriodicTimerSourceInfo, RefreshDetails, + RemoteSupportSettings, + ResourceIdentity, + ResourceMoveDetails, Role, RoleSinkInfo, + Secret, SecuritySettings, Share, ShareAccessRight, Sku, StorageAccount, StorageAccountCredential, + SubscriptionRegisteredFeatures, SymmetricKey, + SystemData, TrackingInfo, Trigger, + TriggerSupportPackageRequest, + UpdateDetails, UpdateSummary, User, UserAccessRight, diff --git a/sdk/databoxedge/arm-databoxedge/src/operations/addons.ts b/sdk/databoxedge/arm-databoxedge/src/operations/addons.ts new file mode 100644 index 000000000000..05f1a5f30210 --- /dev/null +++ b/sdk/databoxedge/arm-databoxedge/src/operations/addons.ts @@ -0,0 +1,348 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/addonsMappers"; +import * as Parameters from "../models/parameters"; +import { DataBoxEdgeManagementClientContext } from "../dataBoxEdgeManagementClientContext"; + +/** Class representing a Addons. */ +export class Addons { + private readonly client: DataBoxEdgeManagementClientContext; + + /** + * Create a Addons. + * @param {DataBoxEdgeManagementClientContext} client Reference to the service client. + */ + constructor(client: DataBoxEdgeManagementClientContext) { + this.client = client; + } + + /** + * Lists all the addons configured in the role. + * @param deviceName The device name. + * @param roleName The role name. + * @param resourceGroupName The resource group name. + * @param [options] The optional parameters + * @returns Promise + */ + listByRole(deviceName: string, roleName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param deviceName The device name. + * @param roleName The role name. + * @param resourceGroupName The resource group name. + * @param callback The callback + */ + listByRole(deviceName: string, roleName: string, resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param deviceName The device name. + * @param roleName The role name. + * @param resourceGroupName The resource group name. + * @param options The optional parameters + * @param callback The callback + */ + listByRole(deviceName: string, roleName: string, resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByRole(deviceName: string, roleName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + deviceName, + roleName, + resourceGroupName, + options + }, + listByRoleOperationSpec, + callback) as Promise; + } + + /** + * Gets a specific addon by name. + * @param deviceName The device name. + * @param roleName The role name. + * @param addonName The addon name. + * @param resourceGroupName The resource group name. + * @param [options] The optional parameters + * @returns Promise + */ + get(deviceName: string, roleName: string, addonName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param deviceName The device name. + * @param roleName The role name. + * @param addonName The addon name. + * @param resourceGroupName The resource group name. + * @param callback The callback + */ + get(deviceName: string, roleName: string, addonName: string, resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param deviceName The device name. + * @param roleName The role name. + * @param addonName The addon name. + * @param resourceGroupName The resource group name. + * @param options The optional parameters + * @param callback The callback + */ + get(deviceName: string, roleName: string, addonName: string, resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(deviceName: string, roleName: string, addonName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + deviceName, + roleName, + addonName, + resourceGroupName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Create or update a addon. + * @param deviceName The device name. + * @param roleName The role name. + * @param addonName The addon name. + * @param addon The addon properties. + * @param resourceGroupName The resource group name. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(deviceName: string, roleName: string, addonName: string, addon: Models.AddonUnion, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(deviceName,roleName,addonName,addon,resourceGroupName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Deletes the addon on the device. + * @param deviceName The device name. + * @param roleName The role name. + * @param addonName The addon name. + * @param resourceGroupName The resource group name. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(deviceName: string, roleName: string, addonName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(deviceName,roleName,addonName,resourceGroupName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Create or update a addon. + * @param deviceName The device name. + * @param roleName The role name. + * @param addonName The addon name. + * @param addon The addon properties. + * @param resourceGroupName The resource group name. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(deviceName: string, roleName: string, addonName: string, addon: Models.AddonUnion, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + deviceName, + roleName, + addonName, + addon, + resourceGroupName, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Deletes the addon on the device. + * @param deviceName The device name. + * @param roleName The role name. + * @param addonName The addon name. + * @param resourceGroupName The resource group name. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(deviceName: string, roleName: string, addonName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + deviceName, + roleName, + addonName, + resourceGroupName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Lists all the addons configured in the role. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByRoleNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByRoleNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByRoleNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByRoleNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByRoleNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByRoleOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/roles/{roleName}/addons", + urlParameters: [ + Parameters.deviceName, + Parameters.roleName, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AddonList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/roles/{roleName}/addons/{addonName}", + urlParameters: [ + Parameters.deviceName, + Parameters.roleName, + Parameters.addonName, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Addon + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/roles/{roleName}/addons/{addonName}", + urlParameters: [ + Parameters.deviceName, + Parameters.roleName, + Parameters.addonName, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "addon", + mapper: { + ...Mappers.Addon, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Addon + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/roles/{roleName}/addons/{addonName}", + urlParameters: [ + Parameters.deviceName, + Parameters.roleName, + Parameters.addonName, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByRoleNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AddonList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/databoxedge/arm-databoxedge/src/operations/alerts.ts b/sdk/databoxedge/arm-databoxedge/src/operations/alerts.ts index efee17c9614d..7e1eaa5f1f20 100644 --- a/sdk/databoxedge/arm-databoxedge/src/operations/alerts.ts +++ b/sdk/databoxedge/arm-databoxedge/src/operations/alerts.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -183,6 +182,9 @@ const listByDataBoxEdgeDeviceNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/databoxedge/arm-databoxedge/src/operations/availableSkus.ts b/sdk/databoxedge/arm-databoxedge/src/operations/availableSkus.ts new file mode 100644 index 000000000000..4c287be19939 --- /dev/null +++ b/sdk/databoxedge/arm-databoxedge/src/operations/availableSkus.ts @@ -0,0 +1,128 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/availableSkusMappers"; +import * as Parameters from "../models/parameters"; +import { DataBoxEdgeManagementClientContext } from "../dataBoxEdgeManagementClientContext"; + +/** Class representing a AvailableSkus. */ +export class AvailableSkus { + private readonly client: DataBoxEdgeManagementClientContext; + + /** + * Create a AvailableSkus. + * @param {DataBoxEdgeManagementClientContext} client Reference to the service client. + */ + constructor(client: DataBoxEdgeManagementClientContext) { + this.client = client; + } + + /** + * @summary List all the available Skus and information related to them. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * @summary List all the available Skus and information related to them. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.DataBoxEdge/availableSkus", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DataBoxEdgeSkuList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DataBoxEdgeSkuList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/databoxedge/arm-databoxedge/src/operations/bandwidthSchedules.ts b/sdk/databoxedge/arm-databoxedge/src/operations/bandwidthSchedules.ts index 7c4b6aea7abd..57a41a58cb40 100644 --- a/sdk/databoxedge/arm-databoxedge/src/operations/bandwidthSchedules.ts +++ b/sdk/databoxedge/arm-databoxedge/src/operations/bandwidthSchedules.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -313,6 +312,9 @@ const listByDataBoxEdgeDeviceNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/databoxedge/arm-databoxedge/src/operations/containers.ts b/sdk/databoxedge/arm-databoxedge/src/operations/containers.ts index 95e47ec04154..8767c4b61e32 100644 --- a/sdk/databoxedge/arm-databoxedge/src/operations/containers.ts +++ b/sdk/databoxedge/arm-databoxedge/src/operations/containers.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -394,6 +393,9 @@ const listByStorageAccountNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/databoxedge/arm-databoxedge/src/operations/devices.ts b/sdk/databoxedge/arm-databoxedge/src/operations/devices.ts index e90235ad40f6..f98726a474d8 100644 --- a/sdk/databoxedge/arm-databoxedge/src/operations/devices.ts +++ b/sdk/databoxedge/arm-databoxedge/src/operations/devices.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -119,9 +118,32 @@ export class Devices { * @param [options] The optional parameters * @returns Promise */ - createOrUpdate(deviceName: string, dataBoxEdgeDevice: Models.DataBoxEdgeDevice, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(deviceName,dataBoxEdgeDevice,resourceGroupName,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + createOrUpdate(deviceName: string, dataBoxEdgeDevice: Models.DataBoxEdgeDevice, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param deviceName The device name. + * @param dataBoxEdgeDevice The resource object. + * @param resourceGroupName The resource group name. + * @param callback The callback + */ + createOrUpdate(deviceName: string, dataBoxEdgeDevice: Models.DataBoxEdgeDevice, resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param deviceName The device name. + * @param dataBoxEdgeDevice The resource object. + * @param resourceGroupName The resource group name. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(deviceName: string, dataBoxEdgeDevice: Models.DataBoxEdgeDevice, resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(deviceName: string, dataBoxEdgeDevice: Models.DataBoxEdgeDevice, resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + deviceName, + dataBoxEdgeDevice, + resourceGroupName, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; } /** @@ -185,7 +207,39 @@ export class Devices { } /** - * Gets additional information for the specified Data Box Edge/Data Box Gateway device. + * Generates certificate for activation key. + * @param deviceName The device name. + * @param resourceGroupName The resource group name. + * @param [options] The optional parameters + * @returns Promise + */ + generateCertificate(deviceName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param deviceName The device name. + * @param resourceGroupName The resource group name. + * @param callback The callback + */ + generateCertificate(deviceName: string, resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param deviceName The device name. + * @param resourceGroupName The resource group name. + * @param options The optional parameters + * @param callback The callback + */ + generateCertificate(deviceName: string, resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + generateCertificate(deviceName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + deviceName, + resourceGroupName, + options + }, + generateCertificateOperationSpec, + callback) as Promise; + } + + /** + * Gets additional information for the specified Azure Stack Edge/Data Box Gateway device. * @param deviceName The device name. * @param resourceGroupName The resource group name. * @param [options] The optional parameters @@ -285,6 +339,42 @@ export class Devices { .then(lroPoller => lroPoller.pollUntilFinished()); } + /** + * Gets additional information for the specified Data Box Edge/Data Box Gateway device. + * @param deviceName The device name. + * @param parameters The patch object. + * @param resourceGroupName The resource group name. + * @param [options] The optional parameters + * @returns Promise + */ + updateExtendedInformation(deviceName: string, parameters: Models.DataBoxEdgeDeviceExtendedInfoPatch, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param deviceName The device name. + * @param parameters The patch object. + * @param resourceGroupName The resource group name. + * @param callback The callback + */ + updateExtendedInformation(deviceName: string, parameters: Models.DataBoxEdgeDeviceExtendedInfoPatch, resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param deviceName The device name. + * @param parameters The patch object. + * @param resourceGroupName The resource group name. + * @param options The optional parameters + * @param callback The callback + */ + updateExtendedInformation(deviceName: string, parameters: Models.DataBoxEdgeDeviceExtendedInfoPatch, resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateExtendedInformation(deviceName: string, parameters: Models.DataBoxEdgeDeviceExtendedInfoPatch, resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + deviceName, + parameters, + resourceGroupName, + options + }, + updateExtendedInformationOperationSpec, + callback) as Promise; + } + /** * @summary Gets information about the availability of updates based on the last scan of the * device. It also gets information about any ongoing download or install jobs on the device. @@ -354,26 +444,6 @@ export class Devices { callback) as Promise; } - /** - * Creates or updates a Data Box Edge/Data Box Gateway resource. - * @param deviceName The device name. - * @param dataBoxEdgeDevice The resource object. - * @param resourceGroupName The resource group name. - * @param [options] The optional parameters - * @returns Promise - */ - beginCreateOrUpdate(deviceName: string, dataBoxEdgeDevice: Models.DataBoxEdgeDevice, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - deviceName, - dataBoxEdgeDevice, - resourceGroupName, - options - }, - beginCreateOrUpdateOperationSpec, - options); - } - /** * Deletes the Data Box Edge/Data Box Gateway device. * @param deviceName The device name. @@ -472,7 +542,7 @@ export class Devices { * @param [options] The optional parameters * @returns Promise */ - listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listBySubscriptionNext(nextPageLink: string, options?: Models.DevicesListBySubscriptionNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -483,8 +553,8 @@ export class Devices { * @param options The optional parameters * @param callback The callback */ - listBySubscriptionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listBySubscriptionNext(nextPageLink: string, options: Models.DevicesListBySubscriptionNextOptionalParams, callback: msRest.ServiceCallback): void; + listBySubscriptionNext(nextPageLink: string, options?: Models.DevicesListBySubscriptionNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -500,7 +570,7 @@ export class Devices { * @param [options] The optional parameters * @returns Promise */ - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByResourceGroupNext(nextPageLink: string, options?: Models.DevicesListByResourceGroupNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -511,8 +581,8 @@ export class Devices { * @param options The optional parameters * @param callback The callback */ - listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByResourceGroupNext(nextPageLink: string, options: Models.DevicesListByResourceGroupNextOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: Models.DevicesListByResourceGroupNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -599,6 +669,38 @@ const getOperationSpec: msRest.OperationSpec = { serializer }; +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{deviceName}", + urlParameters: [ + Parameters.deviceName, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "dataBoxEdgeDevice", + mapper: { + ...Mappers.DataBoxEdgeDevice, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.DataBoxEdgeDevice + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const updateOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{deviceName}", @@ -631,9 +733,9 @@ const updateOperationSpec: msRest.OperationSpec = { serializer }; -const getExtendedInformationOperationSpec: msRest.OperationSpec = { +const generateCertificateOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/getExtendedInformation", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/generateCertificate", urlParameters: [ Parameters.deviceName, Parameters.subscriptionId, @@ -647,7 +749,7 @@ const getExtendedInformationOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.DataBoxEdgeDeviceExtendedInfo + bodyMapper: Mappers.GenerateCertResponse }, default: { bodyMapper: Mappers.CloudError @@ -656,9 +758,9 @@ const getExtendedInformationOperationSpec: msRest.OperationSpec = { serializer }; -const getNetworkSettingsOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/networkSettings/default", +const getExtendedInformationOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/getExtendedInformation", urlParameters: [ Parameters.deviceName, Parameters.subscriptionId, @@ -672,7 +774,7 @@ const getNetworkSettingsOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.NetworkSettings + bodyMapper: Mappers.DataBoxEdgeDeviceExtendedInfo }, default: { bodyMapper: Mappers.CloudError @@ -681,9 +783,9 @@ const getNetworkSettingsOperationSpec: msRest.OperationSpec = { serializer }; -const getUpdateSummaryOperationSpec: msRest.OperationSpec = { +const getNetworkSettingsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/updateSummary/default", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/networkSettings/default", urlParameters: [ Parameters.deviceName, Parameters.subscriptionId, @@ -697,7 +799,7 @@ const getUpdateSummaryOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.UpdateSummary + bodyMapper: Mappers.NetworkSettings }, default: { bodyMapper: Mappers.CloudError @@ -706,9 +808,9 @@ const getUpdateSummaryOperationSpec: msRest.OperationSpec = { serializer }; -const uploadCertificateOperationSpec: msRest.OperationSpec = { +const updateExtendedInformationOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/uploadCertificate", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/updateExtendedInformation", urlParameters: [ Parameters.deviceName, Parameters.subscriptionId, @@ -723,13 +825,13 @@ const uploadCertificateOperationSpec: msRest.OperationSpec = { requestBody: { parameterPath: "parameters", mapper: { - ...Mappers.UploadCertificateRequest, + ...Mappers.DataBoxEdgeDeviceExtendedInfoPatch, required: true } }, responses: { 200: { - bodyMapper: Mappers.UploadCertificateResponse + bodyMapper: Mappers.DataBoxEdgeDeviceExtendedInfo }, default: { bodyMapper: Mappers.CloudError @@ -738,9 +840,34 @@ const uploadCertificateOperationSpec: msRest.OperationSpec = { serializer }; -const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{deviceName}", +const getUpdateSummaryOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/updateSummary/default", + urlParameters: [ + Parameters.deviceName, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.UpdateSummary + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const uploadCertificateOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/uploadCertificate", urlParameters: [ Parameters.deviceName, Parameters.subscriptionId, @@ -753,15 +880,15 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.acceptLanguage ], requestBody: { - parameterPath: "dataBoxEdgeDevice", + parameterPath: "parameters", mapper: { - ...Mappers.DataBoxEdgeDevice, + ...Mappers.UploadCertificateRequest, required: true } }, responses: { 200: { - bodyMapper: Mappers.DataBoxEdgeDevice + bodyMapper: Mappers.UploadCertificateResponse }, default: { bodyMapper: Mappers.CloudError @@ -905,6 +1032,10 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion, + Parameters.expand + ], headerParameters: [ Parameters.acceptLanguage ], @@ -926,6 +1057,10 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion, + Parameters.expand + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/databoxedge/arm-databoxedge/src/operations/diagnosticSettings.ts b/sdk/databoxedge/arm-databoxedge/src/operations/diagnosticSettings.ts new file mode 100644 index 000000000000..f5f23c94cfaa --- /dev/null +++ b/sdk/databoxedge/arm-databoxedge/src/operations/diagnosticSettings.ts @@ -0,0 +1,279 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/diagnosticSettingsMappers"; +import * as Parameters from "../models/parameters"; +import { DataBoxEdgeManagementClientContext } from "../dataBoxEdgeManagementClientContext"; + +/** Class representing a DiagnosticSettings. */ +export class DiagnosticSettings { + private readonly client: DataBoxEdgeManagementClientContext; + + /** + * Create a DiagnosticSettings. + * @param {DataBoxEdgeManagementClientContext} client Reference to the service client. + */ + constructor(client: DataBoxEdgeManagementClientContext) { + this.client = client; + } + + /** + * Gets the proactive log collection settings of the specified Data Box Edge/Data Box Gateway + * device. + * @param deviceName The device name. + * @param resourceGroupName The resource group name. + * @param [options] The optional parameters + * @returns Promise + */ + getDiagnosticProactiveLogCollectionSettings(deviceName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param deviceName The device name. + * @param resourceGroupName The resource group name. + * @param callback The callback + */ + getDiagnosticProactiveLogCollectionSettings(deviceName: string, resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param deviceName The device name. + * @param resourceGroupName The resource group name. + * @param options The optional parameters + * @param callback The callback + */ + getDiagnosticProactiveLogCollectionSettings(deviceName: string, resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getDiagnosticProactiveLogCollectionSettings(deviceName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + deviceName, + resourceGroupName, + options + }, + getDiagnosticProactiveLogCollectionSettingsOperationSpec, + callback) as Promise; + } + + /** + * Updates the proactive log collection settings on a Data Box Edge/Data Box Gateway device. + * @param deviceName The device name. + * @param proactiveLogCollectionSettings The proactive log collection settings. + * @param resourceGroupName The resource group name. + * @param [options] The optional parameters + * @returns + * Promise + */ + updateDiagnosticProactiveLogCollectionSettings(deviceName: string, proactiveLogCollectionSettings: Models.DiagnosticProactiveLogCollectionSettings, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateDiagnosticProactiveLogCollectionSettings(deviceName,proactiveLogCollectionSettings,resourceGroupName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Gets the diagnostic remote support settings of the specified Data Box Edge/Data Box Gateway + * device. + * @param deviceName The device name. + * @param resourceGroupName The resource group name. + * @param [options] The optional parameters + * @returns Promise + */ + getDiagnosticRemoteSupportSettings(deviceName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param deviceName The device name. + * @param resourceGroupName The resource group name. + * @param callback The callback + */ + getDiagnosticRemoteSupportSettings(deviceName: string, resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param deviceName The device name. + * @param resourceGroupName The resource group name. + * @param options The optional parameters + * @param callback The callback + */ + getDiagnosticRemoteSupportSettings(deviceName: string, resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getDiagnosticRemoteSupportSettings(deviceName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + deviceName, + resourceGroupName, + options + }, + getDiagnosticRemoteSupportSettingsOperationSpec, + callback) as Promise; + } + + /** + * Updates the diagnostic remote support settings on a Data Box Edge/Data Box Gateway device. + * @param deviceName The device name. + * @param diagnosticRemoteSupportSettings The diagnostic remote support settings. + * @param resourceGroupName The resource group name. + * @param [options] The optional parameters + * @returns Promise + */ + updateDiagnosticRemoteSupportSettings(deviceName: string, diagnosticRemoteSupportSettings: Models.DiagnosticRemoteSupportSettings, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateDiagnosticRemoteSupportSettings(deviceName,diagnosticRemoteSupportSettings,resourceGroupName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Updates the proactive log collection settings on a Data Box Edge/Data Box Gateway device. + * @param deviceName The device name. + * @param proactiveLogCollectionSettings The proactive log collection settings. + * @param resourceGroupName The resource group name. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdateDiagnosticProactiveLogCollectionSettings(deviceName: string, proactiveLogCollectionSettings: Models.DiagnosticProactiveLogCollectionSettings, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + deviceName, + proactiveLogCollectionSettings, + resourceGroupName, + options + }, + beginUpdateDiagnosticProactiveLogCollectionSettingsOperationSpec, + options); + } + + /** + * Updates the diagnostic remote support settings on a Data Box Edge/Data Box Gateway device. + * @param deviceName The device name. + * @param diagnosticRemoteSupportSettings The diagnostic remote support settings. + * @param resourceGroupName The resource group name. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdateDiagnosticRemoteSupportSettings(deviceName: string, diagnosticRemoteSupportSettings: Models.DiagnosticRemoteSupportSettings, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + deviceName, + diagnosticRemoteSupportSettings, + resourceGroupName, + options + }, + beginUpdateDiagnosticRemoteSupportSettingsOperationSpec, + options); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getDiagnosticProactiveLogCollectionSettingsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/diagnosticProactiveLogCollectionSettings/default", + urlParameters: [ + Parameters.deviceName, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DiagnosticProactiveLogCollectionSettings + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getDiagnosticRemoteSupportSettingsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/diagnosticRemoteSupportSettings/default", + urlParameters: [ + Parameters.deviceName, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DiagnosticRemoteSupportSettings + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdateDiagnosticProactiveLogCollectionSettingsOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/diagnosticProactiveLogCollectionSettings/default", + urlParameters: [ + Parameters.deviceName, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "proactiveLogCollectionSettings", + mapper: { + ...Mappers.DiagnosticProactiveLogCollectionSettings, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.DiagnosticProactiveLogCollectionSettings + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdateDiagnosticRemoteSupportSettingsOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/diagnosticRemoteSupportSettings/default", + urlParameters: [ + Parameters.deviceName, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "diagnosticRemoteSupportSettings", + mapper: { + ...Mappers.DiagnosticRemoteSupportSettings, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.DiagnosticRemoteSupportSettings + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/databoxedge/arm-databoxedge/src/operations/index.ts b/sdk/databoxedge/arm-databoxedge/src/operations/index.ts index 70c72cf33126..86770f19720d 100644 --- a/sdk/databoxedge/arm-databoxedge/src/operations/index.ts +++ b/sdk/databoxedge/arm-databoxedge/src/operations/index.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -9,18 +8,22 @@ */ export * from "./operations"; +export * from "./availableSkus"; export * from "./devices"; export * from "./alerts"; export * from "./bandwidthSchedules"; +export * from "./diagnosticSettings"; export * from "./jobs"; export * from "./nodes"; export * from "./operationsStatus"; export * from "./orders"; export * from "./roles"; +export * from "./addons"; +export * from "./monitoringConfig"; export * from "./shares"; export * from "./storageAccountCredentials"; export * from "./storageAccounts"; export * from "./containers"; export * from "./triggers"; +export * from "./supportPackages"; export * from "./users"; -export * from "./skus"; diff --git a/sdk/databoxedge/arm-databoxedge/src/operations/jobs.ts b/sdk/databoxedge/arm-databoxedge/src/operations/jobs.ts index c5ce0b5b04bd..62743e305c3c 100644 --- a/sdk/databoxedge/arm-databoxedge/src/operations/jobs.ts +++ b/sdk/databoxedge/arm-databoxedge/src/operations/jobs.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/databoxedge/arm-databoxedge/src/operations/monitoringConfig.ts b/sdk/databoxedge/arm-databoxedge/src/operations/monitoringConfig.ts new file mode 100644 index 000000000000..16eddcf98c4c --- /dev/null +++ b/sdk/databoxedge/arm-databoxedge/src/operations/monitoringConfig.ts @@ -0,0 +1,335 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/monitoringConfigMappers"; +import * as Parameters from "../models/parameters"; +import { DataBoxEdgeManagementClientContext } from "../dataBoxEdgeManagementClientContext"; + +/** Class representing a MonitoringConfig. */ +export class MonitoringConfig { + private readonly client: DataBoxEdgeManagementClientContext; + + /** + * Create a MonitoringConfig. + * @param {DataBoxEdgeManagementClientContext} client Reference to the service client. + */ + constructor(client: DataBoxEdgeManagementClientContext) { + this.client = client; + } + + /** + * @summary Lists metric configurations in a role. + * @param deviceName The device name. + * @param roleName The role name. + * @param resourceGroupName The resource group name. + * @param [options] The optional parameters + * @returns Promise + */ + list(deviceName: string, roleName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param deviceName The device name. + * @param roleName The role name. + * @param resourceGroupName The resource group name. + * @param callback The callback + */ + list(deviceName: string, roleName: string, resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param deviceName The device name. + * @param roleName The role name. + * @param resourceGroupName The resource group name. + * @param options The optional parameters + * @param callback The callback + */ + list(deviceName: string, roleName: string, resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(deviceName: string, roleName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + deviceName, + roleName, + resourceGroupName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * @summary Gets a metric configuration of a role. + * @param deviceName The device name. + * @param roleName The role name. + * @param resourceGroupName The resource group name. + * @param [options] The optional parameters + * @returns Promise + */ + get(deviceName: string, roleName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param deviceName The device name. + * @param roleName The role name. + * @param resourceGroupName The resource group name. + * @param callback The callback + */ + get(deviceName: string, roleName: string, resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param deviceName The device name. + * @param roleName The role name. + * @param resourceGroupName The resource group name. + * @param options The optional parameters + * @param callback The callback + */ + get(deviceName: string, roleName: string, resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(deviceName: string, roleName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + deviceName, + roleName, + resourceGroupName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * @summary Creates a new metric configuration or updates an existing one for a role. + * @param deviceName The device name. + * @param roleName The role name. + * @param monitoringMetricConfiguration The metric configuration. + * @param resourceGroupName The resource group name. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(deviceName: string, roleName: string, monitoringMetricConfiguration: Models.MonitoringMetricConfiguration, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(deviceName,roleName,monitoringMetricConfiguration,resourceGroupName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @summary deletes a new metric configuration for a role. + * @param deviceName The device name. + * @param roleName The role name. + * @param resourceGroupName The resource group name. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(deviceName: string, roleName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(deviceName,roleName,resourceGroupName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * @summary Creates a new metric configuration or updates an existing one for a role. + * @param deviceName The device name. + * @param roleName The role name. + * @param monitoringMetricConfiguration The metric configuration. + * @param resourceGroupName The resource group name. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(deviceName: string, roleName: string, monitoringMetricConfiguration: Models.MonitoringMetricConfiguration, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + deviceName, + roleName, + monitoringMetricConfiguration, + resourceGroupName, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * @summary deletes a new metric configuration for a role. + * @param deviceName The device name. + * @param roleName The role name. + * @param resourceGroupName The resource group name. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(deviceName: string, roleName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + deviceName, + roleName, + resourceGroupName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * @summary Lists metric configurations in a role. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/roles/{roleName}/monitoringConfig", + urlParameters: [ + Parameters.deviceName, + Parameters.roleName, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.MonitoringMetricConfigurationList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/roles/{roleName}/monitoringConfig/default", + urlParameters: [ + Parameters.deviceName, + Parameters.roleName, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.MonitoringMetricConfiguration + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/roles/{roleName}/monitoringConfig/default", + urlParameters: [ + Parameters.deviceName, + Parameters.roleName, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "monitoringMetricConfiguration", + mapper: { + ...Mappers.MonitoringMetricConfiguration, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.MonitoringMetricConfiguration + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/roles/{roleName}/monitoringConfig/default", + urlParameters: [ + Parameters.deviceName, + Parameters.roleName, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.MonitoringMetricConfigurationList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/databoxedge/arm-databoxedge/src/operations/nodes.ts b/sdk/databoxedge/arm-databoxedge/src/operations/nodes.ts index 1ec2ea69128f..8e3e11abe312 100644 --- a/sdk/databoxedge/arm-databoxedge/src/operations/nodes.ts +++ b/sdk/databoxedge/arm-databoxedge/src/operations/nodes.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -57,6 +56,34 @@ export class Nodes { listByDataBoxEdgeDeviceOperationSpec, callback) as Promise; } + + /** + * Gets all the nodes currently configured under this Data Box Edge device + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByDataBoxEdgeDeviceNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByDataBoxEdgeDeviceNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByDataBoxEdgeDeviceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByDataBoxEdgeDeviceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByDataBoxEdgeDeviceNextOperationSpec, + callback) as Promise; + } } // Operation Specifications @@ -85,3 +112,27 @@ const listByDataBoxEdgeDeviceOperationSpec: msRest.OperationSpec = { }, serializer }; + +const listByDataBoxEdgeDeviceNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.NodeList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/databoxedge/arm-databoxedge/src/operations/operations.ts b/sdk/databoxedge/arm-databoxedge/src/operations/operations.ts index 2b80ef77c415..2d93a6b1515b 100644 --- a/sdk/databoxedge/arm-databoxedge/src/operations/operations.ts +++ b/sdk/databoxedge/arm-databoxedge/src/operations/operations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -108,6 +107,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/databoxedge/arm-databoxedge/src/operations/operationsStatus.ts b/sdk/databoxedge/arm-databoxedge/src/operations/operationsStatus.ts index d8a2994ebc5b..8ae899e87b5a 100644 --- a/sdk/databoxedge/arm-databoxedge/src/operations/operationsStatus.ts +++ b/sdk/databoxedge/arm-databoxedge/src/operations/operationsStatus.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/databoxedge/arm-databoxedge/src/operations/orders.ts b/sdk/databoxedge/arm-databoxedge/src/operations/orders.ts index 42da15c6a1d1..9b60dd3d89c0 100644 --- a/sdk/databoxedge/arm-databoxedge/src/operations/orders.ts +++ b/sdk/databoxedge/arm-databoxedge/src/operations/orders.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -116,6 +115,38 @@ export class Orders { .then(lroPoller => lroPoller.pollUntilFinished()); } + /** + * @summary Gets the DCAccess Code + * @param deviceName The device name + * @param resourceGroupName The resource group name. + * @param [options] The optional parameters + * @returns Promise + */ + listDCAccessCode(deviceName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param deviceName The device name + * @param resourceGroupName The resource group name. + * @param callback The callback + */ + listDCAccessCode(deviceName: string, resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param deviceName The device name + * @param resourceGroupName The resource group name. + * @param options The optional parameters + * @param callback The callback + */ + listDCAccessCode(deviceName: string, resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listDCAccessCode(deviceName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + deviceName, + resourceGroupName, + options + }, + listDCAccessCodeOperationSpec, + callback) as Promise; + } + /** * @summary Creates or updates an order. * @param deviceName The order details of a device. @@ -235,6 +266,31 @@ const getOperationSpec: msRest.OperationSpec = { serializer }; +const listDCAccessCodeOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/orders/default/listDCAccessCode", + urlParameters: [ + Parameters.deviceName, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DCAccessCode + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/orders/default", @@ -300,6 +356,9 @@ const listByDataBoxEdgeDeviceNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/databoxedge/arm-databoxedge/src/operations/roles.ts b/sdk/databoxedge/arm-databoxedge/src/operations/roles.ts index bbde415fc14f..dc43262d677f 100644 --- a/sdk/databoxedge/arm-databoxedge/src/operations/roles.ts +++ b/sdk/databoxedge/arm-databoxedge/src/operations/roles.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -313,6 +312,9 @@ const listByDataBoxEdgeDeviceNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/databoxedge/arm-databoxedge/src/operations/shares.ts b/sdk/databoxedge/arm-databoxedge/src/operations/shares.ts index 39d13d53d5b5..cc0aaecde16f 100644 --- a/sdk/databoxedge/arm-databoxedge/src/operations/shares.ts +++ b/sdk/databoxedge/arm-databoxedge/src/operations/shares.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -371,6 +370,9 @@ const listByDataBoxEdgeDeviceNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/databoxedge/arm-databoxedge/src/operations/skus.ts b/sdk/databoxedge/arm-databoxedge/src/operations/skus.ts deleted file mode 100644 index 0978d6df11a6..000000000000 --- a/sdk/databoxedge/arm-databoxedge/src/operations/skus.ts +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/skusMappers"; -import * as Parameters from "../models/parameters"; -import { DataBoxEdgeManagementClientContext } from "../dataBoxEdgeManagementClientContext"; - -/** Class representing a Skus. */ -export class Skus { - private readonly client: DataBoxEdgeManagementClientContext; - - /** - * Create a Skus. - * @param {DataBoxEdgeManagementClientContext} client Reference to the service client. - */ - constructor(client: DataBoxEdgeManagementClientContext) { - this.client = client; - } - - /** - * @summary List all the available Skus in the region and information related to them - * @param [options] The optional parameters - * @returns Promise - */ - list(options?: Models.SkusListOptionalParams): Promise; - /** - * @param callback The callback - */ - list(callback: msRest.ServiceCallback): void; - /** - * @param options The optional parameters - * @param callback The callback - */ - list(options: Models.SkusListOptionalParams, callback: msRest.ServiceCallback): void; - list(options?: Models.SkusListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - options - }, - listOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.DataBoxEdge/skus", - urlParameters: [ - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion, - Parameters.filter - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SkuInformationList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/databoxedge/arm-databoxedge/src/operations/storageAccountCredentials.ts b/sdk/databoxedge/arm-databoxedge/src/operations/storageAccountCredentials.ts index da22d4710ab4..0e85c61945c5 100644 --- a/sdk/databoxedge/arm-databoxedge/src/operations/storageAccountCredentials.ts +++ b/sdk/databoxedge/arm-databoxedge/src/operations/storageAccountCredentials.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -313,6 +312,9 @@ const listByDataBoxEdgeDeviceNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/databoxedge/arm-databoxedge/src/operations/storageAccounts.ts b/sdk/databoxedge/arm-databoxedge/src/operations/storageAccounts.ts index 3bb7576b410c..5f8a3881e41e 100644 --- a/sdk/databoxedge/arm-databoxedge/src/operations/storageAccounts.ts +++ b/sdk/databoxedge/arm-databoxedge/src/operations/storageAccounts.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -28,7 +27,7 @@ export class StorageAccounts { } /** - * @summary Lists all the storage accounts in a Data Box Edge/Data Box Gateway device. + * @summary Lists all the StorageAccounts in a Data Box Edge/Data Box Gateway device. * @param deviceName The device name. * @param resourceGroupName The resource group name. * @param [options] The optional parameters @@ -165,7 +164,7 @@ export class StorageAccounts { } /** - * @summary Lists all the storage accounts in a Data Box Edge/Data Box Gateway device. + * @summary Lists all the StorageAccounts in a Data Box Edge/Data Box Gateway device. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters * @returns Promise @@ -312,6 +311,9 @@ const listByDataBoxEdgeDeviceNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/databoxedge/arm-databoxedge/src/operations/supportPackages.ts b/sdk/databoxedge/arm-databoxedge/src/operations/supportPackages.ts new file mode 100644 index 000000000000..97694e512f9f --- /dev/null +++ b/sdk/databoxedge/arm-databoxedge/src/operations/supportPackages.ts @@ -0,0 +1,94 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/supportPackagesMappers"; +import * as Parameters from "../models/parameters"; +import { DataBoxEdgeManagementClientContext } from "../dataBoxEdgeManagementClientContext"; + +/** Class representing a SupportPackages. */ +export class SupportPackages { + private readonly client: DataBoxEdgeManagementClientContext; + + /** + * Create a SupportPackages. + * @param {DataBoxEdgeManagementClientContext} client Reference to the service client. + */ + constructor(client: DataBoxEdgeManagementClientContext) { + this.client = client; + } + + /** + * @summary Triggers support package on the device + * @param deviceName The device name. + * @param triggerSupportPackageRequest The trigger support package request object + * @param resourceGroupName The resource group name. + * @param [options] The optional parameters + * @returns Promise + */ + triggerSupportPackage(deviceName: string, triggerSupportPackageRequest: Models.TriggerSupportPackageRequest, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginTriggerSupportPackage(deviceName,triggerSupportPackageRequest,resourceGroupName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * @summary Triggers support package on the device + * @param deviceName The device name. + * @param triggerSupportPackageRequest The trigger support package request object + * @param resourceGroupName The resource group name. + * @param [options] The optional parameters + * @returns Promise + */ + beginTriggerSupportPackage(deviceName: string, triggerSupportPackageRequest: Models.TriggerSupportPackageRequest, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + deviceName, + triggerSupportPackageRequest, + resourceGroupName, + options + }, + beginTriggerSupportPackageOperationSpec, + options); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const beginTriggerSupportPackageOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/triggerSupportPackage", + urlParameters: [ + Parameters.deviceName, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "triggerSupportPackageRequest", + mapper: { + ...Mappers.TriggerSupportPackageRequest, + required: true + } + }, + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/databoxedge/arm-databoxedge/src/operations/triggers.ts b/sdk/databoxedge/arm-databoxedge/src/operations/triggers.ts index eac6491364c7..c8e40cd00c2f 100644 --- a/sdk/databoxedge/arm-databoxedge/src/operations/triggers.ts +++ b/sdk/databoxedge/arm-databoxedge/src/operations/triggers.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -170,7 +169,7 @@ export class Triggers { * @param [options] The optional parameters * @returns Promise */ - listByDataBoxEdgeDeviceNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByDataBoxEdgeDeviceNext(nextPageLink: string, options?: Models.TriggersListByDataBoxEdgeDeviceNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -181,8 +180,8 @@ export class Triggers { * @param options The optional parameters * @param callback The callback */ - listByDataBoxEdgeDeviceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDataBoxEdgeDeviceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByDataBoxEdgeDeviceNext(nextPageLink: string, options: Models.TriggersListByDataBoxEdgeDeviceNextOptionalParams, callback: msRest.ServiceCallback): void; + listByDataBoxEdgeDeviceNext(nextPageLink: string, options?: Models.TriggersListByDataBoxEdgeDeviceNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -314,6 +313,10 @@ const listByDataBoxEdgeDeviceNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion, + Parameters.filter + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/databoxedge/arm-databoxedge/src/operations/users.ts b/sdk/databoxedge/arm-databoxedge/src/operations/users.ts index 4cb6ad492aa5..56c768866c1c 100644 --- a/sdk/databoxedge/arm-databoxedge/src/operations/users.ts +++ b/sdk/databoxedge/arm-databoxedge/src/operations/users.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -172,7 +171,7 @@ export class Users { * @param [options] The optional parameters * @returns Promise */ - listByDataBoxEdgeDeviceNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByDataBoxEdgeDeviceNext(nextPageLink: string, options?: Models.UsersListByDataBoxEdgeDeviceNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -183,8 +182,8 @@ export class Users { * @param options The optional parameters * @param callback The callback */ - listByDataBoxEdgeDeviceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDataBoxEdgeDeviceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByDataBoxEdgeDeviceNext(nextPageLink: string, options: Models.UsersListByDataBoxEdgeDeviceNextOptionalParams, callback: msRest.ServiceCallback): void; + listByDataBoxEdgeDeviceNext(nextPageLink: string, options?: Models.UsersListByDataBoxEdgeDeviceNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -316,6 +315,10 @@ const listByDataBoxEdgeDeviceNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion, + Parameters.filter + ], headerParameters: [ Parameters.acceptLanguage ],