Skip to content

Commit

Permalink
CodeGen from PR 18183 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
config readme.python (Azure#18183)
  • Loading branch information
SDKAuto committed Mar 15, 2022
1 parent 1620c02 commit 187e212
Show file tree
Hide file tree
Showing 9 changed files with 237 additions and 61 deletions.
16 changes: 16 additions & 0 deletions sdk/recoveryservicesbackup/arm-recoveryservicesbackup/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Release History

## 8.2.0 (2022-03-15)

**Features**

- Added Interface TieringPolicy
- Added Type Alias TieringMode
- Interface AzureIaaSVMProtectedItemExtendedInfo has a new optional parameter newestRecoveryPointInArchive
- Interface AzureIaaSVMProtectedItemExtendedInfo has a new optional parameter oldestRecoveryPointInArchive
- Interface AzureIaaSVMProtectedItemExtendedInfo has a new optional parameter oldestRecoveryPointInVault
- Interface AzureVmWorkloadProtectedItemExtendedInfo has a new optional parameter newestRecoveryPointInArchive
- Interface AzureVmWorkloadProtectedItemExtendedInfo has a new optional parameter oldestRecoveryPointInArchive
- Interface AzureVmWorkloadProtectedItemExtendedInfo has a new optional parameter oldestRecoveryPointInVault
- Interface SubProtectionPolicy has a new optional parameter tieringPolicy
- Added Enum KnownTieringMode


## 8.1.0 (2022-02-14)

**Features**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"commit": "7c98de7664d4565c088350015ccd0cfc102eab49",
"commit": "71860bf1bf486de15d91f5b30b568f21b624a551",
"readme": "specification/recoveryservicesbackup/resource-manager/readme.md",
"autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/recoveryservicesbackup/resource-manager/readme.md --use=@autorest/[email protected].20220128.1 --generate-sample=true",
"autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/recoveryservicesbackup/resource-manager/readme.md --use=@autorest/[email protected].20220105.1",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"use": "@autorest/[email protected]"
"release_tool": "@azure-tools/[email protected]",
"use": "@autorest/[email protected]"
}
20 changes: 2 additions & 18 deletions sdk/recoveryservicesbackup/arm-recoveryservicesbackup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for RecoveryServicesBackupClient.",
"version": "8.1.0",
"version": "8.2.0",
"engines": {
"node": ">=12.0.0"
},
Expand Down Expand Up @@ -98,21 +98,5 @@
"docs": "echo skipped"
},
"sideEffects": false,
"//metadata": {
"constantPaths": [
{
"path": "src/recoveryServicesBackupClient.ts",
"prefix": "packageDetails"
}
]
},
"autoPublish": true,
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-recoveryservicesbackup?view=azure-node-preview"
}
"autoPublish": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,10 @@ export type AzureIaaSVMProtectedItem = ProtectedItem & {

// @public
export interface AzureIaaSVMProtectedItemExtendedInfo {
newestRecoveryPointInArchive?: Date;
oldestRecoveryPoint?: Date;
oldestRecoveryPointInArchive?: Date;
oldestRecoveryPointInVault?: Date;
policyInconsistent?: boolean;
recoveryPointCount?: number;
}
Expand All @@ -229,6 +232,9 @@ export type AzureIaaSVMProtectionPolicy = ProtectionPolicy & {
instantRPDetails?: InstantRPAdditionalDetails;
schedulePolicy?: SchedulePolicyUnion;
retentionPolicy?: RetentionPolicyUnion;
tieringPolicy?: {
[propertyName: string]: TieringPolicy;
};
instantRpRetentionRangeInDays?: number;
timeZone?: string;
policyType?: IaasvmPolicyType;
Expand Down Expand Up @@ -401,7 +407,10 @@ export type AzureVmWorkloadProtectedItem = ProtectedItem & {

// @public
export interface AzureVmWorkloadProtectedItemExtendedInfo {
newestRecoveryPointInArchive?: Date;
oldestRecoveryPoint?: Date;
oldestRecoveryPointInArchive?: Date;
oldestRecoveryPointInVault?: Date;
policyState?: string;
recoveryModel?: string;
recoveryPointCount?: number;
Expand Down Expand Up @@ -1670,7 +1679,7 @@ export type IaasVMBackupRequest = BackupRequest & {

// @public
export type IaaSVMContainer = ProtectionContainer & {
containerType: "IaaSVMContainer" | "Microsoft.ClassicCompute/virtualMachines" | "Microsoft.Compute/virtualMachines";
containerType: "IaasVMContainer" | "Microsoft.ClassicCompute/virtualMachines" | "Microsoft.Compute/virtualMachines";
virtualMachineId?: string;
virtualMachineVersion?: string;
resourceGroup?: string;
Expand Down Expand Up @@ -2685,6 +2694,18 @@ export enum KnownSupportStatus {
Supported = "Supported"
}

// @public
export enum KnownTieringMode {
// (undocumented)
DoNotTier = "DoNotTier",
// (undocumented)
Invalid = "Invalid",
// (undocumented)
TierAfter = "TierAfter",
// (undocumented)
TierRecommended = "TierRecommended"
}

// @public
export enum KnownType {
// (undocumented)
Expand Down Expand Up @@ -3350,7 +3371,7 @@ export type ProtectedItemUnion = ProtectedItem | AzureFileshareProtectedItem | A
// @public
export interface ProtectionContainer {
backupManagementType?: BackupManagementType;
containerType: "DPMContainer" | "AzureBackupServerContainer" | "IaaSVMContainer" | "Microsoft.ClassicCompute/virtualMachines" | "Microsoft.Compute/virtualMachines" | "AzureWorkloadContainer" | "SQLAGWorkLoadContainer" | "AzureSqlContainer" | "StorageContainer" | "VMAppContainer" | "GenericContainer" | "Windows";
containerType: "DPMContainer" | "AzureBackupServerContainer" | "IaasVMContainer" | "Microsoft.ClassicCompute/virtualMachines" | "Microsoft.Compute/virtualMachines" | "AzureWorkloadContainer" | "SQLAGWorkLoadContainer" | "AzureSqlContainer" | "StorageContainer" | "VMAppContainer" | "GenericContainer" | "Windows";
friendlyName?: string;
healthStatus?: string;
protectableObjectType?: string;
Expand Down Expand Up @@ -4083,6 +4104,9 @@ export interface SubProtectionPolicy {
policyType?: PolicyType;
retentionPolicy?: RetentionPolicyUnion;
schedulePolicy?: SchedulePolicyUnion;
tieringPolicy?: {
[propertyName: string]: TieringPolicy;
};
}

// @public
Expand All @@ -4102,6 +4126,16 @@ export interface TargetRestoreInfo {
targetDirectoryForFileRestore?: string;
}

// @public
export type TieringMode = string;

// @public
export interface TieringPolicy {
duration?: number;
durationType?: RetentionDurationType;
tieringMode?: TieringMode;
}

// @public
export interface TokenInformation {
expiryTimeInUtcTicks?: number;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,7 @@ export interface ProtectionContainer {
containerType:
| "DPMContainer"
| "AzureBackupServerContainer"
| "IaaSVMContainer"
| "IaasVMContainer"
| "Microsoft.ClassicCompute/virtualMachines"
| "Microsoft.Compute/virtualMachines"
| "AzureWorkloadContainer"
Expand Down Expand Up @@ -1122,6 +1122,12 @@ export interface SubProtectionPolicy {
schedulePolicy?: SchedulePolicyUnion;
/** Retention policy with the details on backup copy retention ranges. */
retentionPolicy?: RetentionPolicyUnion;
/**
* Tiering policy to automatically move RPs to another tier.
* Key is Target Tier, defined in RecoveryPointTierType enum.
* Tiering policy specifies the criteria to move RP to the target tier.
*/
tieringPolicy?: { [propertyName: string]: TieringPolicy };
}

/** Base class for backup schedule. */
Expand All @@ -1140,10 +1146,40 @@ export interface RetentionPolicy {
retentionPolicyType: "LongTermRetentionPolicy" | "SimpleRetentionPolicy";
}

/**
* Tiering Policy for a target tier.
* If the policy is not specified for a given target tier, service retains the existing configured tiering policy for that tier
*/
export interface TieringPolicy {
/**
* Tiering Mode to control automatic tiering of recovery points. Supported values are:
* 1. TierRecommended: Tier all recovery points recommended to be tiered
* 2. TierAfter: Tier all recovery points after a fixed period, as specified in duration + durationType below.
* 3. DoNotTier: Do not tier any recovery points
*/
tieringMode?: TieringMode;
/**
* Number of days/weeks/months/years to retain backups in current tier before tiering.
* Used only if TieringMode is set to TierAfter
*/
duration?: number;
/**
* Retention duration type: days/weeks/months/years
* Used only if TieringMode is set to TierAfter
*/
durationType?: RetentionDurationType;
}

/** Additional information on Azure IaaS VM specific backup item. */
export interface AzureIaaSVMProtectedItemExtendedInfo {
/** The oldest backup copy available for this backup item. */
/** The oldest backup copy available for this backup item across all tiers. */
oldestRecoveryPoint?: Date;
/** The oldest backup copy available for this backup item in vault tier */
oldestRecoveryPointInVault?: Date;
/** The oldest backup copy available for this backup item in archive tier */
oldestRecoveryPointInArchive?: Date;
/** The latest backup copy available for this backup item in archive tier */
newestRecoveryPointInArchive?: Date;
/** Number of backup copies available for this backup item. */
recoveryPointCount?: number;
/** Specifies if backup policy associated with the backup item is inconsistent. */
Expand Down Expand Up @@ -1273,8 +1309,14 @@ export interface AzureStorageJobTaskDetails {

/** Additional information on Azure Workload for SQL specific backup item. */
export interface AzureVmWorkloadProtectedItemExtendedInfo {
/** The oldest backup copy available for this backup item. */
/** The oldest backup copy available for this backup item across all tiers. */
oldestRecoveryPoint?: Date;
/** The oldest backup copy available for this backup item in vault tier */
oldestRecoveryPointInVault?: Date;
/** The oldest backup copy available for this backup item in archive tier */
oldestRecoveryPointInArchive?: Date;
/** The latest backup copy available for this backup item in archive tier */
newestRecoveryPointInArchive?: Date;
/** Number of backup copies available for this backup item. */
recoveryPointCount?: number;
/** Indicates consistency of policy object and policy applied to this backup item. */
Expand Down Expand Up @@ -2678,6 +2720,12 @@ export type AzureIaaSVMProtectionPolicy = ProtectionPolicy & {
schedulePolicy?: SchedulePolicyUnion;
/** Retention policy with the details on backup copy retention ranges. */
retentionPolicy?: RetentionPolicyUnion;
/**
* Tiering policy to automatically move RPs to another tier
* Key is Target Tier, defined in RecoveryPointTierType enum.
* Tiering policy specifies the criteria to move RP to the target tier.
*/
tieringPolicy?: { [propertyName: string]: TieringPolicy };
/** Instant RP retention policy range in days */
instantRpRetentionRangeInDays?: number;
/** TimeZone optional input as string. For example: TimeZone = "Pacific Standard Time". */
Expand Down Expand Up @@ -2933,7 +2981,7 @@ export type DpmContainer = ProtectionContainer & {
export type IaaSVMContainer = ProtectionContainer & {
/** Polymorphic discriminator, which specifies the different types this object can be */
containerType:
| "IaaSVMContainer"
| "IaasVMContainer"
| "Microsoft.ClassicCompute/virtualMachines"
| "Microsoft.Compute/virtualMachines";
/** Fully qualified ARM url of the virtual machine represented by this Azure IaaS VM container. */
Expand Down Expand Up @@ -4241,6 +4289,48 @@ export enum KnownPolicyType {
*/
export type PolicyType = string;

/** Known values of {@link TieringMode} that the service accepts. */
export enum KnownTieringMode {
Invalid = "Invalid",
TierRecommended = "TierRecommended",
TierAfter = "TierAfter",
DoNotTier = "DoNotTier"
}

/**
* Defines values for TieringMode. \
* {@link KnownTieringMode} can be used interchangeably with TieringMode,
* this enum contains the known values that the service supports.
* ### Known values supported by the service
* **Invalid** \
* **TierRecommended** \
* **TierAfter** \
* **DoNotTier**
*/
export type TieringMode = string;

/** Known values of {@link RetentionDurationType} that the service accepts. */
export enum KnownRetentionDurationType {
Invalid = "Invalid",
Days = "Days",
Weeks = "Weeks",
Months = "Months",
Years = "Years"
}

/**
* Defines values for RetentionDurationType. \
* {@link KnownRetentionDurationType} can be used interchangeably with RetentionDurationType,
* this enum contains the known values that the service supports.
* ### Known values supported by the service
* **Invalid** \
* **Days** \
* **Weeks** \
* **Months** \
* **Years**
*/
export type RetentionDurationType = string;

/** Known values of {@link HealthStatus} that the service accepts. */
export enum KnownHealthStatus {
Passed = "Passed",
Expand Down Expand Up @@ -4447,28 +4537,6 @@ export enum KnownRestorePointQueryType {
*/
export type RestorePointQueryType = string;

/** Known values of {@link RetentionDurationType} that the service accepts. */
export enum KnownRetentionDurationType {
Invalid = "Invalid",
Days = "Days",
Weeks = "Weeks",
Months = "Months",
Years = "Years"
}

/**
* Defines values for RetentionDurationType. \
* {@link KnownRetentionDurationType} can be used interchangeably with RetentionDurationType,
* this enum contains the known values that the service supports.
* ### Known values supported by the service
* **Invalid** \
* **Days** \
* **Weeks** \
* **Months** \
* **Years**
*/
export type RetentionDurationType = string;

/** Known values of {@link JobStatus} that the service accepts. */
export enum KnownJobStatus {
Invalid = "Invalid",
Expand Down
Loading

0 comments on commit 187e212

Please sign in to comment.