Skip to content

Commit

Permalink
Generated from 38778adc349a3a32033c2693cf10edb867a11f59
Browse files Browse the repository at this point in the history
Added trenton metadata
  • Loading branch information
SDK Automation committed Jul 24, 2020
1 parent 1043492 commit 2af29df
Show file tree
Hide file tree
Showing 10 changed files with 149 additions and 99 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,25 +38,25 @@ export class AzureNetAppFilesManagementClientContext extends msRestAzure.AzureSe
if (!options) {
options = {};
}
if (!options.userAgent) {
if(!options.userAgent) {
const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
}

super(credentials, options);

this.apiVersion = '2019-11-01';
this.apiVersion = '2020-02-01';
this.acceptLanguage = 'en-US';
this.longRunningOperationRetryTimeout = 30;
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
this.requestContentType = "application/json; charset=utf-8";
this.credentials = credentials;
this.subscriptionId = subscriptionId;

if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
this.acceptLanguage = options.acceptLanguage;
}
if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
}
}
Expand Down
3 changes: 2 additions & 1 deletion sdk/netapp/arm-netapp/src/models/accountsMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@ export {
VolumePatch,
VolumePatchPropertiesExportPolicy,
VolumePropertiesDataProtection,
VolumePropertiesExportPolicy
VolumePropertiesExportPolicy,
VolumeSnapshotProperties
} from "../models/mappers";
72 changes: 46 additions & 26 deletions sdk/netapp/arm-netapp/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,11 @@ export interface ActiveDirectory {
* The Active Directory site the service will limit Domain Controller discovery to
*/
site?: string;
/**
* Users to be added to the Built-in Backup Operator active directory group. A list of unique
* usernames without domain specifier
*/
backupOperators?: string[];
}

/**
Expand Down Expand Up @@ -394,11 +399,11 @@ export interface ExportPolicyRule {
*/
cifs?: boolean;
/**
* Allows NFSv3 protocol
* Allows NFSv3 protocol. Enable only for NFSv3 type volumes
*/
nfsv3?: boolean;
/**
* Allows NFSv4.1 protocol
* Allows NFSv4.1 protocol. Enable only for NFSv4.1 type volumes
*/
nfsv41?: boolean;
/**
Expand Down Expand Up @@ -490,6 +495,16 @@ export interface ReplicationObject {
remoteVolumeRegion?: string;
}

/**
* Volume Snapshot Properties
*/
export interface VolumeSnapshotProperties {
/**
* Snapshot Policy ResourceId
*/
snapshotPolicyId?: string;
}

/**
* DataProtection type volumes include an object containing details of the replication
* @summary DataProtection
Expand All @@ -499,6 +514,10 @@ export interface VolumePropertiesDataProtection {
* Replication. Replication properties
*/
replication?: ReplicationObject;
/**
* Snapshot. Snapshot properties.
*/
snapshot?: VolumeSnapshotProperties;
}

/**
Expand Down Expand Up @@ -593,6 +612,11 @@ export interface Volume extends BaseResource {
* Restoring
*/
isRestoring?: boolean;
/**
* If enabled (true) the volume will contain a read-only .snapshot directory which provides
* access to each of the volume's snapshots (default to true).
*/
snapshotDirectoryVisible?: boolean;
}

/**
Expand Down Expand Up @@ -771,10 +795,6 @@ export interface Snapshot extends BaseResource {
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly snapshotId?: string;
/**
* fileSystemId. UUID v4 used to identify the FileSystem
*/
fileSystemId?: string;
/**
* name. The creation date of the snapshot
* **NOTE: This property will not be serialized. It can only be populated by the server.**
Expand Down Expand Up @@ -847,26 +867,6 @@ export interface VolumesBeginAuthorizeReplicationOptionalParams extends msRest.R
remoteVolumeResourceId?: string;
}

/**
* Optional Parameters.
*/
export interface SnapshotsCreateOptionalParams extends msRest.RequestOptionsBase {
/**
* fileSystemId UUID v4 used to identify the FileSystem
*/
fileSystemId?: string;
}

/**
* Optional Parameters.
*/
export interface SnapshotsBeginCreateOptionalParams extends msRest.RequestOptionsBase {
/**
* fileSystemId UUID v4 used to identify the FileSystem
*/
fileSystemId?: string;
}

/**
* An interface representing AzureNetAppFilesManagementClientOptions.
*/
Expand Down Expand Up @@ -1134,6 +1134,26 @@ export type AccountsBeginCreateOrUpdateResponse = NetAppAccount & {
};
};

/**
* Contains response data for the beginUpdate operation.
*/
export type AccountsBeginUpdateResponse = NetAppAccount & {
/**
* 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: NetAppAccount;
};
};

/**
* Contains response data for the list operation.
*/
Expand Down
51 changes: 40 additions & 11 deletions sdk/netapp/arm-netapp/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,17 @@ export const ActiveDirectory: msRest.CompositeMapper = {
type: {
name: "String"
}
},
backupOperators: {
serializedName: "backupOperators",
type: {
name: "Sequence",
element: {
type: {
name: "String"
}
}
}
}
}
}
Expand Down Expand Up @@ -800,6 +811,22 @@ export const ReplicationObject: msRest.CompositeMapper = {
}
};

export const VolumeSnapshotProperties: msRest.CompositeMapper = {
serializedName: "volumeSnapshotProperties",
type: {
name: "Composite",
className: "VolumeSnapshotProperties",
modelProperties: {
snapshotPolicyId: {
serializedName: "snapshotPolicyId",
type: {
name: "String"
}
}
}
}
};

export const VolumePropertiesDataProtection: msRest.CompositeMapper = {
serializedName: "volumeProperties_dataProtection",
type: {
Expand All @@ -812,6 +839,13 @@ export const VolumePropertiesDataProtection: msRest.CompositeMapper = {
name: "Composite",
className: "ReplicationObject"
}
},
snapshot: {
serializedName: "snapshot",
type: {
name: "Composite",
className: "VolumeSnapshotProperties"
}
}
}
}
Expand Down Expand Up @@ -990,6 +1024,12 @@ export const Volume: msRest.CompositeMapper = {
type: {
name: "Boolean"
}
},
snapshotDirectoryVisible: {
serializedName: "properties.snapshotDirectoryVisible",
type: {
name: "Boolean"
}
}
}
}
Expand Down Expand Up @@ -1292,17 +1332,6 @@ export const Snapshot: msRest.CompositeMapper = {
name: "String"
}
},
fileSystemId: {
serializedName: "properties.fileSystemId",
constraints: {
MaxLength: 36,
MinLength: 36,
Pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/
},
type: {
name: "String"
}
},
created: {
readOnly: true,
serializedName: "properties.created",
Expand Down
2 changes: 1 addition & 1 deletion sdk/netapp/arm-netapp/src/models/parameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const apiVersion: msRest.OperationQueryParameter = {
mapper: {
required: true,
serializedName: "api-version",
defaultValue: '2019-11-01',
defaultValue: '2020-02-01',
type: {
name: "String"
}
Expand Down
3 changes: 2 additions & 1 deletion sdk/netapp/arm-netapp/src/models/poolsMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@ export {
VolumePatch,
VolumePatchPropertiesExportPolicy,
VolumePropertiesDataProtection,
VolumePropertiesExportPolicy
VolumePropertiesExportPolicy,
VolumeSnapshotProperties
} from "../models/mappers";
3 changes: 2 additions & 1 deletion sdk/netapp/arm-netapp/src/models/snapshotsMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@ export {
VolumePatch,
VolumePatchPropertiesExportPolicy,
VolumePropertiesDataProtection,
VolumePropertiesExportPolicy
VolumePropertiesExportPolicy,
VolumeSnapshotProperties
} from "../models/mappers";
3 changes: 2 additions & 1 deletion sdk/netapp/arm-netapp/src/models/volumesMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ export {
VolumePatchPropertiesExportPolicy,
VolumePropertiesDataProtection,
VolumePropertiesExportPolicy,
VolumeRevert
VolumeRevert,
VolumeSnapshotProperties
} from "../models/mappers";
Loading

0 comments on commit 2af29df

Please sign in to comment.