CopyBackup Swift3 Example
func chilkatTest() {
// This example requires the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
let rest = CkoRest()!
var success: Bool
let authAws = CkoAuthAws()!
authAws.accessKey = "AWS_ACCESS_KEY"
authAws.secretKey = "AWS_SECRET_KEY"
// Don't forget to change the region to your particular region. (Also make the same change in the call to Connect below.)
authAws.region = "us-west-2"
authAws.serviceName = "fsx"
// SetAuthAws causes Chilkat to automatically add the following headers: Authorization, X-Amz-Date
rest.setAuthAws(authAws)
// URL: https://fsx.us-west-2.amazonaws.com/
// Use the same region as specified above.
success = rest.connect("fsx.us-west-2.amazonaws.com", port: 443, tls: true, autoReconnect: true)
if success != true {
print("ConnectFailReason: \(rest.connectFailReason.intValue)")
print("\(rest.lastErrorText!)")
return
}
// The following code creates the JSON request body.
// The JSON created by this code is shown below.
// Use this online tool to generate code from sample JSON:
// Generate Code to Create JSON
let json = CkoJsonObject()!
json.update("ClientRequestToken", value: "string")
json.updateInt("CopyTags", value: 123)
json.update("KmsKeyId", value: "string")
json.update("SourceBackupId", value: "string")
json.update("SourceRegion", value: "string")
json.update("Tags[0].Key", value: "string")
json.update("Tags[0].Value", value: "string")
// The JSON request body created by the above code:
// {
// "ClientRequestToken": "string",
// "CopyTags": boolean,
// "KmsKeyId": "string",
// "SourceBackupId": "string",
// "SourceRegion": "string",
// "Tags": [
// {
// "Key": "string",
// "Value": "string"
// }
// ]
// }
rest.addHeader("Content-Type", value: "application/x-amz-json-1.1")
rest.addHeader("X-Amz-Target", value: "AWSSimbaAPIService_v20180301.CopyBackup")
let sbRequestBody = CkoStringBuilder()!
json.emitSb(sbRequestBody)
let sbResponseBody = CkoStringBuilder()!
success = rest.fullRequestSb("POST", uriPath: "/", requestBody: sbRequestBody, responseBody: sbResponseBody)
if success != true {
print("\(rest.lastErrorText!)")
return
}
var respStatusCode: Int = rest.responseStatusCode.intValue
print("response status code = \(respStatusCode)")
if respStatusCode != 200 {
print("Response Header:")
print("\(rest.responseHeader!)")
print("Response Body:")
print("\(sbResponseBody.getAsString()!)")
return
}
let jResp = CkoJsonObject()!
jResp.loadSb(sbResponseBody)
// The following code parses the JSON response.
// A sample JSON response is shown below the sample code.
// Use this online tool to generate parsing code from sample JSON:
// Generate Parsing Code from JSON
var AdministrativeActionType: String?
var RequestTime: Int
var Status: String?
var TargetFileSystemValues: String?
var TargetSnapshotValuesCreationTime: Int
var TargetSnapshotValuesLifecycle: String?
var TargetSnapshotValuesName: String?
var TargetSnapshotValuesResourceARN: String?
var SnapshotId: String?
var TargetSnapshotValuesVolumeId: String?
var TargetVolumeValuesCreationTime: Int
var TargetVolumeValuesFileSystemId: String?
var TargetVolumeValuesLifecycle: String?
var TargetVolumeValuesName: String?
var OntapConfigurationFlexCacheEndpointType: String?
var OntapConfigurationJunctionPath: String?
var OntapConfigurationOntapVolumeType: String?
var OntapConfigurationSecurityStyle: String?
var OntapConfigurationSizeInMegabytes: Int
var OntapConfigurationStorageEfficiencyEnabled: Int
var OntapConfigurationStorageVirtualMachineId: String?
var OntapConfigurationStorageVirtualMachineRoot: Int
var TieringPolicyCoolingPeriod: Int
var OntapConfigurationUUID: String?
var OpenZFSConfigurationCopyTagsToSnapshots: Int
var OriginSnapshotCopyStrategy: String?
var OriginSnapshotSnapshotARN: String?
var OpenZFSConfigurationParentVolumeId: String?
var OpenZFSConfigurationReadOnly: Int
var OpenZFSConfigurationRecordSizeKiB: Int
var OpenZFSConfigurationStorageCapacityQuotaGiB: Int
var OpenZFSConfigurationStorageCapacityReservationGiB: Int
var OpenZFSConfigurationVolumePath: String?
var TargetVolumeValuesResourceARN: String?
var TargetVolumeValuesVolumeId: String?
var TargetVolumeValuesVolumeType: String?
var j: Int
var count_j: Int
var strVal: String?
var Key: String?
var Value: String?
var k: Int
var count_k: Int
var Clients: String?
var json1: CkoJsonObject?
var i1: Int
var count_i1: Int
var Id: Int
var TargetFileSystemValuesCreationTime: Int
var TargetFileSystemValuesDNSName: String?
var TargetFileSystemValuesFileSystemId: String?
var TargetFileSystemValuesFileSystemType: String?
var TargetFileSystemValuesFileSystemTypeVersion: String?
var TargetFileSystemValuesKmsKeyId: String?
var TargetFileSystemValuesLifecycle: String?
var LustreConfigurationAutomaticBackupRetentionDays: Int
var LustreConfigurationCopyTagsToBackups: Int
var LustreConfigurationDailyAutomaticBackupStartTime: String?
var LustreConfigurationDataCompressionType: String?
var DataRepositoryConfigurationAutoImportPolicy: String?
var DataRepositoryConfigurationExportPath: String?
var DataRepositoryConfigurationImportedFileChunkSize: Int
var DataRepositoryConfigurationImportPath: String?
var LustreConfigurationDeploymentType: String?
var LustreConfigurationDriveCacheType: String?
var LogConfigurationDestination: String?
var LogConfigurationLevel: String?
var LustreConfigurationMountName: String?
var LustreConfigurationPerUnitStorageThroughput: Int
var LustreConfigurationWeeklyMaintenanceStartTime: String?
var OntapConfigurationEndpointIpAddressRange: String?
var OntapConfigurationPreferredSubnetId: String?
var OntapConfigurationThroughputCapacity: Int
var OpenZFSConfigurationCopyTagsToVolumes: Int
var OpenZFSConfigurationRootVolumeId: String?
var TargetFileSystemValuesOwnerId: String?
var TargetFileSystemValuesResourceARN: String?
var TargetFileSystemValuesStorageCapacity: Int
var TargetFileSystemValuesStorageType: String?
var TargetFileSystemValuesVpcId: String?
var AuditLogConfigurationAuditLogDestination: String?
var AuditLogConfigurationFileAccessAuditLogLevel: String?
var AuditLogConfigurationFileShareAccessAuditLogLevel: String?
var WindowsConfigurationPreferredFileServerIp: String?
var WindowsConfigurationRemoteAdministrationEndpoint: String?
var SelfManagedActiveDirectoryConfigurationFileSystemAdministratorsGroup: String?
var SelfManagedActiveDirectoryConfigurationOrganizationalUnitDistinguishedName: String?
var SelfManagedActiveDirectoryConfigurationUserName: String?
var TargetSnapshotValuesSnapshotId: String?
var TargetVolumeValues: String?
var BackupId: String? = jResp.string(of: "Backup.BackupId")
var CreationTime: Int = jResp.int(of: "Backup.CreationTime").intValue
var ActiveDirectoryId: String? = jResp.string(of: "Backup.DirectoryInformation.ActiveDirectoryId")
var DomainName: String? = jResp.string(of: "Backup.DirectoryInformation.DomainName")
var ResourceARN: String? = jResp.string(of: "Backup.DirectoryInformation.ResourceARN")
var Message: String? = jResp.string(of: "Backup.FailureDetails.Message")
var FileSystemCreationTime: Int = jResp.int(of: "Backup.FileSystem.CreationTime").intValue
var DNSName: String? = jResp.string(of: "Backup.FileSystem.DNSName")
var FailureDetailsMessage: String? = jResp.string(of: "Backup.FileSystem.FailureDetails.Message")
var FileSystemId: String? = jResp.string(of: "Backup.FileSystem.FileSystemId")
var FileSystemType: String? = jResp.string(of: "Backup.FileSystem.FileSystemType")
var FileSystemTypeVersion: String? = jResp.string(of: "Backup.FileSystem.FileSystemTypeVersion")
var KmsKeyId: String? = jResp.string(of: "Backup.FileSystem.KmsKeyId")
var Lifecycle: String? = jResp.string(of: "Backup.FileSystem.Lifecycle")
var AutomaticBackupRetentionDays: Int = jResp.int(of: "Backup.FileSystem.LustreConfiguration.AutomaticBackupRetentionDays").intValue
var CopyTagsToBackups: Int = jResp.int(of: "Backup.FileSystem.LustreConfiguration.CopyTagsToBackups").intValue
var DailyAutomaticBackupStartTime: String? = jResp.string(of: "Backup.FileSystem.LustreConfiguration.DailyAutomaticBackupStartTime")
var DataCompressionType: String? = jResp.string(of: "Backup.FileSystem.LustreConfiguration.DataCompressionType")
var AutoImportPolicy: String? = jResp.string(of: "Backup.FileSystem.LustreConfiguration.DataRepositoryConfiguration.AutoImportPolicy")
var ExportPath: String? = jResp.string(of: "Backup.FileSystem.LustreConfiguration.DataRepositoryConfiguration.ExportPath")
FailureDetailsMessage = jResp.string(of: "Backup.FileSystem.LustreConfiguration.DataRepositoryConfiguration.FailureDetails.Message")
var ImportedFileChunkSize: Int = jResp.int(of: "Backup.FileSystem.LustreConfiguration.DataRepositoryConfiguration.ImportedFileChunkSize").intValue
var ImportPath: String? = jResp.string(of: "Backup.FileSystem.LustreConfiguration.DataRepositoryConfiguration.ImportPath")
var DataRepositoryConfigurationLifecycle: String? = jResp.string(of: "Backup.FileSystem.LustreConfiguration.DataRepositoryConfiguration.Lifecycle")
var DeploymentType: String? = jResp.string(of: "Backup.FileSystem.LustreConfiguration.DeploymentType")
var DriveCacheType: String? = jResp.string(of: "Backup.FileSystem.LustreConfiguration.DriveCacheType")
var Destination: String? = jResp.string(of: "Backup.FileSystem.LustreConfiguration.LogConfiguration.Destination")
var Level: String? = jResp.string(of: "Backup.FileSystem.LustreConfiguration.LogConfiguration.Level")
var MountName: String? = jResp.string(of: "Backup.FileSystem.LustreConfiguration.MountName")
var PerUnitStorageThroughput: Int = jResp.int(of: "Backup.FileSystem.LustreConfiguration.PerUnitStorageThroughput").intValue
var WeeklyMaintenanceStartTime: String? = jResp.string(of: "Backup.FileSystem.LustreConfiguration.WeeklyMaintenanceStartTime")
var OntapConfigurationAutomaticBackupRetentionDays: Int = jResp.int(of: "Backup.FileSystem.OntapConfiguration.AutomaticBackupRetentionDays").intValue
var OntapConfigurationDailyAutomaticBackupStartTime: String? = jResp.string(of: "Backup.FileSystem.OntapConfiguration.DailyAutomaticBackupStartTime")
var OntapConfigurationDeploymentType: String? = jResp.string(of: "Backup.FileSystem.OntapConfiguration.DeploymentType")
var Iops: Int = jResp.int(of: "Backup.FileSystem.OntapConfiguration.DiskIopsConfiguration.Iops").intValue
var Mode: String? = jResp.string(of: "Backup.FileSystem.OntapConfiguration.DiskIopsConfiguration.Mode")
var EndpointIpAddressRange: String? = jResp.string(of: "Backup.FileSystem.OntapConfiguration.EndpointIpAddressRange")
var InterclusterDNSName: String? = jResp.string(of: "Backup.FileSystem.OntapConfiguration.Endpoints.Intercluster.DNSName")
var ManagementDNSName: String? = jResp.string(of: "Backup.FileSystem.OntapConfiguration.Endpoints.Management.DNSName")
var PreferredSubnetId: String? = jResp.string(of: "Backup.FileSystem.OntapConfiguration.PreferredSubnetId")
var ThroughputCapacity: Int = jResp.int(of: "Backup.FileSystem.OntapConfiguration.ThroughputCapacity").intValue
var OntapConfigurationWeeklyMaintenanceStartTime: String? = jResp.string(of: "Backup.FileSystem.OntapConfiguration.WeeklyMaintenanceStartTime")
var OpenZFSConfigurationAutomaticBackupRetentionDays: Int = jResp.int(of: "Backup.FileSystem.OpenZFSConfiguration.AutomaticBackupRetentionDays").intValue
var OpenZFSConfigurationCopyTagsToBackups: Int = jResp.int(of: "Backup.FileSystem.OpenZFSConfiguration.CopyTagsToBackups").intValue
var CopyTagsToVolumes: Int = jResp.int(of: "Backup.FileSystem.OpenZFSConfiguration.CopyTagsToVolumes").intValue
var OpenZFSConfigurationDailyAutomaticBackupStartTime: String? = jResp.string(of: "Backup.FileSystem.OpenZFSConfiguration.DailyAutomaticBackupStartTime")
var OpenZFSConfigurationDeploymentType: String? = jResp.string(of: "Backup.FileSystem.OpenZFSConfiguration.DeploymentType")
var DiskIopsConfigurationIops: Int = jResp.int(of: "Backup.FileSystem.OpenZFSConfiguration.DiskIopsConfiguration.Iops").intValue
var DiskIopsConfigurationMode: String? = jResp.string(of: "Backup.FileSystem.OpenZFSConfiguration.DiskIopsConfiguration.Mode")
var RootVolumeId: String? = jResp.string(of: "Backup.FileSystem.OpenZFSConfiguration.RootVolumeId")
var OpenZFSConfigurationThroughputCapacity: Int = jResp.int(of: "Backup.FileSystem.OpenZFSConfiguration.ThroughputCapacity").intValue
var OpenZFSConfigurationWeeklyMaintenanceStartTime: String? = jResp.string(of: "Backup.FileSystem.OpenZFSConfiguration.WeeklyMaintenanceStartTime")
var OwnerId: String? = jResp.string(of: "Backup.FileSystem.OwnerId")
var FileSystemResourceARN: String? = jResp.string(of: "Backup.FileSystem.ResourceARN")
var StorageCapacity: Int = jResp.int(of: "Backup.FileSystem.StorageCapacity").intValue
var StorageType: String? = jResp.string(of: "Backup.FileSystem.StorageType")
var VpcId: String? = jResp.string(of: "Backup.FileSystem.VpcId")
var WindowsConfigurationActiveDirectoryId: String? = jResp.string(of: "Backup.FileSystem.WindowsConfiguration.ActiveDirectoryId")
var AuditLogDestination: String? = jResp.string(of: "Backup.FileSystem.WindowsConfiguration.AuditLogConfiguration.AuditLogDestination")
var FileAccessAuditLogLevel: String? = jResp.string(of: "Backup.FileSystem.WindowsConfiguration.AuditLogConfiguration.FileAccessAuditLogLevel")
var FileShareAccessAuditLogLevel: String? = jResp.string(of: "Backup.FileSystem.WindowsConfiguration.AuditLogConfiguration.FileShareAccessAuditLogLevel")
var WindowsConfigurationAutomaticBackupRetentionDays: Int = jResp.int(of: "Backup.FileSystem.WindowsConfiguration.AutomaticBackupRetentionDays").intValue
var WindowsConfigurationCopyTagsToBackups: Int = jResp.int(of: "Backup.FileSystem.WindowsConfiguration.CopyTagsToBackups").intValue
var WindowsConfigurationDailyAutomaticBackupStartTime: String? = jResp.string(of: "Backup.FileSystem.WindowsConfiguration.DailyAutomaticBackupStartTime")
var WindowsConfigurationDeploymentType: String? = jResp.string(of: "Backup.FileSystem.WindowsConfiguration.DeploymentType")
var PreferredFileServerIp: String? = jResp.string(of: "Backup.FileSystem.WindowsConfiguration.PreferredFileServerIp")
var WindowsConfigurationPreferredSubnetId: String? = jResp.string(of: "Backup.FileSystem.WindowsConfiguration.PreferredSubnetId")
var RemoteAdministrationEndpoint: String? = jResp.string(of: "Backup.FileSystem.WindowsConfiguration.RemoteAdministrationEndpoint")
var SelfManagedActiveDirectoryConfigurationDomainName: String? = jResp.string(of: "Backup.FileSystem.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.DomainName")
var FileSystemAdministratorsGroup: String? = jResp.string(of: "Backup.FileSystem.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.FileSystemAdministratorsGroup")
var OrganizationalUnitDistinguishedName: String? = jResp.string(of: "Backup.FileSystem.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.OrganizationalUnitDistinguishedName")
var UserName: String? = jResp.string(of: "Backup.FileSystem.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.UserName")
var WindowsConfigurationThroughputCapacity: Int = jResp.int(of: "Backup.FileSystem.WindowsConfiguration.ThroughputCapacity").intValue
var WindowsConfigurationWeeklyMaintenanceStartTime: String? = jResp.string(of: "Backup.FileSystem.WindowsConfiguration.WeeklyMaintenanceStartTime")
var BackupKmsKeyId: String? = jResp.string(of: "Backup.KmsKeyId")
var BackupLifecycle: String? = jResp.string(of: "Backup.Lifecycle")
var BackupOwnerId: String? = jResp.string(of: "Backup.OwnerId")
var ProgressPercent: Int = jResp.int(of: "Backup.ProgressPercent").intValue
var BackupResourceARN: String? = jResp.string(of: "Backup.ResourceARN")
var ResourceType: String? = jResp.string(of: "Backup.ResourceType")
var SourceBackupId: String? = jResp.string(of: "Backup.SourceBackupId")
var SourceBackupRegion: String? = jResp.string(of: "Backup.SourceBackupRegion")
var v_Type: String? = jResp.string(of: "Backup.Type")
var VolumeCreationTime: Int = jResp.int(of: "Backup.Volume.CreationTime").intValue
var VolumeFileSystemId: String? = jResp.string(of: "Backup.Volume.FileSystemId")
var VolumeLifecycle: String? = jResp.string(of: "Backup.Volume.Lifecycle")
var LifecycleTransitionReasonMessage: String? = jResp.string(of: "Backup.Volume.LifecycleTransitionReason.Message")
var Name: String? = jResp.string(of: "Backup.Volume.Name")
var FlexCacheEndpointType: String? = jResp.string(of: "Backup.Volume.OntapConfiguration.FlexCacheEndpointType")
var JunctionPath: String? = jResp.string(of: "Backup.Volume.OntapConfiguration.JunctionPath")
var OntapVolumeType: String? = jResp.string(of: "Backup.Volume.OntapConfiguration.OntapVolumeType")
var SecurityStyle: String? = jResp.string(of: "Backup.Volume.OntapConfiguration.SecurityStyle")
var SizeInMegabytes: Int = jResp.int(of: "Backup.Volume.OntapConfiguration.SizeInMegabytes").intValue
var StorageEfficiencyEnabled: Int = jResp.int(of: "Backup.Volume.OntapConfiguration.StorageEfficiencyEnabled").intValue
var StorageVirtualMachineId: String? = jResp.string(of: "Backup.Volume.OntapConfiguration.StorageVirtualMachineId")
var StorageVirtualMachineRoot: Int = jResp.int(of: "Backup.Volume.OntapConfiguration.StorageVirtualMachineRoot").intValue
var CoolingPeriod: Int = jResp.int(of: "Backup.Volume.OntapConfiguration.TieringPolicy.CoolingPeriod").intValue
var TieringPolicyName: String? = jResp.string(of: "Backup.Volume.OntapConfiguration.TieringPolicy.Name")
var UUID: String? = jResp.string(of: "Backup.Volume.OntapConfiguration.UUID")
var CopyTagsToSnapshots: Int = jResp.int(of: "Backup.Volume.OpenZFSConfiguration.CopyTagsToSnapshots").intValue
var OpenZFSConfigurationDataCompressionType: String? = jResp.string(of: "Backup.Volume.OpenZFSConfiguration.DataCompressionType")
var CopyStrategy: String? = jResp.string(of: "Backup.Volume.OpenZFSConfiguration.OriginSnapshot.CopyStrategy")
var SnapshotARN: String? = jResp.string(of: "Backup.Volume.OpenZFSConfiguration.OriginSnapshot.SnapshotARN")
var ParentVolumeId: String? = jResp.string(of: "Backup.Volume.OpenZFSConfiguration.ParentVolumeId")
var ReadOnly: Int = jResp.int(of: "Backup.Volume.OpenZFSConfiguration.ReadOnly").intValue
var RecordSizeKiB: Int = jResp.int(of: "Backup.Volume.OpenZFSConfiguration.RecordSizeKiB").intValue
var StorageCapacityQuotaGiB: Int = jResp.int(of: "Backup.Volume.OpenZFSConfiguration.StorageCapacityQuotaGiB").intValue
var StorageCapacityReservationGiB: Int = jResp.int(of: "Backup.Volume.OpenZFSConfiguration.StorageCapacityReservationGiB").intValue
var VolumePath: String? = jResp.string(of: "Backup.Volume.OpenZFSConfiguration.VolumePath")
var VolumeResourceARN: String? = jResp.string(of: "Backup.Volume.ResourceARN")
var VolumeId: String? = jResp.string(of: "Backup.Volume.VolumeId")
var VolumeType: String? = jResp.string(of: "Backup.Volume.VolumeType")
var i: Int = 0
var count_i: Int = jResp.size(ofArray: "Backup.FileSystem.AdministrativeActions").intValue
while i < count_i {
jResp.i = i
AdministrativeActionType = jResp.string(of: "Backup.FileSystem.AdministrativeActions[i].AdministrativeActionType")
FailureDetailsMessage = jResp.string(of: "Backup.FileSystem.AdministrativeActions[i].FailureDetails.Message")
ProgressPercent = jResp.int(of: "Backup.FileSystem.AdministrativeActions[i].ProgressPercent").intValue
RequestTime = jResp.int(of: "Backup.FileSystem.AdministrativeActions[i].RequestTime").intValue
Status = jResp.string(of: "Backup.FileSystem.AdministrativeActions[i].Status")
TargetFileSystemValues = jResp.string(of: "Backup.FileSystem.AdministrativeActions[i].TargetFileSystemValues")
TargetSnapshotValuesCreationTime = jResp.int(of: "Backup.FileSystem.AdministrativeActions[i].TargetSnapshotValues.CreationTime").intValue
TargetSnapshotValuesLifecycle = jResp.string(of: "Backup.FileSystem.AdministrativeActions[i].TargetSnapshotValues.Lifecycle")
LifecycleTransitionReasonMessage = jResp.string(of: "Backup.FileSystem.AdministrativeActions[i].TargetSnapshotValues.LifecycleTransitionReason.Message")
TargetSnapshotValuesName = jResp.string(of: "Backup.FileSystem.AdministrativeActions[i].TargetSnapshotValues.Name")
TargetSnapshotValuesResourceARN = jResp.string(of: "Backup.FileSystem.AdministrativeActions[i].TargetSnapshotValues.ResourceARN")
SnapshotId = jResp.string(of: "Backup.FileSystem.AdministrativeActions[i].TargetSnapshotValues.SnapshotId")
TargetSnapshotValuesVolumeId = jResp.string(of: "Backup.FileSystem.AdministrativeActions[i].TargetSnapshotValues.VolumeId")
TargetVolumeValuesCreationTime = jResp.int(of: "Backup.FileSystem.AdministrativeActions[i].TargetVolumeValues.CreationTime").intValue
TargetVolumeValuesFileSystemId = jResp.string(of: "Backup.FileSystem.AdministrativeActions[i].TargetVolumeValues.FileSystemId")
TargetVolumeValuesLifecycle = jResp.string(of: "Backup.FileSystem.AdministrativeActions[i].TargetVolumeValues.Lifecycle")
LifecycleTransitionReasonMessage = jResp.string(of: "Backup.FileSystem.AdministrativeActions[i].TargetVolumeValues.LifecycleTransitionReason.Message")
TargetVolumeValuesName = jResp.string(of: "Backup.FileSystem.AdministrativeActions[i].TargetVolumeValues.Name")
OntapConfigurationFlexCacheEndpointType = jResp.string(of: "Backup.FileSystem.AdministrativeActions[i].TargetVolumeValues.OntapConfiguration.FlexCacheEndpointType")
OntapConfigurationJunctionPath = jResp.string(of: "Backup.FileSystem.AdministrativeActions[i].TargetVolumeValues.OntapConfiguration.JunctionPath")
OntapConfigurationOntapVolumeType = jResp.string(of: "Backup.FileSystem.AdministrativeActions[i].TargetVolumeValues.OntapConfiguration.OntapVolumeType")
OntapConfigurationSecurityStyle = jResp.string(of: "Backup.FileSystem.AdministrativeActions[i].TargetVolumeValues.OntapConfiguration.SecurityStyle")
OntapConfigurationSizeInMegabytes = jResp.int(of: "Backup.FileSystem.AdministrativeActions[i].TargetVolumeValues.OntapConfiguration.SizeInMegabytes").intValue
OntapConfigurationStorageEfficiencyEnabled = jResp.int(of: "Backup.FileSystem.AdministrativeActions[i].TargetVolumeValues.OntapConfiguration.StorageEfficiencyEnabled").intValue
OntapConfigurationStorageVirtualMachineId = jResp.string(of: "Backup.FileSystem.AdministrativeActions[i].TargetVolumeValues.OntapConfiguration.StorageVirtualMachineId")
OntapConfigurationStorageVirtualMachineRoot = jResp.int(of: "Backup.FileSystem.AdministrativeActions[i].TargetVolumeValues.OntapConfiguration.StorageVirtualMachineRoot").intValue
TieringPolicyCoolingPeriod = jResp.int(of: "Backup.FileSystem.AdministrativeActions[i].TargetVolumeValues.OntapConfiguration.TieringPolicy.CoolingPeriod").intValue
TieringPolicyName = jResp.string(of: "Backup.FileSystem.AdministrativeActions[i].TargetVolumeValues.OntapConfiguration.TieringPolicy.Name")
OntapConfigurationUUID = jResp.string(of: "Backup.FileSystem.AdministrativeActions[i].TargetVolumeValues.OntapConfiguration.UUID")
OpenZFSConfigurationCopyTagsToSnapshots = jResp.int(of: "Backup.FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.CopyTagsToSnapshots").intValue
OpenZFSConfigurationDataCompressionType = jResp.string(of: "Backup.FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.DataCompressionType")
OriginSnapshotCopyStrategy = jResp.string(of: "Backup.FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.OriginSnapshot.CopyStrategy")
OriginSnapshotSnapshotARN = jResp.string(of: "Backup.FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.OriginSnapshot.SnapshotARN")
OpenZFSConfigurationParentVolumeId = jResp.string(of: "Backup.FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.ParentVolumeId")
OpenZFSConfigurationReadOnly = jResp.int(of: "Backup.FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.ReadOnly").intValue
OpenZFSConfigurationRecordSizeKiB = jResp.int(of: "Backup.FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.RecordSizeKiB").intValue
OpenZFSConfigurationStorageCapacityQuotaGiB = jResp.int(of: "Backup.FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.StorageCapacityQuotaGiB").intValue
OpenZFSConfigurationStorageCapacityReservationGiB = jResp.int(of: "Backup.FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.StorageCapacityReservationGiB").intValue
OpenZFSConfigurationVolumePath = jResp.string(of: "Backup.FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.VolumePath")
TargetVolumeValuesResourceARN = jResp.string(of: "Backup.FileSystem.AdministrativeActions[i].TargetVolumeValues.ResourceARN")
TargetVolumeValuesVolumeId = jResp.string(of: "Backup.FileSystem.AdministrativeActions[i].TargetVolumeValues.VolumeId")
TargetVolumeValuesVolumeType = jResp.string(of: "Backup.FileSystem.AdministrativeActions[i].TargetVolumeValues.VolumeType")
j = 0
count_j = jResp.size(ofArray: "Backup.FileSystem.AdministrativeActions[i].TargetSnapshotValues.AdministrativeActions").intValue
while j < count_j {
jResp.j = j
strVal = jResp.string(of: "Backup.FileSystem.AdministrativeActions[i].TargetSnapshotValues.AdministrativeActions[j]")
j = j + 1
}
j = 0
count_j = jResp.size(ofArray: "Backup.FileSystem.AdministrativeActions[i].TargetSnapshotValues.Tags").intValue
while j < count_j {
jResp.j = j
Key = jResp.string(of: "Backup.FileSystem.AdministrativeActions[i].TargetSnapshotValues.Tags[j].Key")
Value = jResp.string(of: "Backup.FileSystem.AdministrativeActions[i].TargetSnapshotValues.Tags[j].Value")
j = j + 1
}
j = 0
count_j = jResp.size(ofArray: "Backup.FileSystem.AdministrativeActions[i].TargetVolumeValues.AdministrativeActions").intValue
while j < count_j {
jResp.j = j
strVal = jResp.string(of: "Backup.FileSystem.AdministrativeActions[i].TargetVolumeValues.AdministrativeActions[j]")
j = j + 1
}
j = 0
count_j = jResp.size(ofArray: "Backup.FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.NfsExports").intValue
while j < count_j {
jResp.j = j
k = 0
count_k = jResp.size(ofArray: "Backup.FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.NfsExports[j].ClientConfigurations").intValue
while k < count_k {
jResp.k = k
Clients = jResp.string(of: "Backup.FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.NfsExports[j].ClientConfigurations[k].Clients")
json1 = jResp.object(of: "Backup.FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.NfsExports[j].ClientConfigurations[k]")
i1 = 0
count_i1 = json1!.size(ofArray: "Options").intValue
while i1 < count_i1 {
json1.i = i1
strVal = json1!.string(of: "Options[i]")
i1 = i1 + 1
}
json1 = nil
k = k + 1
}
j = j + 1
}
j = 0
count_j = jResp.size(ofArray: "Backup.FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.UserAndGroupQuotas").intValue
while j < count_j {
jResp.j = j
Id = jResp.int(of: "Backup.FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.UserAndGroupQuotas[j].Id").intValue
StorageCapacityQuotaGiB = jResp.int(of: "Backup.FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.UserAndGroupQuotas[j].StorageCapacityQuotaGiB").intValue
v_Type = jResp.string(of: "Backup.FileSystem.AdministrativeActions[i].TargetVolumeValues.OpenZFSConfiguration.UserAndGroupQuotas[j].Type")
j = j + 1
}
j = 0
count_j = jResp.size(ofArray: "Backup.FileSystem.AdministrativeActions[i].TargetVolumeValues.Tags").intValue
while j < count_j {
jResp.j = j
Key = jResp.string(of: "Backup.FileSystem.AdministrativeActions[i].TargetVolumeValues.Tags[j].Key")
Value = jResp.string(of: "Backup.FileSystem.AdministrativeActions[i].TargetVolumeValues.Tags[j].Value")
j = j + 1
}
i = i + 1
}
i = 0
count_i = jResp.size(ofArray: "Backup.FileSystem.NetworkInterfaceIds").intValue
while i < count_i {
jResp.i = i
strVal = jResp.string(of: "Backup.FileSystem.NetworkInterfaceIds[i]")
i = i + 1
}
i = 0
count_i = jResp.size(ofArray: "Backup.FileSystem.OntapConfiguration.Endpoints.Intercluster.IpAddresses").intValue
while i < count_i {
jResp.i = i
strVal = jResp.string(of: "Backup.FileSystem.OntapConfiguration.Endpoints.Intercluster.IpAddresses[i]")
i = i + 1
}
i = 0
count_i = jResp.size(ofArray: "Backup.FileSystem.OntapConfiguration.Endpoints.Management.IpAddresses").intValue
while i < count_i {
jResp.i = i
strVal = jResp.string(of: "Backup.FileSystem.OntapConfiguration.Endpoints.Management.IpAddresses[i]")
i = i + 1
}
i = 0
count_i = jResp.size(ofArray: "Backup.FileSystem.OntapConfiguration.RouteTableIds").intValue
while i < count_i {
jResp.i = i
strVal = jResp.string(of: "Backup.FileSystem.OntapConfiguration.RouteTableIds[i]")
i = i + 1
}
i = 0
count_i = jResp.size(ofArray: "Backup.FileSystem.SubnetIds").intValue
while i < count_i {
jResp.i = i
strVal = jResp.string(of: "Backup.FileSystem.SubnetIds[i]")
i = i + 1
}
i = 0
count_i = jResp.size(ofArray: "Backup.FileSystem.Tags").intValue
while i < count_i {
jResp.i = i
Key = jResp.string(of: "Backup.FileSystem.Tags[i].Key")
Value = jResp.string(of: "Backup.FileSystem.Tags[i].Value")
i = i + 1
}
i = 0
count_i = jResp.size(ofArray: "Backup.FileSystem.WindowsConfiguration.Aliases").intValue
while i < count_i {
jResp.i = i
Lifecycle = jResp.string(of: "Backup.FileSystem.WindowsConfiguration.Aliases[i].Lifecycle")
Name = jResp.string(of: "Backup.FileSystem.WindowsConfiguration.Aliases[i].Name")
i = i + 1
}
i = 0
count_i = jResp.size(ofArray: "Backup.FileSystem.WindowsConfiguration.MaintenanceOperationsInProgress").intValue
while i < count_i {
jResp.i = i
strVal = jResp.string(of: "Backup.FileSystem.WindowsConfiguration.MaintenanceOperationsInProgress[i]")
i = i + 1
}
i = 0
count_i = jResp.size(ofArray: "Backup.FileSystem.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.DnsIps").intValue
while i < count_i {
jResp.i = i
strVal = jResp.string(of: "Backup.FileSystem.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.DnsIps[i]")
i = i + 1
}
i = 0
count_i = jResp.size(ofArray: "Backup.Tags").intValue
while i < count_i {
jResp.i = i
Key = jResp.string(of: "Backup.Tags[i].Key")
Value = jResp.string(of: "Backup.Tags[i].Value")
i = i + 1
}
i = 0
count_i = jResp.size(ofArray: "Backup.Volume.AdministrativeActions").intValue
while i < count_i {
jResp.i = i
AdministrativeActionType = jResp.string(of: "Backup.Volume.AdministrativeActions[i].AdministrativeActionType")
FailureDetailsMessage = jResp.string(of: "Backup.Volume.AdministrativeActions[i].FailureDetails.Message")
ProgressPercent = jResp.int(of: "Backup.Volume.AdministrativeActions[i].ProgressPercent").intValue
RequestTime = jResp.int(of: "Backup.Volume.AdministrativeActions[i].RequestTime").intValue
Status = jResp.string(of: "Backup.Volume.AdministrativeActions[i].Status")
TargetFileSystemValuesCreationTime = jResp.int(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.CreationTime").intValue
TargetFileSystemValuesDNSName = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.DNSName")
FailureDetailsMessage = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.FailureDetails.Message")
TargetFileSystemValuesFileSystemId = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.FileSystemId")
TargetFileSystemValuesFileSystemType = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.FileSystemType")
TargetFileSystemValuesFileSystemTypeVersion = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.FileSystemTypeVersion")
TargetFileSystemValuesKmsKeyId = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.KmsKeyId")
TargetFileSystemValuesLifecycle = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.Lifecycle")
LustreConfigurationAutomaticBackupRetentionDays = jResp.int(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.AutomaticBackupRetentionDays").intValue
LustreConfigurationCopyTagsToBackups = jResp.int(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.CopyTagsToBackups").intValue
LustreConfigurationDailyAutomaticBackupStartTime = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.DailyAutomaticBackupStartTime")
LustreConfigurationDataCompressionType = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.DataCompressionType")
DataRepositoryConfigurationAutoImportPolicy = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.DataRepositoryConfiguration.AutoImportPolicy")
DataRepositoryConfigurationExportPath = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.DataRepositoryConfiguration.ExportPath")
FailureDetailsMessage = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.DataRepositoryConfiguration.FailureDetails.Message")
DataRepositoryConfigurationImportedFileChunkSize = jResp.int(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.DataRepositoryConfiguration.ImportedFileChunkSize").intValue
DataRepositoryConfigurationImportPath = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.DataRepositoryConfiguration.ImportPath")
DataRepositoryConfigurationLifecycle = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.DataRepositoryConfiguration.Lifecycle")
LustreConfigurationDeploymentType = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.DeploymentType")
LustreConfigurationDriveCacheType = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.DriveCacheType")
LogConfigurationDestination = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.LogConfiguration.Destination")
LogConfigurationLevel = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.LogConfiguration.Level")
LustreConfigurationMountName = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.MountName")
LustreConfigurationPerUnitStorageThroughput = jResp.int(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.PerUnitStorageThroughput").intValue
LustreConfigurationWeeklyMaintenanceStartTime = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.LustreConfiguration.WeeklyMaintenanceStartTime")
OntapConfigurationAutomaticBackupRetentionDays = jResp.int(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.AutomaticBackupRetentionDays").intValue
OntapConfigurationDailyAutomaticBackupStartTime = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.DailyAutomaticBackupStartTime")
OntapConfigurationDeploymentType = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.DeploymentType")
DiskIopsConfigurationIops = jResp.int(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.DiskIopsConfiguration.Iops").intValue
DiskIopsConfigurationMode = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.DiskIopsConfiguration.Mode")
OntapConfigurationEndpointIpAddressRange = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.EndpointIpAddressRange")
InterclusterDNSName = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.Endpoints.Intercluster.DNSName")
ManagementDNSName = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.Endpoints.Management.DNSName")
OntapConfigurationPreferredSubnetId = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.PreferredSubnetId")
OntapConfigurationThroughputCapacity = jResp.int(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.ThroughputCapacity").intValue
OntapConfigurationWeeklyMaintenanceStartTime = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.WeeklyMaintenanceStartTime")
OpenZFSConfigurationAutomaticBackupRetentionDays = jResp.int(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.OpenZFSConfiguration.AutomaticBackupRetentionDays").intValue
OpenZFSConfigurationCopyTagsToBackups = jResp.int(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.OpenZFSConfiguration.CopyTagsToBackups").intValue
OpenZFSConfigurationCopyTagsToVolumes = jResp.int(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.OpenZFSConfiguration.CopyTagsToVolumes").intValue
OpenZFSConfigurationDailyAutomaticBackupStartTime = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.OpenZFSConfiguration.DailyAutomaticBackupStartTime")
OpenZFSConfigurationDeploymentType = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.OpenZFSConfiguration.DeploymentType")
DiskIopsConfigurationIops = jResp.int(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.OpenZFSConfiguration.DiskIopsConfiguration.Iops").intValue
DiskIopsConfigurationMode = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.OpenZFSConfiguration.DiskIopsConfiguration.Mode")
OpenZFSConfigurationRootVolumeId = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.OpenZFSConfiguration.RootVolumeId")
OpenZFSConfigurationThroughputCapacity = jResp.int(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.OpenZFSConfiguration.ThroughputCapacity").intValue
OpenZFSConfigurationWeeklyMaintenanceStartTime = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.OpenZFSConfiguration.WeeklyMaintenanceStartTime")
TargetFileSystemValuesOwnerId = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.OwnerId")
TargetFileSystemValuesResourceARN = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.ResourceARN")
TargetFileSystemValuesStorageCapacity = jResp.int(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.StorageCapacity").intValue
TargetFileSystemValuesStorageType = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.StorageType")
TargetFileSystemValuesVpcId = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.VpcId")
WindowsConfigurationActiveDirectoryId = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.ActiveDirectoryId")
AuditLogConfigurationAuditLogDestination = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.AuditLogConfiguration.AuditLogDestination")
AuditLogConfigurationFileAccessAuditLogLevel = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.AuditLogConfiguration.FileAccessAuditLogLevel")
AuditLogConfigurationFileShareAccessAuditLogLevel = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.AuditLogConfiguration.FileShareAccessAuditLogLevel")
WindowsConfigurationAutomaticBackupRetentionDays = jResp.int(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.AutomaticBackupRetentionDays").intValue
WindowsConfigurationCopyTagsToBackups = jResp.int(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.CopyTagsToBackups").intValue
WindowsConfigurationDailyAutomaticBackupStartTime = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.DailyAutomaticBackupStartTime")
WindowsConfigurationDeploymentType = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.DeploymentType")
WindowsConfigurationPreferredFileServerIp = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.PreferredFileServerIp")
WindowsConfigurationPreferredSubnetId = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.PreferredSubnetId")
WindowsConfigurationRemoteAdministrationEndpoint = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.RemoteAdministrationEndpoint")
SelfManagedActiveDirectoryConfigurationDomainName = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.DomainName")
SelfManagedActiveDirectoryConfigurationFileSystemAdministratorsGroup = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.FileSystemAdministratorsGroup")
SelfManagedActiveDirectoryConfigurationOrganizationalUnitDistinguishedName = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.OrganizationalUnitDistinguishedName")
SelfManagedActiveDirectoryConfigurationUserName = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.UserName")
WindowsConfigurationThroughputCapacity = jResp.int(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.ThroughputCapacity").intValue
WindowsConfigurationWeeklyMaintenanceStartTime = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.WeeklyMaintenanceStartTime")
TargetSnapshotValuesCreationTime = jResp.int(of: "Backup.Volume.AdministrativeActions[i].TargetSnapshotValues.CreationTime").intValue
TargetSnapshotValuesLifecycle = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetSnapshotValues.Lifecycle")
LifecycleTransitionReasonMessage = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetSnapshotValues.LifecycleTransitionReason.Message")
TargetSnapshotValuesName = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetSnapshotValues.Name")
TargetSnapshotValuesResourceARN = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetSnapshotValues.ResourceARN")
TargetSnapshotValuesSnapshotId = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetSnapshotValues.SnapshotId")
TargetSnapshotValuesVolumeId = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetSnapshotValues.VolumeId")
TargetVolumeValues = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetVolumeValues")
j = 0
count_j = jResp.size(ofArray: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.AdministrativeActions").intValue
while j < count_j {
jResp.j = j
strVal = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.AdministrativeActions[j]")
j = j + 1
}
j = 0
count_j = jResp.size(ofArray: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.NetworkInterfaceIds").intValue
while j < count_j {
jResp.j = j
strVal = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.NetworkInterfaceIds[j]")
j = j + 1
}
j = 0
count_j = jResp.size(ofArray: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.Endpoints.Intercluster.IpAddresses").intValue
while j < count_j {
jResp.j = j
strVal = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.Endpoints.Intercluster.IpAddresses[j]")
j = j + 1
}
j = 0
count_j = jResp.size(ofArray: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.Endpoints.Management.IpAddresses").intValue
while j < count_j {
jResp.j = j
strVal = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.Endpoints.Management.IpAddresses[j]")
j = j + 1
}
j = 0
count_j = jResp.size(ofArray: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.RouteTableIds").intValue
while j < count_j {
jResp.j = j
strVal = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.OntapConfiguration.RouteTableIds[j]")
j = j + 1
}
j = 0
count_j = jResp.size(ofArray: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.SubnetIds").intValue
while j < count_j {
jResp.j = j
strVal = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.SubnetIds[j]")
j = j + 1
}
j = 0
count_j = jResp.size(ofArray: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.Tags").intValue
while j < count_j {
jResp.j = j
Key = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.Tags[j].Key")
Value = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.Tags[j].Value")
j = j + 1
}
j = 0
count_j = jResp.size(ofArray: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.Aliases").intValue
while j < count_j {
jResp.j = j
Lifecycle = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.Aliases[j].Lifecycle")
Name = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.Aliases[j].Name")
j = j + 1
}
j = 0
count_j = jResp.size(ofArray: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.MaintenanceOperationsInProgress").intValue
while j < count_j {
jResp.j = j
strVal = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.MaintenanceOperationsInProgress[j]")
j = j + 1
}
j = 0
count_j = jResp.size(ofArray: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.DnsIps").intValue
while j < count_j {
jResp.j = j
strVal = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetFileSystemValues.WindowsConfiguration.SelfManagedActiveDirectoryConfiguration.DnsIps[j]")
j = j + 1
}
j = 0
count_j = jResp.size(ofArray: "Backup.Volume.AdministrativeActions[i].TargetSnapshotValues.AdministrativeActions").intValue
while j < count_j {
jResp.j = j
strVal = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetSnapshotValues.AdministrativeActions[j]")
j = j + 1
}
j = 0
count_j = jResp.size(ofArray: "Backup.Volume.AdministrativeActions[i].TargetSnapshotValues.Tags").intValue
while j < count_j {
jResp.j = j
Key = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetSnapshotValues.Tags[j].Key")
Value = jResp.string(of: "Backup.Volume.AdministrativeActions[i].TargetSnapshotValues.Tags[j].Value")
j = j + 1
}
i = i + 1
}
i = 0
count_i = jResp.size(ofArray: "Backup.Volume.OpenZFSConfiguration.NfsExports").intValue
while i < count_i {
jResp.i = i
j = 0
count_j = jResp.size(ofArray: "Backup.Volume.OpenZFSConfiguration.NfsExports[i].ClientConfigurations").intValue
while j < count_j {
jResp.j = j
Clients = jResp.string(of: "Backup.Volume.OpenZFSConfiguration.NfsExports[i].ClientConfigurations[j].Clients")
k = 0
count_k = jResp.size(ofArray: "Backup.Volume.OpenZFSConfiguration.NfsExports[i].ClientConfigurations[j].Options").intValue
while k < count_k {
jResp.k = k
strVal = jResp.string(of: "Backup.Volume.OpenZFSConfiguration.NfsExports[i].ClientConfigurations[j].Options[k]")
k = k + 1
}
j = j + 1
}
i = i + 1
}
i = 0
count_i = jResp.size(ofArray: "Backup.Volume.OpenZFSConfiguration.UserAndGroupQuotas").intValue
while i < count_i {
jResp.i = i
Id = jResp.int(of: "Backup.Volume.OpenZFSConfiguration.UserAndGroupQuotas[i].Id").intValue
StorageCapacityQuotaGiB = jResp.int(of: "Backup.Volume.OpenZFSConfiguration.UserAndGroupQuotas[i].StorageCapacityQuotaGiB").intValue
v_Type = jResp.string(of: "Backup.Volume.OpenZFSConfiguration.UserAndGroupQuotas[i].Type")
i = i + 1
}
i = 0
count_i = jResp.size(ofArray: "Backup.Volume.Tags").intValue
while i < count_i {
jResp.i = i
Key = jResp.string(of: "Backup.Volume.Tags[i].Key")
Value = jResp.string(of: "Backup.Volume.Tags[i].Value")
i = i + 1
}
// A sample JSON response body parsed by the above code:
// {
// "Backup": {
// "BackupId": "string",
// "CreationTime": number,
// "DirectoryInformation": {
// "ActiveDirectoryId": "string",
// "DomainName": "string",
// "ResourceARN": "string"
// },
// "FailureDetails": {
// "Message": "string"
// },
// "FileSystem": {
// "AdministrativeActions": [
// {
// "AdministrativeActionType": "string",
// "FailureDetails": {
// "Message": "string"
// },
// "ProgressPercent": number,
// "RequestTime": number,
// "Status": "string",
// "TargetFileSystemValues": "FileSystem",
// "TargetSnapshotValues": {
// "AdministrativeActions": [
// "AdministrativeAction"
// ],
// "CreationTime": number,
// "Lifecycle": "string",
// "LifecycleTransitionReason": {
// "Message": "string"
// },
// "Name": "string",
// "ResourceARN": "string",
// "SnapshotId": "string",
// "Tags": [
// {
// "Key": "string",
// "Value": "string"
// }
// ],
// "VolumeId": "string"
// },
// "TargetVolumeValues": {
// "AdministrativeActions": [
// "AdministrativeAction"
// ],
// "CreationTime": number,
// "FileSystemId": "string",
// "Lifecycle": "string",
// "LifecycleTransitionReason": {
// "Message": "string"
// },
// "Name": "string",
// "OntapConfiguration": {
// "FlexCacheEndpointType": "string",
// "JunctionPath": "string",
// "OntapVolumeType": "string",
// "SecurityStyle": "string",
// "SizeInMegabytes": number,
// "StorageEfficiencyEnabled": boolean,
// "StorageVirtualMachineId": "string",
// "StorageVirtualMachineRoot": boolean,
// "TieringPolicy": {
// "CoolingPeriod": number,
// "Name": "string"
// },
// "UUID": "string"
// },
// "OpenZFSConfiguration": {
// "CopyTagsToSnapshots": boolean,
// "DataCompressionType": "string",
// "NfsExports": [
// {
// "ClientConfigurations": [
// {
// "Clients": "string",
// "Options": [
// "string"
// ]
// }
// ]
// }
// ],
// "OriginSnapshot": {
// "CopyStrategy": "string",
// "SnapshotARN": "string"
// },
// "ParentVolumeId": "string",
// "ReadOnly": boolean,
// "RecordSizeKiB": number,
// "StorageCapacityQuotaGiB": number,
// "StorageCapacityReservationGiB": number,
// "UserAndGroupQuotas": [
// {
// "Id": number,
// "StorageCapacityQuotaGiB": number,
// "Type": "string"
// }
// ],
// "VolumePath": "string"
// },
// "ResourceARN": "string",
// "Tags": [
// {
// "Key": "string",
// "Value": "string"
// }
// ],
// "VolumeId": "string",
// "VolumeType": "string"
// }
// }
// ],
// "CreationTime": number,
// "DNSName": "string",
// "FailureDetails": {
// "Message": "string"
// },
// "FileSystemId": "string",
// "FileSystemType": "string",
// "FileSystemTypeVersion": "string",
// "KmsKeyId": "string",
// "Lifecycle": "string",
// "LustreConfiguration": {
// "AutomaticBackupRetentionDays": number,
// "CopyTagsToBackups": boolean,
// "DailyAutomaticBackupStartTime": "string",
// "DataCompressionType": "string",
// "DataRepositoryConfiguration": {
// "AutoImportPolicy": "string",
// "ExportPath": "string",
// "FailureDetails": {
// "Message": "string"
// },
// "ImportedFileChunkSize": number,
// "ImportPath": "string",
// "Lifecycle": "string"
// },
// "DeploymentType": "string",
// "DriveCacheType": "string",
// "LogConfiguration": {
// "Destination": "string",
// "Level": "string"
// },
// "MountName": "string",
// "PerUnitStorageThroughput": number,
// "WeeklyMaintenanceStartTime": "string"
// },
// "NetworkInterfaceIds": [
// "string"
// ],
// "OntapConfiguration": {
// "AutomaticBackupRetentionDays": number,
// "DailyAutomaticBackupStartTime": "string",
// "DeploymentType": "string",
// "DiskIopsConfiguration": {
// "Iops": number,
// "Mode": "string"
// },
// "EndpointIpAddressRange": "string",
// "Endpoints": {
// "Intercluster": {
// "DNSName": "string",
// "IpAddresses": [
// "string"
// ]
// },
// "Management": {
// "DNSName": "string",
// "IpAddresses": [
// "string"
// ]
// }
// },
// "PreferredSubnetId": "string",
// "RouteTableIds": [
// "string"
// ],
// "ThroughputCapacity": number,
// "WeeklyMaintenanceStartTime": "string"
// },
// "OpenZFSConfiguration": {
// "AutomaticBackupRetentionDays": number,
// "CopyTagsToBackups": boolean,
// "CopyTagsToVolumes": boolean,
// "DailyAutomaticBackupStartTime": "string",
// "DeploymentType": "string",
// "DiskIopsConfiguration": {
// "Iops": number,
// "Mode": "string"
// },
// "RootVolumeId": "string",
// "ThroughputCapacity": number,
// "WeeklyMaintenanceStartTime": "string"
// },
// "OwnerId": "string",
// "ResourceARN": "string",
// "StorageCapacity": number,
// "StorageType": "string",
// "SubnetIds": [
// "string"
// ],
// "Tags": [
// {
// "Key": "string",
// "Value": "string"
// }
// ],
// "VpcId": "string",
// "WindowsConfiguration": {
// "ActiveDirectoryId": "string",
// "Aliases": [
// {
// "Lifecycle": "string",
// "Name": "string"
// }
// ],
// "AuditLogConfiguration": {
// "AuditLogDestination": "string",
// "FileAccessAuditLogLevel": "string",
// "FileShareAccessAuditLogLevel": "string"
// },
// "AutomaticBackupRetentionDays": number,
// "CopyTagsToBackups": boolean,
// "DailyAutomaticBackupStartTime": "string",
// "DeploymentType": "string",
// "MaintenanceOperationsInProgress": [
// "string"
// ],
// "PreferredFileServerIp": "string",
// "PreferredSubnetId": "string",
// "RemoteAdministrationEndpoint": "string",
// "SelfManagedActiveDirectoryConfiguration": {
// "DnsIps": [
// "string"
// ],
// "DomainName": "string",
// "FileSystemAdministratorsGroup": "string",
// "OrganizationalUnitDistinguishedName": "string",
// "UserName": "string"
// },
// "ThroughputCapacity": number,
// "WeeklyMaintenanceStartTime": "string"
// }
// },
// "KmsKeyId": "string",
// "Lifecycle": "string",
// "OwnerId": "string",
// "ProgressPercent": number,
// "ResourceARN": "string",
// "ResourceType": "string",
// "SourceBackupId": "string",
// "SourceBackupRegion": "string",
// "Tags": [
// {
// "Key": "string",
// "Value": "string"
// }
// ],
// "Type": "string",
// "Volume": {
// "AdministrativeActions": [
// {
// "AdministrativeActionType": "string",
// "FailureDetails": {
// "Message": "string"
// },
// "ProgressPercent": number,
// "RequestTime": number,
// "Status": "string",
// "TargetFileSystemValues": {
// "AdministrativeActions": [
// "AdministrativeAction"
// ],
// "CreationTime": number,
// "DNSName": "string",
// "FailureDetails": {
// "Message": "string"
// },
// "FileSystemId": "string",
// "FileSystemType": "string",
// "FileSystemTypeVersion": "string",
// "KmsKeyId": "string",
// "Lifecycle": "string",
// "LustreConfiguration": {
// "AutomaticBackupRetentionDays": number,
// "CopyTagsToBackups": boolean,
// "DailyAutomaticBackupStartTime": "string",
// "DataCompressionType": "string",
// "DataRepositoryConfiguration": {
// "AutoImportPolicy": "string",
// "ExportPath": "string",
// "FailureDetails": {
// "Message": "string"
// },
// "ImportedFileChunkSize": number,
// "ImportPath": "string",
// "Lifecycle": "string"
// },
// "DeploymentType": "string",
// "DriveCacheType": "string",
// "LogConfiguration": {
// "Destination": "string",
// "Level": "string"
// },
// "MountName": "string",
// "PerUnitStorageThroughput": number,
// "WeeklyMaintenanceStartTime": "string"
// },
// "NetworkInterfaceIds": [
// "string"
// ],
// "OntapConfiguration": {
// "AutomaticBackupRetentionDays": number,
// "DailyAutomaticBackupStartTime": "string",
// "DeploymentType": "string",
// "DiskIopsConfiguration": {
// "Iops": number,
// "Mode": "string"
// },
// "EndpointIpAddressRange": "string",
// "Endpoints": {
// "Intercluster": {
// "DNSName": "string",
// "IpAddresses": [
// "string"
// ]
// },
// "Management": {
// "DNSName": "string",
// "IpAddresses": [
// "string"
// ]
// }
// },
// "PreferredSubnetId": "string",
// "RouteTableIds": [
// "string"
// ],
// "ThroughputCapacity": number,
// "WeeklyMaintenanceStartTime": "string"
// },
// "OpenZFSConfiguration": {
// "AutomaticBackupRetentionDays": number,
// "CopyTagsToBackups": boolean,
// "CopyTagsToVolumes": boolean,
// "DailyAutomaticBackupStartTime": "string",
// "DeploymentType": "string",
// "DiskIopsConfiguration": {
// "Iops": number,
// "Mode": "string"
// },
// "RootVolumeId": "string",
// "ThroughputCapacity": number,
// "WeeklyMaintenanceStartTime": "string"
// },
// "OwnerId": "string",
// "ResourceARN": "string",
// "StorageCapacity": number,
// "StorageType": "string",
// "SubnetIds": [
// "string"
// ],
// "Tags": [
// {
// "Key": "string",
// "Value": "string"
// }
// ],
// "VpcId": "string",
// "WindowsConfiguration": {
// "ActiveDirectoryId": "string",
// "Aliases": [
// {
// "Lifecycle": "string",
// "Name": "string"
// }
// ],
// "AuditLogConfiguration": {
// "AuditLogDestination": "string",
// "FileAccessAuditLogLevel": "string",
// "FileShareAccessAuditLogLevel": "string"
// },
// "AutomaticBackupRetentionDays": number,
// "CopyTagsToBackups": boolean,
// "DailyAutomaticBackupStartTime": "string",
// "DeploymentType": "string",
// "MaintenanceOperationsInProgress": [
// "string"
// ],
// "PreferredFileServerIp": "string",
// "PreferredSubnetId": "string",
// "RemoteAdministrationEndpoint": "string",
// "SelfManagedActiveDirectoryConfiguration": {
// "DnsIps": [
// "string"
// ],
// "DomainName": "string",
// "FileSystemAdministratorsGroup": "string",
// "OrganizationalUnitDistinguishedName": "string",
// "UserName": "string"
// },
// "ThroughputCapacity": number,
// "WeeklyMaintenanceStartTime": "string"
// }
// },
// "TargetSnapshotValues": {
// "AdministrativeActions": [
// "AdministrativeAction"
// ],
// "CreationTime": number,
// "Lifecycle": "string",
// "LifecycleTransitionReason": {
// "Message": "string"
// },
// "Name": "string",
// "ResourceARN": "string",
// "SnapshotId": "string",
// "Tags": [
// {
// "Key": "string",
// "Value": "string"
// }
// ],
// "VolumeId": "string"
// },
// "TargetVolumeValues": "Volume"
// }
// ],
// "CreationTime": number,
// "FileSystemId": "string",
// "Lifecycle": "string",
// "LifecycleTransitionReason": {
// "Message": "string"
// },
// "Name": "string",
// "OntapConfiguration": {
// "FlexCacheEndpointType": "string",
// "JunctionPath": "string",
// "OntapVolumeType": "string",
// "SecurityStyle": "string",
// "SizeInMegabytes": number,
// "StorageEfficiencyEnabled": boolean,
// "StorageVirtualMachineId": "string",
// "StorageVirtualMachineRoot": boolean,
// "TieringPolicy": {
// "CoolingPeriod": number,
// "Name": "string"
// },
// "UUID": "string"
// },
// "OpenZFSConfiguration": {
// "CopyTagsToSnapshots": boolean,
// "DataCompressionType": "string",
// "NfsExports": [
// {
// "ClientConfigurations": [
// {
// "Clients": "string",
// "Options": [
// "string"
// ]
// }
// ]
// }
// ],
// "OriginSnapshot": {
// "CopyStrategy": "string",
// "SnapshotARN": "string"
// },
// "ParentVolumeId": "string",
// "ReadOnly": boolean,
// "RecordSizeKiB": number,
// "StorageCapacityQuotaGiB": number,
// "StorageCapacityReservationGiB": number,
// "UserAndGroupQuotas": [
// {
// "Id": number,
// "StorageCapacityQuotaGiB": number,
// "Type": "string"
// }
// ],
// "VolumePath": "string"
// },
// "ResourceARN": "string",
// "Tags": [
// {
// "Key": "string",
// "Value": "string"
// }
// ],
// "VolumeId": "string",
// "VolumeType": "string"
// }
// }
// }
}